/* Horus Web - Modern Domain Sales Platform */
/* PERFORMANCE ISSUE: Google Fonts import blocks rendering - consider preloading */
/* TODO: Add <link rel="preload" href="..." as="font"> in HTML head for better performance */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS ORGANIZATION NOTE: This file is quite large (1000+ lines) */
/* SUGGESTION: Consider splitting into modules (components.css, utilities.css, etc.) */
/* for better maintainability and potential lazy loading */

/* Base Reset & Global Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Professional Blue Palette */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    
    /* Secondary Colors - Modern Grays */
    --secondary-50: #f8fafc;
    --secondary-100: #f1f5f9;
    --secondary-200: #e2e8f0;
    --secondary-300: #cbd5e1;
    --secondary-400: #94a3b8;
    --secondary-500: #64748b;
    --secondary-600: #475569;
    --secondary-700: #334155;
    --secondary-800: #1e293b;
    --secondary-900: #0f172a;
    
    /* Accent Colors - Success Green */
    --accent-500: #10b981;
    --accent-600: #059669;
    
    /* Container Width */
    --container-width: 960px;
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--secondary-700);
    background-color: var(--secondary-50);
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Container System - 960px max width for desktop */
.main-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .main-container {
        padding: 0;
    }
}

/* Modern Container System - Updated Classes */
.container { 
    max-width: var(--container-width); 
    margin: 0 auto; 
    padding: 0 1rem; 
}

/* Enhanced Container Classes */
.max-w-7xl { max-width: var(--container-width); }
.max-w-4xl { max-width: var(--container-width); }
.max-w-3xl { max-width: 768px; }
.max-w-2xl { max-width: 672px; }
.max-w-xl { max-width: 576px; }
.max-w-lg { max-width: 512px; }
.max-w-md { max-width: 448px; }
.max-w-sm { max-width: 384px; }
.mx-auto { margin-left: auto; margin-right: auto; }

@media (min-width: 1024px) {
    .container,
    .max-w-7xl,
    .max-w-4xl {
        padding: 0;
    }
}

/* Flexbox */
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Spacing */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.pl-3 { padding-left: 0.75rem; }
.pl-5 { padding-left: 1.25rem; }

