/* ============================================
   AGROTAROZI SERTIFIKAT TIZIMI - UMUMIY STYLES
   ============================================ */

/* === ROOT VARIABLES === */
:root {
    --primary-color: #258E32;
    --primary-dark: #53a41d;
    --secondary-color: #3498db;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --success-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --border-color: #dfe6e9;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0!important;
    padding: 0;
    height: 100%;
    overflow-x: hidden; /* Gorizontal scroll yo'q */
}

a{
     text-decoration: none;
}

a:hover, a:focus, a:active{
    color: inherit;
}


a:hover{
    text-decoration: none;
}

/* === AUTH WRAPPER === */
.agro-auth-wrapper {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto; 
}

/* Container ichida scroll */
.agro-auth-container {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    animation: fadeInUp 0.5s ease;
}

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

.agro-register-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 16px;
    max-width: 1240px;
    margin: 0 auto;
    height: 100vh;
}

/* Container ichida scroll */
.agro-register-container {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 24px 16px;
    animation: fadeInUp 0.5s ease;
    width: calc(50% - 16px);
}

.agro-register-image{
    width: calc(50% - 16px);
    height: 836px;
    animation: fadeInUp 0.5s ease;

}


.agro-register-image img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* === HEADER === */
.agro-auth-header {
    text-align: center;
    margin-bottom: 8px;
}

.agro-logo {
    width: 160px;
    height: auto;
    margin-bottom: 20px;
}

.agro-auth-header h2 {
    font-size: 24px;
    color: var(--dark-color);
    font-weight: 700;
}

.agro-auth-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* === MESSAGES === */
.agro-message {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.agro-message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.agro-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.agro-message.warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

/* === FORM === */
.agro-form {
    width: 100%;
}

.agro-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
}

.agro-form-group {
    margin-bottom: 8px;
}

.father_name{
    margin-bottom: 16px;
}

.agro-form-group label {
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
}

.agro-form-group .required {
    color: var(--danger-color);
}

.agro-input {
    width: 100%;
    padding: 4px 8px!important;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius)!important;
    font-size: 15px;
    transition: var(--transition);
    background: white;
    height: 40px;
}

.agro-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.agro-input:disabled {
    background: var(--light-color);
    cursor: not-allowed;
}

.agro-help-text {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    color: var(--text-muted);
}

/* === PROFILE UPLOAD === */
.agro-profile-upload {
    text-align: center;
    margin-bottom: 12px;
}

.agro-profile-preview {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
}

.agro-profile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--border-color);
}


.agro-file-input {
    display: none;
}

.agro-upload-label {
    display: inline-block;
    padding: 8px 16px;
    background: var(--light-color);
    color: var(--dark-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 12px!important;
}

.agro-upload-label:hover {
    background: var(--border-color);
}

/* === PASSWORD WRAPPER === */
.agro-password-wrapper {
    position: relative;
}

.agro-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: var(--transition);
}

.agro-password-toggle:hover {
    transform: translateY(-50%) scale(1.2);
}

/* === CHECKBOX === */
.agro-checkbox {
    display: flex!important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 16px;
}

.agro-checkbox input[type="checkbox"] {
    cursor: pointer;
}


.agro-checkbox a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.agro-checkbox a:hover {
    text-decoration: underline;
}

.agro-checkbox span {
    font-size: 12px;
}

/* === BUTTONS === */
.agro-btn {
    width: 100%;
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    margin-top: 16px;
}

.agro-btn:hover{
    color: #fff;
}


.agro-btn-primary {
    background: var(--primary-color);
    color: white;
}

