/* Agro In Vitro - Modern Admin Panel Styles */

:root {
    --primary-green: #3FA7C9;
    --secondary-green: #2E8EB0;
    --icon-excel: #198754;
    --icon-pdf: #dc3545;
    --icon-edit: #2563eb;
    --icon-delete: #dc3545;
    --icon-success: #198754;
    --light-green: #EAF4F9;
    --dark-green: #2E8EB0;
    --light-bg: #F4F7FA;
    --text-gray: #6B7280;
    --icon-gray: #9CA3AF;
    --sidebar-width: 280px;
    --topbar-height: 70px;
    --border-radius: 12px;
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 14px 32px rgba(15, 23, 42, 0.12);
    --mobile-bottom-nav-height: 64px;
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    -webkit-tap-highlight-color: rgba(63, 167, 201, 0.15);
}

/* ALSAgrofont shrifti - :root dan oldin qo'shish */
@font-face {
    font-family: 'ALSAgrofont';
    src: url('../fonts/ALSAgrofont-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ALSAgrofont';
    src: url('../fonts/ALSAgrofont-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ALSAgrofont';
    src: url('../fonts/ALSAgrofont-BoldExpanded.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Global Styles */
body {
    font-family: 'ALSAgrofont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-bg);
    font-size: 14px;
    line-height: 1.6;
    color: #1F2937;
}

.app-body {
    background-color: var(--light-bg) !important;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-right: none;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #cbd3da;
    border-radius: 2px;
}

.sidebar .sidebar-header {
    position: relative;
    background: transparent;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.sidebar .logo-icon i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Navigation Styles */
.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    margin-bottom: 2px;
    font-weight: 900;
}

.sidebar-nav .nav-link i {
    width: 22px;
    min-width: 22px;
    margin-right: 12px;
    font-size: 1.125rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.88);
}

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

.sidebar-nav .nav-link.active {
    background: var(--primary-green);
    color: white;
    box-shadow: var(--shadow-md);
}

.sidebar-nav .nav-link.active i,
.sidebar-nav .nav-link:hover i {
    color: #ffffff;
}

.sidebar-nav .nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

/*
 * Layout: sidebar fixed, alohida; app-shell — oddiy blok (flex konteyner ichida emas).
 * Shunda mobilida "balandlik 0" / pastki nav yuqoriga chiqishi bartaraf etiladi.
 */
.app-shell {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    min-height: 100dvh;
    min-width: 0;
    width: auto;
    display: block;
    position: relative;
    /* z-index qo‘yilmasin: ichidagi .modal fon (backdrop) ostida qolib ketmasin */
    background-color: var(--light-bg);
}

.app-content.main-content {
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

@media (min-width: 768px) {
    .app-content.main-content {
        display: flex;
        flex-direction: column;
    }
}

/* Top Navigation */
.navbar {
    height: var(--topbar-height);
    box-shadow: var(--shadow-sm);
}

.app-topbar {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green)) !important;
}

.app-topbar .navbar-brand,
.app-topbar .nav-link,
.app-topbar .navbar-text {
    color: #ffffff !important;
}

.app-topbar i,
.sidebar i {
    color: #ffffff !important;
}

/* Statistics Cards */
.stat-card {
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #EEF1F4;
    box-shadow: var(--shadow-sm);
}

/* Dashboard statistika kartochkalari sarlavhalarini bold qilish */
.stat-card .card-body h5,
.stat-card .card-body h6,
.stat-card .card-title,
.stat-card .card-text {
    font-weight: 700 !important; /* ALSAgrofont-BoldExpanded */
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    background: #EAF4F9;
    font-size: 20px;
}

.stat-card [class*="bg-"] {
    background: transparent !important;
    color: var(--primary-green) !important;
}

/* Profit Card */
.profit-card {
    background: #ffffff;
    border: 1px solid #EEF1F4;
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius);
}

.profit-icon {
    width: 80px;
    height: 80px;
    background: #EAF4F9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 36px;
}

/* Dashboard: Chart.js — o‘rama (responsive: true, maintainAspectRatio: false) */
.dashboard-chart-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    min-height: 220px;
    height: 280px;
}

