/* Premium Global Styles */

/* 1. Base Typography & Smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color: #1e293b;
}

h1, h2, h3, h4, h5, h6 {
    color: #0f172a;
    letter-spacing: -0.02em;
}

/* 2. Modern Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9; 
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}

/* 3. Global Form Elements (Inputs, Selects, Textareas) */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #f8fafc;
    color: #1e293b;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #6366f1;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

/* 4. Global Button Enhancements */
button, 
.btn,
.btn-primary,
.submit-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

button:active, 
.btn:active {
    transform: scale(0.96) !important;
}

/* 5. Generic Cards & Panels Upgrade */
/* Automatically target common card class names and give them a professional lift */
[class*="card"],
[class*="panel"],
[class*="box"] {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 6. Modern Tables (For Dashboards) */
table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    background: white;
}

thead {
    background: #f8fafc;
}

th {
    padding: 1rem 1.5rem !important;
    text-align: left;
    font-weight: 600 !important;
    color: #475569 !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0 !important;
}

td {
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155;
    vertical-align: middle;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: #f8fafc !important;
}

tbody tr:last-child td {
    border-bottom: none !important;
}

/* 7. Badges / Status Pills */
.status, .badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.status.active, .status.success { background: #dcfce7; color: #166534; }
.status.pending, .status.warning { background: #fef9c3; color: #854d0e; }
.status.inactive, .status.danger { background: #fee2e2; color: #991b1b; }

/* 8. Global Focus States for Accessibility */
a:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: 4px;
}


/* =========================================
   9. GLOBAL RESPONSIVE FIXES (Mobile & Tablet)
   ========================================= */

/* Ensure all images scale automatically */
img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    /* Make all tables scrollable horizontally to prevent breaking layouts */
    table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Adjust padding for cards on smaller screens */
    .content-card {
        padding: 1rem !important;
        margin: 10px 5px !important;
    }

    /* Ensure modals don't overflow the screen */
    .modal-overlay .content-card {
        width: 95% !important;
        max-height: 95vh !important;
        padding: 1.5rem !important;
    }

    /* Adjust generic forms for mobile */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important; /* Prevents iOS Safari zoom on focus */
        padding: 0.7rem 1rem !important;
    }

    /* Make flex/grid layouts stack neatly where applicable */
    .hero-actions, .form-row {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .hero-actions button, .hero-actions a, .btn {
        width: 100% !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    /* Extra small screens adjustments */
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.75rem !important; }
    h3 { font-size: 1.5rem !important; }
    
    .navbar { padding: 0.8rem 4% !important; }
    .logo { font-size: 1.4rem !important; }
}






@media (max-width: 768px) {
    .footer-grid, .about-grid, .contact-grid, .content-container, .feature-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}



body {
    overflow-x: hidden;
}

