@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --accent-color: #00d2ff;
    --accent-gradient: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --backdrop-blur: 10px;
    --border-radius: 16px;
}

*,
*:before,
*:after {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

/* Container */
.container,
form {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Typography */
h1 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

h2 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 20px;
}

/* Glassmorphism Cards */
.nav-container,
.branch,
.filter-container {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 25px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

/* Navigation */
.nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: var(--accent-gradient);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
    text-decoration: none;
    color: #fff;
    transform: translateY(-2px);
}

/* Dashboard Grid */
.branch-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.branch:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Stats Row */
.stat-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.stat-item {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 5px 0;
    text-transform: uppercase;
}

.stat-item span {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #a0aec0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
    margin-bottom: 0;
}

.table th {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.table td {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

.table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Forms & Inputs */
input,
select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

label {
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}

/* Buttons */
.btn {
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 123, 213, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Filter Container adjustments */
.filter-container {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .branch-container {
        grid-template-columns: 1fr;
    }

    .nav-container {
        flex-direction: column;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-item {
        width: 100%;
    }

    h1 {
        font-size: 1.8rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    .nav-container,
    .no-print,
    .btn,
    .filter-container {
        display: none !important;
    }

    .branch,
    .container {
        box-shadow: none;
        background: none;
        border: none;
        margin: 0;
        padding: 0;
    }

    .table th,
    .table td {
        border: 1px solid #000;
        color: #000;
    }
}