.m-1 { margin: 0.25rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-5 { margin-left: 1.25rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-1\.5 { margin-right: 0.375rem; }
.mr-3 { margin-right: 0.75rem; }

/* Width & Height */
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-48 { width: 12rem; }
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.min-h-screen { min-height: 100vh; }

/* Additional width constraints */
.max-w-xs { max-width: 20rem; }
.max-w-md { max-width: 28rem; }

/* Background Colors - Modern Palette */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: var(--secondary-50); }
.bg-gray-100 { background-color: var(--secondary-100); }
.bg-gray-200 { background-color: var(--secondary-200); }
.bg-primary-50 { background-color: var(--primary-50); }
.bg-primary-100 { background-color: var(--primary-100); }
.bg-primary-500 { background-color: var(--primary-500); }
.bg-primary-600 { background-color: var(--primary-600); }
.bg-primary-700 { background-color: var(--primary-700); }
.bg-blue-50 { background-color: var(--primary-50); }
.bg-blue-100 { background-color: var(--primary-100); }
.bg-blue-500 { background-color: var(--primary-500); }
.bg-blue-600 { background-color: var(--primary-600); }
.bg-blue-700 { background-color: var(--primary-700); }
.bg-green-500 { background-color: var(--accent-500); }
.bg-green-600 { background-color: var(--accent-600); }
.bg-yellow-500 { background-color: #f59e0b; }
.bg-red-50 { background-color: #fef2f2; }

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-primary-600 {
    --tw-gradient-from: var(--primary-600);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0));
}

.to-primary-700 {
    --tw-gradient-to: var(--primary-700);
}

/* Text Colors - Modern Typography */
.text-white { color: #ffffff; }
.text-gray-400 { color: var(--secondary-400); }
.text-gray-500 { color: var(--secondary-500); }
.text-gray-600 { color: var(--secondary-600); }
.text-gray-700 { color: var(--secondary-700); }
.text-gray-800 { color: var(--secondary-800); }
.text-gray-900 { color: var(--secondary-900); }
.text-primary-600 { color: var(--primary-600); }
.text-primary-700 { color: var(--primary-700); }
.text-primary-800 { color: var(--primary-800); }
.text-blue-600 { color: var(--primary-600); }
.text-blue-700 { color: var(--primary-700); }
.text-blue-800 { color: var(--primary-800); }
.text-green-600 { color: var(--accent-600); }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-red-800 { color: #991b1b; }

/* Enhanced Text Utilities */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0em; }
.tracking-wide { letter-spacing: 0.025em; }

.truncate { 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}

/* Modern Borders & Shadows */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-l { border-left-width: 1px; }
.border-r { border-right-width: 1px; }

.border-gray-100 { border-color: var(--secondary-100); }
.border-gray-200 { border-color: var(--secondary-200); }
.border-gray-300 { border-color: var(--secondary-300); }
.border-primary-200 { border-color: var(--primary-200); }
.border-primary-300 { border-color: var(--primary-300); }
.border-transparent { border-color: transparent; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-md { border-top-left-radius: 0.375rem; border-top-right-radius: 0.375rem; }
.rounded-b-md { border-bottom-left-radius: 0.375rem; border-bottom-right-radius: 0.375rem; }

/* Enhanced Shadow System */
.shadow-xs { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Card Shadows with Color */
.shadow-primary {
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -1px rgba(37, 99, 235, 0.06);
}

.shadow-primary-lg {
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1), 0 4px 6px -2px rgba(37, 99, 235, 0.05);
}

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.right-0 { right: 0; }
.left-0 { left: 0; }
.inset-y-0 { top: 0; bottom: 0; }

/* Display */
.block { display: block; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
.sr-only { 
    position: absolute; 
    width: 1px; 
    height: 1px; 
    padding: 0; 
    margin: -1px; 
    overflow: hidden; 
    clip: rect(0, 0, 0, 0); 
    white-space: nowrap; 
    border: 0; 
}

/* Lists */
.list-disc { list-style-type: disc; }
.divide-y > * + * { border-top-width: 1px; }
.divide-gray-200 > * + * { border-top-color: #e5e7eb; }

/* Transitions */
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }

/* Z-index */
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Enhanced Focus & Hover States */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { 
    box-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); 
}
.focus\:ring-4:focus { 
    box-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color); 
}
.focus\:ring-offset-2:focus { --tw-ring-offset-width: 2px; }
.focus\:ring-primary-500:focus { --tw-ring-color: var(--primary-500); }
.focus\:ring-blue-500:focus { --tw-ring-color: var(--primary-500); }
.focus\:border-primary-500:focus { border-color: var(--primary-500); }
.focus\:border-blue-500:focus { border-color: var(--primary-500); }

/* Modern Hover Effects */
.hover\:bg-gray-50:hover { background-color: var(--secondary-50); }
.hover\:bg-gray-100:hover { background-color: var(--secondary-100); }
.hover\:bg-primary-700:hover { background-color: var(--primary-700); }
.hover\:bg-blue-700:hover { background-color: var(--primary-700); }
.hover\:text-gray-900:hover { color: var(--secondary-900); }
.hover\:text-primary-500:hover { color: var(--primary-500); }
.hover\:text-primary-800:hover { color: var(--primary-800); }
.hover\:text-blue-500:hover { color: var(--primary-500); }
.hover\:text-blue-800:hover { color: var(--primary-800); }

/* Enhanced Hover Effects */
.hover\:shadow-md:hover { 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); 
}
.hover\:shadow-lg:hover { 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); 
}
.hover\:scale-105:hover { 
    transform: scale(1.05); 
}
.hover\:-translate-y-1:hover { 
    transform: translateY(-0.25rem); 
}

