/* UPD-141: site.css - Barcha CSS fayllarini import qilish */

@import url('_base.css');
@import url('_layout.css');
@import url('_components.css');
@import url('_navbar.css');
@import url('_responsive.css');

/* Agar bu yerda boshqa maxsus stillar bo'lsa, ularni shu yerda qoldiring */
.card-row {
    padding: 0 0.75rem 0.75rem 0.75rem !important;
}

.grid-view,
.grid-view:hover {
    box-shadow: none;
    transform: none;
}

.grid-view th:hover {
    background: #fff;
}

.grid-view tbody tr:hover {
    transform: none;
}

.btn:hover {
    transform: none !important;
}

.alert {
    border-radius: 0 !important;
}

.page-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: rgb(108, 117, 125);
    position: relative;
    margin: 20px 0;
}

.page-title::after {
    content: "";
    display: block;
    width: 60px;
    /* chiziq uzunligi (doimiy) */
    height: 4px;
    /* chiziq qalinligi */
    background-color: rgb(108, 117, 125);
    /* chiziq rangi */
    border-radius: 2px;
    /* yumaloq qirralar */
    margin: 6px auto 0;
    /* markazda joylashishi */
}

.pagination a {
    text-decoration: none !important;
}

.grid-search-input {
    border-radius: 0 !important;
    width: 100%;
    display: block;
}

.select2-selection--single {
    border-radius: 0 !important;
}

/* Glassmorphism Styles for Admin Dashboard */
:root {
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-blur: 16px;
    --text-primary: #1a202c;
    /* Darker for better contrast */
    --text-secondary: #2d3748;
    /* Much darker grey for readability */
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    font-family: 'Inter', sans-serif;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    /* increased opacity for better contrast */
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 24px;
    /* Flexbox for equal height and bottom button alignment */
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.glass-card h2 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.glass-card h2 i {
    background: rgba(255, 255, 255, 0.4);
    padding: 10px;
    border-radius: 12px;
    color: #1a2a6c;
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    /* Slightly larger */
    font-weight: 500;
    /* Increased weight */
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Glass Buttons */
.btn-glass-primary {
    background: rgba(26, 42, 108, 0.9) !important;
    color: white !important;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 42, 108, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.btn-glass-primary:hover {
    background: rgba(26, 42, 108, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 42, 108, 0.3);
}

/* Jumbotron / Hero Section */
.glass-jumbotron {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.glass-jumbotron h1 {
    font-weight: 800;
    color: #1a2a6c;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.glass-jumbotron .lead {
    color: #2d3748;
    /* Darker grey */
    font-weight: 500;
}

/* Glass Badges for Statistics */
.glass-badge-info,
.glass-badge-success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-badge-info {
    background: rgba(23, 162, 184, 0.15);
    /* Bootstrap Info Color with transparency */
    color: #0c5460;
}

.glass-badge-success {
    background: rgba(40, 167, 69, 0.15);
    /* Bootstrap Success Color with transparency */
    color: #155724;
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
}

body.dark-mode .glass-card {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .page-title {
    color: #e2e8f0;
}

body.dark-mode .page-title::after {
    background-color: #e2e8f0;
}

body.dark-mode .glass-card h2 {
    color: #f7fafc;
}

body.dark-mode .glass-card p {
    color: #cbd5e0;
}

body.dark-mode .glass-badge-info {
    background: rgba(23, 162, 184, 0.25);
    color: #a0aec0;
}

body.dark-mode .glass-badge-success {
    background: rgba(40, 167, 69, 0.25);
    color: #9ae6b4;
}

body.dark-mode .glass-jumbotron {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .glass-jumbotron h1 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

body.dark-mode .glass-jumbotron .lead {
    color: #cbd5e0;
}

body.dark-mode .table {
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .table thead th {
    border-bottom-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

body.dark-mode .table-striped>tbody>tr:nth-of-type(odd)>* {
    color: #e2e8f0;
    box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, 0.05);
}

body.dark-mode .table-hover>tbody>tr:hover>* {
    box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, 0.1);
    color: #fff;
}

body.dark-mode .form-control {
    background-color: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

body.dark-mode .form-control:focus {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: #63b3ed;
    color: #fff;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .glass-jumbotron {
        padding: 24px 15px;
        margin-bottom: 24px;
        text-align: center;
    }

    .glass-jumbotron h1 {
        font-size: 1.8rem;
    }

    .glass-jumbotron .lead {
        font-size: 1rem;
    }

    .glass-card {
        padding: 16px;
        margin-bottom: 16px;
    }

    .glass-card h2 {
        font-size: 1.2rem;
    }

    .glass-badge-info,
    .glass-badge-success {
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}
/* Liquid Glass Table */
.grid-view table,
.table {
    background-color: transparent !important;
    color: var(--text-primary);
}

.grid-view table thead th,
.table thead th {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    color: #1a2a6c;
}

.grid-view table tbody tr td,
.table tbody tr td {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.2);
    vertical-align: middle;
}

.grid-view table tbody tr:hover,
.table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Glass Inputs in Grid */
.grid-search-input {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px !important;
    padding: 6px 12px;
    backdrop-filter: blur(4px);
}

.grid-search-input:focus {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.1);
}
