@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1b3c8f; /* Tata Navy Blue */
    --accent: #00a1b0; /* Tata 1mg Teal */
    --accent-dark: #008494;
    --coral: #ff6f61; /* 1mg Coral/Red */
    --text-main: #11233b;
    --text-muted: #64748b;
    --bg-light: #ffffff;
    --bg-alt: #f8fafc;
    --success: #15803d;
    --danger: #b91c1c;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

@media (max-width: 1024px) {
    .mobile-stack {
        flex-direction: column !important;
        gap: 3rem !important;
        text-align: center;
    }
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 8px; /* Modern sharp-ish corners */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    text-transform: none !important;
    letter-spacing: -0.2px;
    font-size: 0.95rem;
}

.btn-teal {
    background: #11233b;
    color: white !important;
}

.btn-teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 161, 176, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Navigation */
nav {
    background: white;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f1f5f9;
}

.logo-img {
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-links a {
    text-decoration: none;
    color: #11233b;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 5px;
}

/* Form Styling (Centered like Tata 1mg) */
.application-box {
    background: white;
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: -5rem auto 0;
    position: relative;
    z-index: 20;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: none;
}

.form-input {
    width: 100%;
    padding: 1.2rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s;
    background: #f8fafc;
    font-size: 1rem;
    color: var(--text-main);
}

.form-input::placeholder {
    color: #000000; /* Black placeholders as requested */
    opacity: 0.8; /* Slight opacity for better aesthetic while remaining dark */
}

.form-input:focus {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 161, 176, 0.05);
}

/* Footer Styles */
.site-footer {
    background: #11233b;
    color: white;
    padding: 6rem 0 3rem;
    font-family: 'Inter', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-column h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: none;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--coral);
    width: 18px;
    height: 18px;
}