.agro-btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.agro-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === SPINNER === */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === FORM FOOTER === */
.agro-form-footer {
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.agro-form-footer p {
    color: var(--text-muted);
    font-size: 14px;
}

.agro-form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.agro-form-footer a:hover {
    text-decoration: underline;
}


/* ============================================
   DASHBOARD STYLES - Modern & Clean
   ============================================ */

/* === DASHBOARD WRAPPER === */
.agro-dashboard-wrapper {
    min-height: 100vh;
    background: #f5f7fa;
}

.agro-dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.empty-action{
    margin: 0 auto;
    display: flex;
    text-align: center;
    justify-content: center;
}

.agro-card-header .agro-btn{
    padding: 10px 20px;
    width: auto;
    margin: 0;
}

.empty-action .agro-btn{
    width: auto;
    padding: 10px 20px;
    margin: 0;
    color:#fff
}


/* === SIDEBAR === */
.agro-sidebar {
    background: #fff;
    color: #000;
    padding: 24px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.agro-sidebar-header {
    padding: 0 16px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.agro-brand {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: white;
}

/* === USER CARD === */
.agro-user-card {
    padding: 0 16px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.agro-user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    border: 3px solid white;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.agro-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agro-user-info h3 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
}

.agro-user-info p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

/* === NAVIGATION === */
.agro-nav {
    padding: 0 15px;
}

.agro-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    background-color: #f5f5f5;
}

.agro-nav-item:hover {
    background: #67bf2b40;
    transform: translateX(5px);
    color: #000;
    text-decoration: none;

}


.agro-nav-item.active {
    background: #67bf2b40;
    color: #000!important;
}


.agro-nav-item .icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* === MAIN CONTENT === */
.agro-main {
    padding: 24px;
    overflow-y: auto;
    max-height: 100vh;
}


/* === HEADER === */
.agro-header {
    margin-bottom: 30px;
}

.agro-header h1 {
    font-size: 32px;
    color: var(--dark-color);
    margin: 0 0 8px;
    font-weight: 700;
}

.agro-header p {
    color: var(--text-muted);
    margin: 0;
    font-size: 16px;
}

/* === STATS GRID === */
.agro-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.agro-stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.agro-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}


.stat-icon {
    font-size: 40px;
    opacity: 0.8;
}

.stat-icon i{
    color: var(--primary-color);
}

.stat-content h3 {
    margin: 0 0 5px;
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
}

.stat-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* === CARDS === */
.agro-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.agro-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agro-card-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
}

.agro-card-body {
    padding: 25px;
}

/* === ACTIVITY LIST === */
.agro-activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.agro-activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--light-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.agro-activity-item:hover {
    background: #e8ecef;
    transform: translateX(5px);
}

.activity-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.activity-icon.success {
    background: rgba(46, 204, 113, 0.1);
}

.activity-icon.pending {
    background: rgba(241, 196, 15, 0.1);
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

.activity-content p {
    margin: 0 0 5px;
    font-size: 14px;
    color: var(--text-muted);
}

.activity-content small {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.8;
}

/* === EMPTY STATE === */
.agro-empty-state {
    text-align: center;
    padding: 60px 30px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.2;
}

.agro-empty-state h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: var(--dark-color);
}

.agro-empty-state p {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 16px;
}

/* === PROFILE VIEW === */
.agro-profile-view {
    padding: 20px 0;
    display: flex;
    gap:24px
}

.agro-profile-view .info-item label{
    color:#000;
    padding: 4px 6px;
    border-left: 2px solid var(--primary-color);
    border-radius: 3px;
}

.profile-avatar-section {
    text-align: left;
    margin-bottom: 24px;
    width: 10%;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.agro-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    width: 90%;
}

.info-item label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.info-item p {
    margin: 0;
    font-size: 16px;
    color: var(--dark-color);
    font-weight: 500;
}

/* === PROFILE EDIT === */
.agro-profile-edit {
    padding: 20px 0;
}