@media (max-width: 575.98px) {
    .dashboard-chart-wrap {
        min-height: 220px;
        height: 260px;
    }
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    position: relative;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    width: 2px;
    height: calc(100% + 8px);
    background: #e9ecef;
}

.activity-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}

.activity-content h6 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.activity-content p {
    font-size: 12px;
}

/* Quick Action Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary,
.btn-success {
    background-color: var(--primary-green) !important;
    border-color: var(--primary-green) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: var(--dark-green) !important;
    border-color: var(--dark-green) !important;
}

.btn-outline-secondary {
    color: var(--text-gray);
    border-color: #D1D5DB;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .app-topbar.navbar {
        height: auto;
        min-height: var(--topbar-height);
    }

    .app-topbar .container-fluid {
        flex-wrap: wrap;
        align-items: center;
        row-gap: 0.5rem;
        column-gap: 0.5rem;
    }

    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    
    .sidebar.show {
        margin-left: 0;
    }
    
    .app-shell {
        margin-left: 0;
    }
    
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-backdrop.show {
        opacity: 1;
        visibility: visible;
    }

    /* Pastki mobil navigatsiya */
    .mobile-bottom-nav {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        z-index: 1050;
        box-sizing: border-box;
        min-height: var(--mobile-bottom-nav-height);
        background: #ffffff;
        border-top: 1px solid #eef1f4;
        box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.06);
        padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
        pointer-events: auto;
    }

    .mobile-bottom-nav__link.active,
    .mobile-bottom-nav__link.active .bi {
        color: var(--primary-green) !important;
    }
}

@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Asosiy sahifa kontenti (layout klasslari bilan chalkashmasin) */
main.app-page-main {
    position: relative;
    /* z-index yo‘q: Bootstrap modal body’dagi backdrop ustida bo‘lishi kerak */
}