.footer-bottom {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: white;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: left;
    }

    .footer-contact p {
        justify-content: flex-start;
    }

    .social-links {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-legal {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

/* Status Badges */
.status-badge {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: none;
    letter-spacing: 0.5px;
}

.status-pending { background: #fff7ed; color: #c2410c; }
.status-processing { background: #eff6ff; color: #1d4ed8; }
.status-approved { background: #f0fdf4; color: #15803d; }
.status-cancelled { background: #fef2f2; color: #991b1b; }
.status-rejected { background: #fef2f2; color: #b91c1c; }
.status-action_required { background: #fffbeb; color: #92400e; }

/* Admin Dashboard Layout */
.admin-body {
    background: #f4f7fa;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e2e8f0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1100;
    transition: transform 0.3s ease;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 3rem 5%;
    width: calc(100% - 280px);
}

/* Status Certificate */
.certificate-container {
    max-width: 1000px;
    margin: 4rem auto;
    background: white;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow-x: auto;
}

/* Table Responsiveness */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Responsive Design */
/* Mobile Navigation Sidebar */
@media (max-width: 1024px) {
    nav {
        padding: 0 5%;
        height: 70px;
        z-index: 1300; /* Ensure nav is above overlay */
    }

    .menu-toggle {
        display: block;
        z-index: 1301;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 2rem 80px; /* Added 80px bottom padding */
        gap: 0.5rem;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        overflow-y: auto; /* Allow scrolling if menu is long */
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1302; /* Highest z-index for drawer */
    }

    .mobile-logo {
        display: flex !important;
        align-items: center;
        margin-bottom: 2rem;
        padding-left: 1rem;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        width: 100%;
        padding: 1rem;
        border-radius: 12px;
        font-size: 1rem;
        font-weight: 600;
        color: var(--primary);
        display: flex;
        align-items: center;
        transition: background 0.2s;
    }

    .nav-links a:hover {
        background: #f0f9fa;
        color: var(--accent);
    }

    .nav-links .btn-teal {
        width: 100%;
        margin-top: 2rem;
        margin-bottom: 2rem;
        background: var(--primary);
        color: white !important;
        padding: 1.2rem;
        justify-content: center;
        font-weight: 700;
        border-radius: 12px;
    }

    /* Backdrop Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(17, 35, 59, 0.4);
        backdrop-filter: blur(2px); /* Reduced blur for better performance/look */
        z-index: 1200; /* Below nav and nav-links */
        display: none;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .hero-banner h1 {
        font-size: 2.5rem;
    }

    /* Admin Sidebar for Tablets */
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 2rem 5%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section-padding {
        padding: 3.5rem 0;
    }

    .hero-banner {
        padding: 60px 1rem;
        min-height: 400px;
    }

    .hero-banner h1 {
        font-size: 2rem;
    }

    .cta-container {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    .application-box {
        padding: 2rem 1.5rem;
        margin-top: -2rem;
        border-radius: 16px;
        width: calc(100% - 2rem);
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .benefit-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .benefit-card {
        padding: 2rem;
    }

    footer > div {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Status Certificate Mobile */
    .certificate-container {
        padding: 20px 15px;
        margin: 2rem 0.5rem;
        border-radius: 8px;
    }

    .cert-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .cert-info-table {
        width: 100% !important;
    }

    .photo-box {
        float: none;
        margin: 0 auto 20px;
    }

    /* Login Page */
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    /* Index Page Grid Overrides */
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    div[style*="display: flex; align-items: center; gap: 5rem"] {
        flex-direction: column !important;
        gap: 2rem !important;
    }
}

@media (max-width: 480px) {
    .hero-banner h1 {
        font-size: 1.75rem;
    }

    .logo span {
        font-size: 1.5rem !important;
    }

    .cert-logo span {
        font-size: 1.8rem !important;
    }
}

/* Base Adjustments */
img {
    max-width: 100%;
    height: auto;
}

.animate-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile and Tablet Responsiveness Updates */
@media (max-width: 1024px) {
    .enterprise-hero {
        padding: 6rem 5% !important;
    }
    .content-card {
        padding: 3rem 2rem !important;
        margin-top: -3rem !important;
        border-radius: 24px !important;
    }
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 2rem 5% !important;
    }
    /* Settings Form Grid */
    form[style*="display: grid; grid-template-columns: 1fr 1fr"],
    form[style*="display: grid; grid-template-columns: 1fr 1fr;"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 2rem !important;
    }
}

@media (max-width: 768px) {
    .enterprise-hero {
        padding: 5rem 1rem 4rem !important;
    }
    .enterprise-hero h1 {
        font-size: 2.2rem !important;
    }
    .content-card {
        padding: 2rem 1.25rem !important;
        margin-top: -2rem !important;
        border-radius: 16px !important;
    }
    /* Stat cards on financials.php */
    div[style*="display: grid; grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-bottom: 3rem !important;
    }
    /* Admin headers */
    .main-content header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
    }
    .main-content header h1 {
        font-size: 1.8rem !important;
    }
    /* Admin tables parent paddings */
    div[style*="background: white; padding: 2.5rem; border-radius: 24px"],
    div[style*="background: white; padding: 2.5rem; border-radius: 24px;"],
    div[style*="background: white; padding: 2rem; border-radius: 24px"],
    div[style*="background: white; padding: 2rem; border-radius: 24px;"] {
        padding: 1.5rem 1rem !important;
        border-radius: 16px !important;
    }
    /* Settings layout adjustments */
    form[style*="display: grid; grid-template-columns: 1fr 1fr"],
    form[style*="display: grid; grid-template-columns: 1fr 1fr;"] {
        padding: 1rem !important;
        gap: 1.5rem !important;
    }
    form[style*="display: grid; grid-template-columns: 1fr 1fr"] div[style*="grid-column: span 2"],
    form[style*="display: grid; grid-template-columns: 1fr 1fr;"] div[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }

    /* Admin specific responsiveness font size and padding reductions on mobile */
    .admin-body {
        font-size: 0.8rem !important;
    }
    .admin-body h1 {
        font-size: 1.5rem !important;
    }
    .admin-body h2 {
        font-size: 1.25rem !important;
    }
    .admin-body h3, .admin-body h4 {
        font-size: 1.1rem !important;
    }
    .admin-body .main-content {
        padding: 1.5rem 1rem !important;
    }
    /* Stat cards */
    .admin-body .stat-card {
        padding: 1rem !important;
    }
    .admin-body .stat-card h3 {
        font-size: 1.6rem !important;
    }
    .admin-body .stat-card p {
        font-size: 0.75rem !important;
    }
    /* Tables font and spacing */
    .admin-body table th,
    .admin-body table td {
        font-size: 0.72rem !important;
        padding: 0.5rem 0.4rem !important;
    }
    .admin-body table th {
        font-weight: 700 !important;
    }
    /* Modal / Form adjustments on mobile */
    .admin-body .modal-content {
        padding: 1.25rem 0.85rem !important;
        border-radius: 16px !important;
    }
    .admin-body .form-input {
        padding: 0.75rem !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
    }
    .admin-body .form-label {
        font-size: 0.72rem !important;
        margin-bottom: 0.35rem !important;
    }
    .admin-body .btn {
        padding: 0.7rem 1rem !important;
        font-size: 0.75rem !important;
    }
    /* Grid gap reductions */
    .admin-body div[style*="display: grid; grid-template-columns: 1fr 1fr"],
    .admin-body form[style*="display: grid; grid-template-columns: 1fr 1fr"] {
        gap: 0.85rem !important;
    }
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin-top: 3rem !important;
    }
    .contact-grid > div:last-child {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }
    .form-inline-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }
}





