/* Umumiy stil */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #1a5c36;
    --secondary-color: #2e8b57;
    --accent-color: #ffd700;
    --light-color: #f5f9f7;
    --dark-color: #134728;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--dark-color);
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    height: 40px;
    white-space: nowrap;
}

.btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--light-color);
}

/* Registratsiya sahifasi */
.container {
    display: flex;
    width: 90%;
    max-width: 1000px;
    height: auto;
    min-height: 600px;
    margin: 40px auto;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.left-side {
    flex: 1;
    background: linear-gradient(rgba(26, 92, 54, 0.85), rgba(46, 139, 87, 0.9)), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.logo i {
    font-size: 2.5rem;
    margin-right: 15px;
    color: var(--accent-color);
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo span {
    color: var(--accent-color);
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

.left-side h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.left-side p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 30px;
}

.features {
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature i {
    margin-right: 12px;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.right-side {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-side h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.right-side p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.input-with-flag {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.input-with-flag:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 92, 54, 0.2);
}

.flag {
    padding: 0 15px;
    background-color: #f9f9f9;
    height: 50px;
    display: flex;
    align-items: center;
    border-right: 1px solid var(--border-color);
}

.flag img {
    width: 20px;
    height: 14px;
    margin-right: 8px;
    border-radius: 2px;
}

.input-with-flag input, 
input, select {
    flex: 1;
    border: none;
    padding: 15px;
    font-size: 1rem;
    outline: none;
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

input:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 92, 54, 0.2);
}

.phone-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.terms {
    margin-top: 30px;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

.terms a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Dashboard va boshqa sahifalar uchun umumiy stil */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--primary-color);
    color: white;
    padding: 25px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 0 25px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.farm-info {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.farm-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.farm-location {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 5px 0;
}

.farm-progress {
    margin-top: 10px;
}

.progress-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--accent-color);
    width: 65%;
    border-radius: 3px;
    transition: none !important;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Sidebar navigation scroll bar */
.nav-menu {
    flex: 1;
    padding: 25px 0;
    overflow-y: auto;
    max-height: calc(100vh - 300px);
    padding-right: 5px;
}

/* Custom scrollbar for sidebar */
.nav-menu::-webkit-scrollbar {
    width: 6px;
}

.nav-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.nav-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Firefox uchun */
.nav-menu {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    border-left: 3px solid transparent;
    cursor: pointer;
}

.nav-item:hover, .nav-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left: 3px solid var(--accent-color);
}

.nav-item i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.badge {
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: auto;
    font-weight: 600;
}

.sidebar-footer {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    cursor: pointer;
}

.logout-btn:hover {
    color: white;
}

.logout-btn i {
    margin-right: 10px;
}

/* Asosiy kontent - YANGILANDI */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px;
    background-color: var(--light-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* HEADER YANGILANDI - MUAMMO TUZATILDI */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    position: relative;
}

.header h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(26, 92, 54, 0.05);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(26, 92, 54, 0.1);
    min-width: 180px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-phone {
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dashboard kontenti */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: none !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 1.2rem;
    color: var(--text-color);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.card-icon.blue {
    background-color: #4a6bdf;
}

.card-icon.green {
    background-color: var(--primary-color);
}

.card-icon.orange {
    background-color: #ff9800;
}

.card-icon.purple {
    background-color: #9c27b0;
}

/* Dashboard kartalari uchun doimiy qiymatlar */
.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

/* Trend o'zgarishlarini yashirish */
.card-value .trend {
    display: none !important;
}

.card-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.card-chart {
    height: 60px;
    margin-top: 15px;
}

/* Boshqa sahifalar uchun kontent */
.page-content {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

/* Dark Mode - O'chirildi */
.dark-mode-toggle {
    display: none !important;
}

/* MODAL YANGILANDI - HOVER SCROLL MUAMMOSI TUZATILDI */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-content {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0;
    flex: 1;
    padding-right: 10px;
}

.modal-body {
    padding: 10px 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(26, 92, 54, 0.1);
    margin-right: -5px;
    padding-right: 5px;
}

/* Chrome, Safari va Edge uchun chiroyli scrollbar */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(26, 92, 54, 0.1);
    border-radius: 10px;
    margin: 5px 0;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--dark-color), var(--primary-color));
}

.modal-footer {
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    text-align: right;
    flex-shrink: 0;
}

/* Modal ichidagi tavsiyalar */
.modal .ai-recommendations {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 5px;
}

.modal .recommendation {
    background-color: rgba(26, 92, 54, 0.05);
    border: 1px solid rgba(26, 92, 54, 0.1);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    min-height: 85px;
    margin-right: 0;
}

.modal .recommendation:hover {
    background-color: rgba(26, 92, 54, 0.08);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.modal .recommendation-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    font-size: 1.3rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.modal .recommendation-content {
    flex: 1;
    min-width: 0;
}

.modal .recommendation-content h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-color);
}

.modal .recommendation-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 8px;
}