@media (max-width: 767.98px) {
    html {
        overflow-x: hidden;
    }

    body.app-body.has-mobile-bottom-nav {
        padding-bottom: 80px;
        overflow-x: hidden;
    }

    body.app-body.has-mobile-bottom-nav main {
        padding-bottom: 0;
    }

    .app-topbar.navbar {
        position: relative;
        z-index: 1020;
        flex-shrink: 0;
    }

    .app-shell {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: visible;
    }

    .app-content.main-content {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .main-content,
    .app-content {
        margin-left: 0 !important;
    }

    main.app-page-main,
    .app-page-main.page-content,
    .page-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
        position: relative;
    }

    .sidebar,
    .sidebar.app-sidebar {
        display: flex !important;
        flex-direction: column;
        margin-left: 0 !important;
        transform: translate3d(-100%, 0, 0);
        pointer-events: none;
        transition: transform 0.3s ease;
    }

    .sidebar.show,
    .sidebar.app-sidebar.show {
        transform: translate3d(0, 0, 0);
        pointer-events: auto;
        z-index: 1060;
    }

    .sidebar-backdrop {
        z-index: 1055;
    }

    .mobile-bottom-nav {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1050;
    }

    .footer {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .stat-card .card-body {
        text-align: center;
    }

    .stat-card .stat-icon {
        margin: 0 auto 16px;
    }

    .profit-card .row > div {
        text-align: center !important;
        margin-bottom: 20px;
    }

    .profit-icon {
        margin: 0 auto 20px;
    }
}

/* Alert Improvements */
.alert {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* Card Improvements */
.card {
    background-color: #ffffff;
    border: 1px solid #EEF1F4;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

/* Footer */
.footer {
    margin-left: var(--sidebar-width);
    transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
    .footer {
        margin-left: 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd3da;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

/* Badge Improvements */
.badge {
    border-radius: 6px;
}

/* Dropdown Improvements */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.dropdown-item {
    border-radius: 6px;
    margin: 2px 4px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--light-green);
    color: var(--dark-green);
}

.dropdown-item .bi {
    color: var(--text-gray);
}

.dropdown-item.text-danger .bi {
    color: var(--icon-delete) !important;
}

.app-topbar .dropdown-item .bi {
    color: var(--text-gray);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.btn-export-excel {
    background-color: var(--icon-excel) !important;
    border-color: var(--icon-excel) !important;
    color: #fff !important;
}

.btn-export-excel:hover,
.btn-export-excel:focus {
    background-color: #157347 !important;
    border-color: #146c43 !important;
    color: #fff !important;
}

.btn-export-pdf {
    background-color: var(--icon-pdf) !important;
    border-color: var(--icon-pdf) !important;
    color: #fff !important;
}

.btn-export-pdf:hover,
.btn-export-pdf:focus {
    background-color: #bb2d3b !important;
    border-color: #b02a37 !important;
    color: #fff !important;
}

.btn-export-excel .bi,
.btn-export-pdf .bi {
    color: #fff !important;
}

.btn-warning.text-white .bi {
    color: #fff !important;
}

.btn-icon-action {
    width: 2.125rem;
    height: 2.125rem;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    line-height: 1 !important;
    font-size: 1rem;
    border-width: 1.5px !important;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    vertical-align: middle;
}

.btn-icon-action i {
    margin: 0 !important;
}

.btn-icon-action.btn-icon-edit {
    color: var(--icon-edit) !important;
    border-color: rgba(37, 99, 235, 0.4) !important;
    background-color: rgba(37, 99, 235, 0.08) !important;
}

.btn-icon-action.btn-icon-edit:hover,
.btn-icon-action.btn-icon-edit:focus {
    color: #fff !important;
    background-color: var(--icon-edit) !important;
    border-color: var(--icon-edit) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.btn-icon-action.btn-icon-delete {
    color: var(--icon-delete) !important;
    border-color: rgba(220, 53, 69, 0.45) !important;
    background-color: rgba(220, 53, 69, 0.07) !important;
}

.btn-icon-action.btn-icon-delete:hover,
.btn-icon-action.btn-icon-delete:focus {
    color: #fff !important;
    background-color: var(--icon-delete) !important;
    border-color: var(--icon-delete) !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.35);
}

.btn-with-icon i:first-child {
    margin-right: 0.45rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

/* Focus States */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(63, 167, 201, 0.22);
}

/* Table Improvements */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table thead th {
    border-bottom: 2px solid var(--primary-green);
    font-weight: 600;
    background: #EDF4F8;
}

/* Modal Improvements */
.modal-content {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--light-green);
    background: #EDF4F8;
}

main .bi:not(.text-primary):not(.text-success):not(.text-danger):not(.text-warning):not(.text-info):not(.text-muted) {
    color: inherit;
}



.card-title .bi.text-primary,
h1 .bi.text-primary,
h2 .bi.text-primary,
h3 .bi.text-primary,
h4 .bi.text-primary,
h5 .bi.text-primary,
h6 .bi.text-primary {
    color: var(--primary-green) !important;
}

.text-muted,
.text-secondary {
    color: var(--text-gray) !important;
}

/* Print Styles */
@media print {
    .sidebar,
    .navbar,
    .footer,
    .mobile-bottom-nav {
        display: none !important;
    }
    
    .app-shell,
    .app-content {
        margin-left: 0 !important;
    }
}

/* Login Page */
body.login-page {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    font-family: 'ALSAgrofont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background: linear-gradient(135deg, #0b2330 0%, #102a43 100%);
}

.video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.login-container {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 2;
}

.login-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    color: #fff;
}

.login-brand-logo {
    max-width: 360px;
    height: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .35));
}

.login-card-logo {
    max-width: 230px;
    height: auto;
    margin-bottom: 18px;
}

.login-left p {
    margin: 0;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.9);
}

.login-right {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    width: 400px;
    max-width: 100%;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.login-brand {
    margin-bottom: 18px;
}

.login-brand-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-green);
    margin-bottom: 10px;
}

.login-brand-title {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    color: #fff;
}

.login-brand-subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.86);
}

.login-field {
    margin-bottom: 14px;
}

.login-field label {
    display: block;
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 500;
}

