@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@700&family=Noto+Sans+Bengali:wght@400;700&display=swap');

:root {
    --primary: #064e3b;
    --primary-light: #065f46;
    --secondary: #d97706;
    --accent: #fbbf24;
    --surface: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
}

body {
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    background-color: var(--surface);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-size: 16px;
    /* Base font size */
}

/* Typography Scale - Consistent across all pages */
h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    /* 40px */
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    /* 32px */
    line-height: 1.3;
    margin-bottom: 0.875rem;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    /* 24px */
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    /* 20px */
    line-height: 1.4;
    margin-bottom: 0.625rem;
}

h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    /* 18px */
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    /* 16px */
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1rem;
    /* 16px */
    line-height: 1.6;
    margin-bottom: 1rem;
}

.small,
small {
    font-size: 0.875rem;
    /* 14px */
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.875rem;
    /* 14px */
}

/* Responsive Typography */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 2rem;
        /* 32px on mobile */
    }

    h2 {
        font-size: 1.75rem;
        /* 28px on mobile */
    }

    h3 {
        font-size: 1.375rem;
        /* 22px on mobile */
    }

    h4 {
        font-size: 1.125rem;
        /* 18px on mobile */
    }

    h5,
    h6 {
        font-size: 1rem;
        /* 16px on mobile */
    }
}

/* Glassmorphism Navbar */
.navbar-custom {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar-brand .project-title-display {
    font-weight: 700;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary);
    color: var(--white) !important;
}

/* Premium Buttons */
.btn-premium {
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-premium:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-premium {
    background-color: var(--secondary);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-secondary-premium:hover {
    background-color: #b45309;
    transform: translateY(-2px);
}

/* Cards */
.card-premium {
    background: var(--white);
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header-premium {
    background: var(--primary);
    color: var(--white);
    padding: 1.25rem;
    border: none;
    text-align: center;
}

/* Form Styling */
.form-control-premium {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease;
}

.form-control-premium:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.1);
}

/* Footer */
.footer-premium {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--white);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #065f46 100%);
    color: var(--white);
    padding: 6rem 3rem;
    text-align: center;
    border-radius: 0 0 4rem 4rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.1;
}

/* Countdown Timer */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.timer-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    min-width: 90px;
    transition: transform 0.3s ease;
}

.timer-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.timer-box .val {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.timer-box .lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Info Table */
.table-premium {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow-sm);
}

.table-premium thead th {
    background: #f1f5f9;
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    border: none;
}

.table-premium tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid #f1f5f9;
    color: var(--text-main);
}

.table-premium tbody tr:hover {
    background-color: #f8fafc;
}

/* Status Badges */
.badge-premium {
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-approved {
    background: #d1fae5;
    color: #065f46;
}

.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Filter Bar */
.filter-bar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

/* Utils */
.text-gold {
    color: var(--secondary);
}

.bg-glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
}

.rounded-xl {
    border-radius: 1rem !important;
}

.cursor-pointer {
    cursor: pointer;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.min-vh-400 {
    min-height: 400px;
}

.timer-box .val {
    font-size: 1.75rem;
}

/* Responsive Table Scrollbar Fix */
/* Force tables to scroll horizontally on small screens by preventing text wrapping */
.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block;
    width: 100%;
}

.table-responsive td,
.table-responsive th {
    white-space: nowrap;
}

/* Ensure table takes full width within responsive container */
.table-responsive>.table {
    margin-bottom: 0;
}

/* Floating Buttons */
.floating-btn {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.btn-whatsapp {
    left: 30px;
    background-color: #25D366;
    color: white;
    font-size: 32px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}

.btn-scroll-top {
    right: 30px;
    background: var(--primary);
    /* Uses theme primary color */
    color: white;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
}

.btn-scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-scroll-top:hover {
    background: var(--primary-light);
    color: white;
}

@media (max-width: 768px) {
    .floating-btn {
        bottom: 20px;
        width: 50px;
        height: 50px;
    }

    .btn-whatsapp {
        left: 20px;
        font-size: 28px;
    }

    .btn-scroll-top {
        right: 20px;
        font-size: 20px;
    }
}