/* Group hover */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:visible { visibility: visible; }
.group:hover .group-hover\:text-blue-400 { color: #60a5fa; }

.opacity-0 { opacity: 0; }
.invisible { visibility: hidden; }

/* Modern Form Controls */
input[type="text"], 
input[type="email"], 
input[type="password"],
input[type="search"],
textarea,
select {
    appearance: none;
    border: 2px solid var(--secondary-200);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-family);
    width: 100%;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
    color: var(--secondary-700);
}

input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #ffffff;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
textarea:hover,
select:hover {
    border-color: var(--secondary-300);
}

/* Enhanced Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-family: var(--font-family);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    line-height: 1.25;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-md {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Button Variants */
.btn-primary {
    background-color: var(--primary-600);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-100);
    color: var(--secondary-700);
    border: 1px solid var(--secondary-200);
}

.btn-secondary:hover {
    background-color: var(--secondary-200);
    color: var(--secondary-800);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-600);
}

.btn-outline:hover {
    background-color: var(--primary-600);
    color: #ffffff;
}

/* Legacy button support */
button {
    cursor: pointer;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-family: var(--font-family);
    transition: all 0.2s ease-in-out;
}

/* Enhanced Responsive Design */
@media (min-width: 480px) {
    .xs\:text-base { font-size: 1rem; }
    .xs\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 640px) {
    .sm\:px-0 { padding-left: 0; padding-right: 0; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
    .sm\:text-sm { font-size: 0.875rem; }
    .sm\:text-lg { font-size: 1.125rem; }
    .sm\:text-xl { font-size: 1.25rem; }
    .sm\:text-2xl { font-size: 1.5rem; }
    .sm\:col-span-2 { grid-column: span 2 / span 2; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:gap-x-6 { column-gap: 1.5rem; }
    .sm\:gap-y-8 { row-gap: 2rem; }
    .sm\:p-6 { padding: 1.5rem; }
    .sm\:p-8 { padding: 2rem; }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:text-4xl { font-size: 2.25rem; }
    .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 1024px) {
    .lg\:px-0 { padding-left: 0; padding-right: 0; }
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
    .lg\:text-5xl { font-size: 3rem; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Modern Card Components */
.card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid var(--secondary-200);
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.1), 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--secondary-200);
    background-color: var(--secondary-50);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--secondary-200);
    background-color: var(--secondary-50);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-error {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background-color: var(--primary-100);
    color: var(--primary-800);
}

/* Links */
a { 
    color: var(--primary-600); 
    text-decoration: none; 
    transition: color 0.2s ease-in-out;
}

a:hover { 
    color: var(--primary-800); 
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Loading States */
.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid var(--secondary-200);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Additional Tailwind-like Utilities for Modern Design */

/* Gradient Utilities */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-primary-600 {
    --tw-gradient-from: var(--primary-600);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(37, 99, 235, 0));
}

.via-primary-700 {
    --tw-gradient-to: rgba(29, 78, 216, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--primary-700), var(--tw-gradient-to, rgba(29, 78, 216, 0));
}

.to-primary-800 {
    --tw-gradient-to: var(--primary-800);
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.from-accent-400 {
    --tw-gradient-from: #34d399;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(52, 211, 153, 0));
}

.to-accent-300 {
    --tw-gradient-to: #6ee7b7;
}

/* Enhanced Text Colors */
.text-primary-100 { color: var(--primary-100); }
.text-primary-500 { color: var(--primary-500); }

/* Enhanced Background Colors */
.bg-accent-100 { color: #d1fae5; }
.text-accent-600 { color: var(--accent-600); }

/* Additional Responsive Utilities */
@media (max-width: 479px) {
    .main-container {
        padding: 0 0.75rem;
    }
}

/* Enhanced Form Controls specifically for modern design */
.form-input-modern {
    border: 2px solid var(--secondary-200);
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 1.125rem;
    width: 100%;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
    font-family: var(--font-family);
}

.form-input-modern:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Modern Checkbox Styles */
input[type="checkbox"] {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--secondary-300);
    border-radius: 0.25rem;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease-in-out;
}

input[type="checkbox"]:checked {
    background-color: var(--primary-600);
    border-color: var(--primary-600);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

/* Table Enhancements */
.table-modern {
    width: 100%;
    background-color: #ffffff;
    border-collapse: collapse;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.table-modern th {
    background-color: var(--secondary-50);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--secondary-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--secondary-200);
}

.table-modern td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--secondary-200);
    vertical-align: middle;
}

.table-modern tbody tr:hover {
    background-color: var(--secondary-50);
}

/* Enhanced Table Features */
.table-modern th[data-sort] {
    position: relative;
    transition: color 0.2s ease;
}

.table-modern th[data-sort]:hover {
    color: var(--primary-600);
}

.table-modern th[data-sort] .sort-icon {
    transition: all 0.2s ease;
}

/* Domain name truncation */
.domain-name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

@media (max-width: 768px) {
    .domain-name {
        max-width: 150px;
    }
}

/* Search input styling */
.search-input {
    transition: all 0.2s ease;
    border: 1px solid var(--secondary-300);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Pagination styling */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--secondary-700);
    background-color: white;
    border: 1px solid var(--secondary-300);
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--secondary-50);
    border-color: var(--secondary-400);
}

.pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Responsive table improvements */
@media (max-width: 1024px) {
    .table-modern th,
    .table-modern td {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .table-modern th,
    .table-modern td {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .table-modern th {
        font-size: 0.6875rem;
    }
}

/* Mobile responsive table wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--secondary-100);
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--secondary-400);
    border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-500);
}

/* Status Indicators */
.status-available {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #d1fae5;
    color: #065f46;
}

.status-unavailable {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #fee2e2;
    color: #991b1b;
}

/* Enhanced Hover Effects */
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Focus Ring for Accessibility */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Loading Spinner */
.spinner {
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid var(--secondary-200);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Modern alert styles */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-warning {
    background-color: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-info {
    background-color: var(--primary-50);
    border: 1px solid var(--primary-200);
    color: var(--primary-800);
}

.clear {
    clear: both;
}

/* Additional utility classes for dashboard table */
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.duration-200 { transition-duration: 200ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; }

/* Display utilities */
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.block { display: block; }

/* Position utilities */
.absolute { position: absolute; }
.relative { position: relative; }
.inset-y-0 { top: 0; bottom: 0; }
.left-0 { left: 0; }

/* Padding utilities */
.pl-3 { padding-left: 0.75rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-3 { padding-right: 0.75rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

/* Gap utilities */
.gap-0\.5 { gap: 0.125rem; }

/* Pointer events */
.pointer-events-none { pointer-events: none; }

/* User select */
.select-none { user-select: none; }

/* Opacity */
.opacity-90 { opacity: 0.9; }
.opacity-40 { opacity: 0.4; }

/* Transform */
.rotate-0 { transform: rotate(0deg); }
.rotate-180 { transform: rotate(180deg); }

/* Dashboard Table Functionality Styles */
/* Sortable headers */
.sortable-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease;
}

.sortable-header:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.sortable-header::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #9ca3af;
    opacity: 0.4;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.sortable-header:hover::after {
    opacity: 0.7;
}

.sortable-header.sorting-asc::after {
    border-bottom: 4px solid #2563eb;
    border-top: none;
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
}

.sortable-header.sorting-desc::after {
    border-top: 4px solid #2563eb;
    border-bottom: none;
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
}

/* Pagination styles */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: white;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.875rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: white;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    gap: 0.25rem;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-btn.active {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
}

.pagination-btn.active:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

/* Search input enhancement */
.search-input {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 2.5rem 0.5rem 2.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Table responsive container */
.table-responsive {
    overflow-x: auto;
    border-radius: 0.5rem;
}

/* Modern table styles */
.table-modern {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.table-modern thead {
    background-color: #f9fafb;
}

.table-modern th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

.table-modern td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.table-modern tbody tr:hover {
    background-color: #f9fafb;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-error {
    background-color: #fecaca;
    color: #991b1b;
}

/* Mobile responsive pagination */
@media (max-width: 640px) {
    .pagination-wrapper {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .pagination-controls {
        justify-content: center;
    }
    
    .pagination-btn {
        padding: 0.5rem;
        min-width: 44px;
        justify-content: center;
    }
}