.login-field label i {
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.95) !important;
}

.login-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 12px;
    color: #1f2937;
}

.login-input:focus {
    outline: none;
    border-color: rgba(63, 167, 201, 0.9);
    box-shadow: 0 0 0 3px rgba(63, 167, 201, 0.25);
}

.login-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 14px;
}

.login-check-input {
    width: 15px;
    height: 15px;
    accent-color: var(--primary-green);
}

.login-remember-label {
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
}

.login-submit-btn {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    cursor: pointer;
}

.login-submit-btn i {
    margin-right: 8px;
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
}

.login-alert-danger {
    background: rgba(255, 77, 77, 0.22);
    border: 1px solid rgba(255, 120, 120, 0.5);
    color: #fff;
}

.login-alert-success {
    background: rgba(40, 167, 69, 0.22);
    border: 1px solid rgba(130, 226, 152, 0.5);
    color: #fff;
}

.login-footer-note {
    margin-top: 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
}

.login-footer-note i {
    margin-right: 5px;
    color: rgba(255, 255, 255, 0.88) !important;
}

@media (max-width: 768px) {
    body.login-page {
        overflow: auto;
    }

    .login-container {
        flex-direction: column;
        min-height: 100vh;
    }

    .login-left {
        display: none;
    }

    .login-right {
        width: 100%;
        min-height: 100vh;
        padding: 16px;
    }

    .login-card {
        width: 100%;
        max-width: 430px;
        padding: 28px 22px;
    }
}

/* Dashboard — ob-havo + valyuta (umumiy dashboard-info-card) */
.dashboard-info-row {
    margin-bottom: 24px;
}

.dashboard-stats-grid {
    margin-top: 0;
    margin-bottom: 24px;
    --bs-gutter-x: 24px;
    --bs-gutter-y: 24px;
}

.dashboard-section-row {
    margin-bottom: 24px;
}

.dashboard-top-weather-currency {
    align-items: stretch;
}

.dashboard-top-weather-currency > [class*="col-"] {
    min-width: 0;
}

.dashboard-info-card.card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 132px;
    background-color: #ffffff;
    border: 1px solid #eef1f4 !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: none;
}

.dashboard-info-card--weather.dashboard-info-card.card {
    overflow: hidden;
}

.dashboard-info-card--currency.dashboard-info-card.card {
    overflow-x: hidden;
    overflow-y: auto;
}

.dashboard-info-card-body {
    padding: 1rem 1.125rem;
    flex: 1 1 auto;
    min-height: 0;
}

.dashboard-weather-compact .card-body,
.dashboard-currency-compact .card-body {
    flex: 1 1 auto;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.icon-box:hover {
    transform: scale(1.08);
    transition: 0.2s;
}

.weather-icon {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.currency-icon {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.icon-box svg {
    width: 22px;
    height: 22px;
}

.dashboard-weather-compact__location {
    font-size: 15px;
    line-height: 1.25;
}

.dashboard-weather-compact__obs {
    font-size: 12px;
    line-height: 1.25;
    margin-top: 2px;
}

.dashboard-weather-compact__temp {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.dashboard-weather-compact__deg {
    font-size: 0.5em;
    font-weight: 700;
    opacity: 0.85;
    margin-left: 1px;
}

.dashboard-currency-compact__title {
    font-size: 16px;
    line-height: 1.2;
}

.dashboard-currency-compact__meta {
    font-size: 11px;
    line-height: 1.2;
    color: var(--bs-secondary-color, #6c757d);
    white-space: nowrap;
}

.dashboard-currency-compact__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dashboard-currency-compact__row {
    font-size: 14px;
    line-height: 1.2;
    padding: 1px 0;
}

.dashboard-currency-compact__flag {
    font-size: 13px;
    line-height: 1;
}

@media (max-width: 768px) {
    .dashboard-info-row {
        margin-bottom: 16px;
    }

    .dashboard-info-card.dashboard-weather-compact .card-body {
        text-align: left;
    }

    .dashboard-info-card.dashboard-currency-compact .card-body {
        text-align: left;
    }
}