.modal .recommendation-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* YANGI: QO'SHIMCHA TAVSIYALAR ICONLARI UCHUN */
.recommendation-icon.weather {
    background: linear-gradient(135deg, #2196F3, #21CBF3) !important;
}

.recommendation-icon.soil {
    background: linear-gradient(135deg, #795548, #A1887F) !important;
}

.recommendation-icon.water {
    background: linear-gradient(135deg, #00BCD4, #4DD0E1) !important;
}

.recommendation-icon.pest {
    background: linear-gradient(135deg, #FF9800, #FFB74D) !important;
}

.recommendation-icon.fertilizer {
    background: linear-gradient(135deg, #4CAF50, #81C784) !important;
}

.recommendation-icon.harvest {
    background: linear-gradient(135deg, #9C27B0, #BA68C8) !important;
}

.recommendation-icon.organic {
    background: linear-gradient(135deg, #8BC34A, #CDDC39) !important;
}

/* Animatsiyalar */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal {
    animation: fadeIn 0.3s ease;
}

.modal-content {
    animation: slideIn 0.3s ease;
}

/* Tahlillar modali uchun */
.recent-analytics {
    margin-top: 20px;
}

.analytic-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.analytic-item:hover {
    background-color: rgba(26, 92, 54, 0.05);
}

.analytic-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(26, 92, 54, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
}

.analytic-info {
    flex: 1;
}

.analytic-info h4 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.analytic-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.analytic-status {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.analytic-status i {
    margin-right: 5px;
}

.analytic-status.good {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.analytic-status.warning {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

/* AI Tavsiyalari modali uchun */
.ai-recommendations {
    margin-top: 20px;
}

.recommendation {
    display: flex;
    padding: 20px;
    border-radius: 12px;
    background-color: rgba(26, 92, 54, 0.05);
    margin-bottom: 15px;
}

.recommendation-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.recommendation-content {
    flex: 1;
}

.recommendation-content h4 {
    margin-bottom: 8px;
    color: var(--text-color);
}

.recommendation-content p {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.recommendation-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

.priority {
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.7rem;
}

.priority.high {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.priority.medium {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.priority.low {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        margin: 20px auto;
        height: auto;
    }
    
    .left-side, .right-side {
        padding: 30px;
    }
    
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px;
    }
    
    .nav-menu {
        display: flex;
        overflow-x: auto;
        padding: 15px 0;
        max-height: none;
    }
    
    .nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .nav-item:hover, .nav-item.active {
        border-left: none;
        border-bottom: 3px solid var(--accent-color);
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    /* HEADER RESPONSIVE */
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px 0;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .user-info {
        min-width: auto;
        flex: 1;
    }
}

@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 10px 0;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .page-header .btn {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
        max-height: 85vh;
    }
    
    .modal-body {
        max-height: 65vh;
    }
    
    .modal .recommendation {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal .recommendation-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Xavfsizlik uchun qo'shimcha stillar */
.security-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    flex: 1;
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
}

.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 6px;
    background-color: var(--light-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background-color: #f44336;
    transition: width 0.3s ease;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--text-light);
}

.password-hints {
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(33, 150, 243, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2196f3;
}

.password-hints i {
    margin-right: 5px;
}

.two-factor-setup {
    margin-top: 20px;
}

.qr-code {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 20px;
}

.qr-placeholder {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 2px dashed var(--border-color);
}

.qr-placeholder i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 15px;
}

.qr-instructions ol {
    margin: 15px 0;
    padding-left: 20px;
}

.qr-instructions li {
    margin-bottom: 8px;
    color: var(--text-light);
}

.verification-code {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.verification-code input {
    flex: 1;
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 5px;
}

.backup-codes {
    margin-top: 20px;
}

.codes-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.codes-list code {
    padding: 8px;
    background-color: white;
    border-radius: 6px;
    font-family: monospace;
    text-align: center;
    font-size: 0.9rem;
}

.active-sessions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
}

.session-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.session-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: var(--light-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.session-info h5 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.session-details {
    font-size: 0.8rem;
    color: var(--text-light);
}

.session-actions {
    display: flex;
    justify-content: flex-end;
}

.security-history {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
}

.history-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.history-info i {
    font-size: 1.2rem;
}

.history-info i.success {
    color: #4caf50;
}

.history-info i.changed {
    color: #2196f3;
}

.history-info i.warning {
    color: #ff9800;
}

.history-info i.info {
    color: #9c27b0;
}

.history-info h5 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.history-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.history-location {
    font-size: 0.8rem;
    color: var(--text-light);
    background-color: var(--light-color);
    padding: 4px 8px;
    border-radius: 12px;
}

.history-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Integratsiyalar uchun qo'shimcha stillar */
.integrations-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.api-key-input {
    position: relative;
    display: flex;
    align-items: center;
}

.api-key-input input {
    flex: 1;
    padding-right: 40px;
    font-family: monospace;
}

.api-key-input .btn-icon {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1rem;
}

.integration-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    color: #4caf50;
    font-size: 0.9rem;
}

.integration-test {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.test-result {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.telegram-setup {
    margin-top: 20px;
}

.telegram-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 20px;
}

.telegram-qr .qr-placeholder {
    background-color: #0088cc;
    color: white;
    border: none;
}

.telegram-qr .qr-placeholder i {
    color: white;
}

.telegram-code {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
}

.telegram-code code {
    flex: 1;
    font-family: monospace;
    font-size: 1rem;
}

.telegram-chat {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.telegram-chat input {
    flex: 1;
}

.telegram-notifications {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 10px;
}

.sensor-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.sensor-stats .stat {
    text-align: center;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
}

.api-management {
    margin-top: 20px;
}

.api-keys {
    margin-bottom: 20px;
}

.api-keys h5 {
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.api-key-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 10px;
}

.key-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.key-name {
    font-weight: 600;
    color: var(--text-color);
}

.key-value {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-light);
    background-color: var(--light-color);
    padding: 5px 10px;
    border-radius: 6px;
    word-break: break-all;
}

.key-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.key-actions {
    display: flex;
    gap: 5px;
}

.btn-danger:hover {
    background-color: #f44336;
    color: white;
}

.api-documentation {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Tizim sozlamalari uchun qo'shimcha stillar */
.system-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.system-options, .appearance-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.color-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker input[type="color"] {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.color-value {
    font-family: monospace;
    color: var(--text-color);
}

.data-management {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.data-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.data-stats .stat {
    text-align: center;
    padding: 15px;
    background-color: var(--light-color);
    border-radius: 10px;
}

.data-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.data-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.data-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.data-actions .action {
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 10px;
}

.data-actions h5 {
    margin: 0 0 10px 0;
    color: var(--text-color);
}

.data-actions p {
    margin: 0 0 15px 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.data-actions select {
    margin-bottom: 10px;
}

.data-retention {
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 10px;
}

.data-retention h5 {
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.retention-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.system-status {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.status-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 10px;
}

.status-item.healthy {
    border-left: 4px solid #4caf50;
}

.status-item.warning {
    border-left: 4px solid #ff9800;
}

.status-item.critical {
    border-left: 4px solid #f44336;
}

.status-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.status-item.healthy .status-icon {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.status-item.warning .status-icon {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.status-item.critical .status-icon {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.status-info h5 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.status-info span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.system-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--text-color);
}

.info-value {
    color: var(--text-light);
    font-weight: 600;
}

.system-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Telefon raqam formati uchun qo'shimcha stillar */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 92, 54, 0.2);
}

.phone-input-wrapper input {
    flex: 1;
    border: none;
    padding: 15px;
    font-size: 1rem;
    outline: none;
    width: 100%;
    letter-spacing: 1px;
}

/* Verifikatsiya kodi modal oynasi uchun */
.verification-modal .modal-content {
    max-width: 400px;
}

.verification-code-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.verification-code-inputs input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    transition: var(--transition);
}

.verification-code-inputs input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 92, 54, 0.2);
}

.verification-code-inputs input.filled {
    border-color: var(--primary-color);
    background-color: rgba(26, 92, 54, 0.1);
}

.code-hint {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.resend-code {
    text-align: center;
    margin-top: 20px;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
}

.resend-btn:hover {
    color: var(--dark-color);
}

.countdown-timer {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Dashboard page-content uchun */
.recent-analytics {
    flex: 1;
    overflow: visible;
}

.ai-recommendations {
    flex: 1;
    overflow: visible;
}

/* Status ranglari */
.analytic-status.good {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.analytic-status.warning {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.priority.high {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.priority.medium {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.priority.low {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

/* ====================== QO'SHIMCHA STILLAR ====================== */

/* Dashboard kartalari uchun doimiy qiymatlar */
.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 5px 0;
    display: block !important;
}

/* Trend o'zgarishlarini yashirish */
.card-value .trend {
    display: none !important;
}

/* Sensorlar sonini aylanmaslik uchun */
.sensor-count {
    animation: none !important;
    transition: none !important;
}

/* Kichik statistikalar */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.stat-box {
    background: rgba(26, 92, 54, 0.05);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(26, 92, 54, 0.1);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.stat-box-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-box-content {
    flex: 1;
}

.stat-box-value {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.4rem;
    line-height: 1.2;
}

.stat-box-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* Vaqt va sana ko'rsatish */
.time-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    color: white;
    box-shadow: 0 5px 15px rgba(26, 92, 54, 0.3);
}

.current-time {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Roboto', monospace;
}

.current-date {
    font-size: 1rem;
    opacity: 0.9;
}

.weather-info {
    margin-top: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Progress indikatorlari */
.progress-indicator {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.progress-item:last-child {
    border-bottom: none;
}

.progress-label {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.progress-value {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.progress-bar-small {
    height: 6px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

/* Aktiv sensorlar */
.active-sensors {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.sensor-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: rgba(26, 92, 54, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(26, 92, 54, 0.1);
}

.sensor-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.sensor-status-dot.active {
    background-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.sensor-status-dot.warning {
    background-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
}

.sensor-status-dot.error {
    background-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.2);
}

.sensor-status-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-color);
}

.sensor-status-value {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

/* O'ziga xos iconlar uchun */
.icon-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.icon-custom.small {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
}

.icon-custom.medium {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.icon-custom.large {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
}

/* Kartalar orasidagi bo'shliq */
.card-gap {
    margin-bottom: 20px;
}

/* Responsive qo'shimchalar */
@media (max-width: 1200px) {
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .time-widget {
        padding: 15px;
    }
    
    .current-time {
        font-size: 2rem;
    }
    
    .stat-box {
        padding: 12px;
    }
    
    .stat-box-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stat-box-value {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .time-widget {
        padding: 12px;
    }
    
    .current-time {
        font-size: 1.8rem;
    }
    
    .current-date {
        font-size: 0.9rem;
    }
}