.agro-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* === CERTIFICATES GRID === */
.agro-certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.agro-certificate-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.agro-certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.cert-header {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cert-icon {
    font-size: 30px;
}

.cert-type {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    text-transform: uppercase;
    font-weight: 600;
}

.cert-body {
    padding: 16px;
}

.cert-body h3 {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
}

.cert-category {
    margin: 0 0 2px;
    font-size: 14px;
    color: var(--text-muted);
}

.cert-date {
    margin: 0;
}

.cert-date small {
    font-size: 12px;
    color: var(--text-muted);
}

.cert-footer {
    padding: 16px;
    background: var(--light-color);
}

/* === BUTTON SIZES === */
.agro-btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.cert-footer .agro-btn-sm{
    margin: 0 0 12px 0;
}

.agro-btn-secondary {
    background: var(--border-color);
    color: var(--dark-color);
}

.agro-btn-secondary:hover:not(:disabled) {
    background: #bdc3c7;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .agro-dashboard-container {
        grid-template-columns: 250px 1fr;
    }
    
    .agro-main {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .agro-dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .agro-sidebar {
        position: fixed;
        left: -280px;
        width: 280px;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .agro-sidebar.active {
        left: 0;
    }
    
    .agro-main {
        padding: 20px 15px;
    }
    
    .agro-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .agro-info-grid {
        grid-template-columns: 1fr;
    }
    
    .agro-certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .agro-form-actions {
        flex-direction: column;
    }
    
    .agro-form-actions .agro-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .agro-header h1 {
        font-size: 24px;
    }
    
    .agro-card-header{
        padding: 16px;
    }

    .agro-card-body{
        padding: 16px;
    }

    .agro-stat-card {
        padding: 12px 16px;
    }

    .agro-profile-view{
        flex-direction: column;
    }
    
    .profile-avatar-section,
    .agro-info-grid {
        width: 100%;
        margin-bottom: 10px;
        gap: 16px;
    }

    .stat-icon {
        font-size: 32px;
    }
    
    .stat-content h3 {
        font-size: 24px;
    }
}

/* === MOBILE MENU TOGGLE === */
.agro-menu-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    z-index: 999;
}

@media (max-width: 768px) {
    .agro-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* === ANIMATIONS === */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.agro-stat-card,
.agro-card,
.agro-activity-item,
.agro-certificate-card {
    animation: fadeIn 0.5s ease;
}

/* === SCROLLBAR === */
.agro-sidebar::-webkit-scrollbar,
.agro-main::-webkit-scrollbar {
    width: 6px;
}

.agro-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.agro-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.agro-main::-webkit-scrollbar-track {
    background: #f5f7fa;
}

.agro-main::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 3px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .agro-register-wrapper{
        flex-direction: column-reverse;
        height: auto;
    }
    .agro-register-container {
        width: 100%;
    }
    .agro-register-image{
        width: 100%;
        height: auto;
    }
    .agro-auth-container {
        padding: 30px 20px;
    }
    
    .agro-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .agro-auth-header h2 {
        font-size: 24px;
    }
    
    .agro-profile-preview {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
   
    
    .agro-auth-container {
        padding: 20px 15px;
    }
    
    .agro-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* === DASHBOARD STYLES (keyingi bosqich uchun) === */
.agro-dashboard-wrapper {
    min-height: 100vh;
    background: #f5f7fa;
}

/* ============================================
   TESTS PAGE STYLES
   ============================================ */

.agro-category-section {
    margin-bottom: 50px;
}

.category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    font-size: 28px;
}

.category-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 15px;
}

/* === TESTS GRID === */
.agro-tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.agro-test-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.agro-test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.agro-test-card.completed {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

/* === TEST CARD HEADER === */
.test-card-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.test-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    flex: 1;
}

.test-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.test-badge.success {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
}

.test-badge.pending {
    background: rgba(241, 196, 15, 0.1);
    color: var(--warning-color);
}

.test-badge.new {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

/* === TEST CARD BODY === */
.test-card-body {
    padding: 12px 16px;
    flex: 1;
}

.test-description {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.test-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-icon {
    font-size: 16px;
}



/* === TEST CARD FOOTER === */
.test-card-footer {
    padding: 12px 16px;
    background: var(--light-color);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.test-card-footer .agro-btn {
    flex: 1;
    min-width: 120px;
}

.agro-btn-success {
    background: var(--success-color);
    color: white;
}

.agro-btn-success:hover:not(:disabled) {
    background: #27ae60;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .agro-tests-grid {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 20px;
    }
    
    .test-card-footer {
        flex-direction: column;
    }
    
    .test-card-footer .agro-btn {
        width: 100%;
    }
}

/* ============================================
   TEST TAKING PAGE STYLES
   ============================================ */

.agro-test-wrapper {
    min-height: 100vh;
    background: #f5f7fa;
    padding: 24px;
}

.agro-test-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* === TEST HEADER === */
.agro-test-header {
    background: linear-gradient(135deg, #27ae60 0%, #155724 100%);
    color: white;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f5f5f5;
}

.test-info h1 {
    margin: 0 0 5px;
    font-size: 24px;
}

.test-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.test-timer {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
}

.timer-icon {
    font-size: 24px;
}

/* === PROGRESS BAR === */
.test-progress-bar {
    height: 40px;
    background: #ecf0f1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%);
    transition: width 0.3s ease;
}

.progress-text {
    position: relative;
    z-index: 1;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

/* === TEST FORM === */
.agro-test-form {
    padding: 24px;
}

.test-question {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
    border-left: 4px solid #258E32;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.question-number {
    font-weight: 700;
    color: #667eea;
    font-size: 16px;
}

.question-required {
    color: #e74c3c;
    font-size: 20px;
}

.question-text {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 500;
}

.show-icon{
    opacity: 0.8;
    font-size: 14px;
}

.hide-icon{
    opacity: 0.8;
    font-size: 14px;
    border: none;
}

/* === ANSWER OPTIONS === */
.question-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option:hover {
    border-color: #258E32;
    background: #f0f3ff;
}

.answer-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.answer-option input[type="radio"]:checked + .answer-label {
    color: white;
    background: #258E32;
}

.answer-label {
    min-width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecf0f1;
    color: #2c3e50;
    font-weight: 700;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.answer-text {
    flex: 1;
    font-size: 16px;
    color: #2c3e50;
}

.answer-option input[type="radio"]:checked ~ .answer-text {
    font-weight: 600;
    color: #667eea;
}

/* === SUBMIT SECTION === */
.test-submit-section {
    padding-top: 16px;
    border-top: 2px solid #ecf0f1;
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .agro-test-wrapper {
        padding: 20px 10px;
    }
    
    .agro-test-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .test-info h1 {
        font-size: 20px;
    }
    
    .agro-test-form {
        padding: 20px 15px;
    }
    
    .test-question {
        padding: 20px 15px;
    }
    
    .question-text {
        font-size: 16px;
    }
    
    .answer-text {
        font-size: 14px;
    }
    
    .test-submit-section {
        flex-direction: column;
    }
    
    .test-submit-section .agro-btn {
        width: 100%;
        margin: 0;
    }
}
/* ============================================
   TEST RESULT PAGE STYLES
   ============================================ */

.agro-result-wrapper {
    min-height: 100vh;
    background: #fff;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agro-result-container {
    max-width: 840px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
}

/* === RESULT HEADER === */
.agro-result-header {
    padding: 16px;
    text-align: center;
    position: relative;
}

.agro-result-header.success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.agro-result-header.failed {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.result-icon {
    font-size: 64px;
    animation: bounceIn 0.8s ease;
}

.agro-result-header h1 {
    margin: 0 0 10px;
    font-size: 36px;
    font-weight: 700;
}

.result-message {
    margin: 0;
    font-size: 18px;
    opacity: 0.95;
}

/* === SCORE CIRCLE === */
.result-score-section {
    padding: 16px;
    display: flex;
    justify-content: center;
}

.score-circle {
    position: relative;
    width: 200px;
    height: 200px;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.score-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
}

.score-label {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === RESULT INFO === */
.result-info {
    padding: 24px;
    border-top: 2px solid #ecf0f1;
}

.result-info h2 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #2c3e50;
    text-align: center;
}

.info-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #bdc3c7;
}

.stat-item.success {
    border-left-color: #2ecc71;
    background: rgba(46, 204, 113, 0.05);
}

.stat-item.error {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
}

.stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
}

/* === CERTIFICATE SECTION === */
.result-certificate {
    margin: 0 24px;
    padding: 24px;
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border: 2px dashed #f39c12;
    border-radius: 12px;
    text-align: center;
}

.cert-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.result-certificate h3 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #2c3e50;
}

.result-certificate p {
    margin: 0 0 8px;
    color: #7f8c8d;
}

/* === ACTIONS === */
.result-actions {
    padding: 24px;
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* === FEEDBACK === */
.result-feedback {
    padding: 24px 24px;
    text-align: center;
}

.feedback-success {
    padding: 15px;
    background: rgba(46, 204, 113, 0.1);
    border-left: 4px solid #2ecc71;
    border-radius: 8px;
    color: #27ae60;
    line-height: 1.6;
}

.feedback-warning {
    padding: 12px;
    background: rgba(241, 196, 15, 0.1);
    border-left: 4px solid #f39c12;
    border-radius: 8px;
    color: #d68910;
    line-height: 1.6;
    font-size: 14px;
}

/* Sertifikat yaratish xabarlari */
#cert-message {
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
}

.cert-header .fa-certificate::before{
   color: #f5f5f5;
}

.fa-certificate::before{
    
    color: #f39c12;
}

#cert-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#cert-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.agro-cert-generate-btn {
    margin: 5px !important;
    display: inline-block;
}

.agro-cert-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === ANIMATIONS === */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .agro-result-wrapper {
        padding: 20px 10px;
    }
    
    .agro-result-header h1 {
        font-size: 28px;
    }
    
    .result-icon {
        font-size: 60px;
    }
    
    .score-circle {
        width: 200px;
        height: 200px;
    }
    
    .score-number {
        font-size: 38px;
    }
    
    .info-stats {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
        gap:8px;
        padding: 16px;
    }
    
    .result-feedback{
        padding: 16px;
    }

    .result-info{
        padding: 16px;
    }
    
    .result-actions .agro-btn {
        width: 100%;
        margin: 0;
    }
}

/* To'liq dashboard CSS'ni keyingi bosqichda qo'shamiz */