/* Reset dan Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow-x: hidden;
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Remove default spacing from first element */
body>*:first-child,
.landing-page>*:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

:root {
    --primary-color: #4a7c59;
    --secondary-color: #6b9279;
    --accent-color: #8fbc8f;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --danger-color: #e74c3c;
    --success-color: #5cb85c;
    --warning-color: #f0ad4e;
    --text-color: #333;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(74, 124, 89, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: white;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Override container for landing page - full width */
.landing-page .container,
.landing-page {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.alert-error {
    background-color: var(--danger-color);
    color: white;
}

/* Validation Error Modal Popup */
.validation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.validation-modal-overlay.show {
    opacity: 1;
}

.validation-modal-box {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 5px solid #e74c3c;
}

.validation-modal-overlay.show .validation-modal-box {
    transform: scale(1);
}

.validation-modal-box .modal-icon {
    font-size: 72px;
    animation: shake 0.5s ease-in-out;
    margin-bottom: 20px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
}

.validation-modal-box .modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #c0392b;
    margin-bottom: 20px;
}

.validation-modal-box .modal-message {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 16px;
    padding: 0 20px;
}

.validation-modal-box .modal-details {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    background: #f8f9fa;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    border-left: 4px solid #f0ad4e;
}

.validation-modal-box .modal-btn-close {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.validation-modal-box .modal-btn-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.validation-modal-box .modal-btn-close:active {
    transform: translateY(0);
}

/* Validation Error Styling (fallback) */
.validation-error {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-left: 5px solid #e74c3c;
    border-radius: 12px;
    color: #721c24;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
    margin: 20px 0;
}

.validation-error .error-icon {
    font-size: 32px;
    flex-shrink: 0;
    animation: shake 0.5s ease-in-out;
}

.validation-error .error-content {
    flex: 1;
}

.validation-error .error-content strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #c0392b;
}

.validation-error .error-content p {
    margin: 4px 0;
    line-height: 1.6;
    color: #721c24;
}

.validation-error .error-details {
    font-size: 14px;
    color: #856404;
    margin-top: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    border-left: 3px solid #f0ad4e;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary:hover {
    background-color: #34495e;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

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

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.5s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.auth-header p {
    color: #7f8c8d;
    font-size: 14px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

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

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #7f8c8d;
}

.auth-form button {
    width: 100%;
    margin-top: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.auth-footer p {
    margin: 10px 0;
    color: #7f8c8d;
}

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

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

/* Dashboard */
.dashboard {
    background: #f5f6fa;
    min-height: 100vh;
}

/* App Container for Sidebar Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, left 0.3s ease;
    z-index: 1000;
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.sidebar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.menu-toggle.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    pointer-events: auto;
}

/* Smooth animation for sidebar */
@media (prefers-reduced-motion: reduce) {
    .sidebar,
    .sidebar-overlay,
    .menu-toggle {
        transition: none;
    }
}

.sidebar-header {
    padding: 22px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 80px;
}

.sidebar-header h2 {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.38;
    margin: 0;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    letter-spacing: 0.2px;
    flex: 1;
    hyphens: auto;
}

/* Close button in sidebar (mobile only) */
.sidebar-close {
    display: none;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.sidebar-close:active {
    transform: scale(0.95);
}

.sidebar-close svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.sidebar-close:hover svg {
    transform: rotate(90deg);
}

.sidebar-nav {
    flex: 1;
    padding: 30px 0;
}

.sidebar-nav h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 25px 20px;
    opacity: 0.7;
}

.sidebar .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sidebar .nav-item {
    margin-bottom: 5px;
    width: 100%;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    width: 100%;
    box-sizing: border-box;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.sidebar .nav-item.active .nav-link {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: white;
    font-weight: 600;
}

.sidebar .nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

/* Navigation Icons */
.sidebar .nav-item:nth-child(1) .nav-icon {
    /* Dashboard Icon */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

.sidebar .nav-item:nth-child(2) .nav-icon {
    /* Classification Icon (Camera) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
}

.sidebar .nav-item:nth-child(3) .nav-icon {
    /* Segmentation Icon (Grid) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='9' y1='3' x2='9' y2='21'/%3E%3Cline x1='15' y1='3' x2='15' y2='21'/%3E%3Cline x1='3' y1='9' x2='21' y2='9'/%3E%3Cline x1='3' y1='15' x2='21' y2='15'/%3E%3C/svg%3E");
}

.sidebar .nav-item:nth-child(4) .nav-icon {
    /* History Icon (Clock/History) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

.sidebar .nav-item:nth-child(5) .nav-icon {
    /* Profile Icon (User) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

/* Logout Icon */
.btn-logout .nav-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
    width: 20px;
    height: 20px;
    margin-right: 10px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
}

.sidebar-footer {
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    background: #f8f9fa;
    min-height: 100vh;
    overflow-x: hidden;
    width: calc(100% - 280px);
}

.content-header {
    background: white;
    padding: 25px 40px;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.header-title .breadcrumb {
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

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

.navbar {
    background: white;
    padding: 20px 40px;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h2 {
    color: var(--primary-color);
    font-size: 24px;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.user-info {
    color: var(--dark-color);
    font-weight: 600;
}

.dashboard-content {
    padding: 40px;
    background: #f8f9fa;
    max-width: 100%;
    overflow-x: hidden;
}

/* Responsive Sidebar */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }

    .main-content {
        margin-left: 250px;
        width: calc(100% - 250px);
    }
}

/* Tablet Mode */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    /* Show close button inside sidebar on mobile */
    .sidebar-close {
        display: flex;
    }

    .sidebar {
        width: 280px;
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .content-header {
        padding: 25px 20px 25px 70px;
    }
}

/* Mobile Mode */
@media (max-width: 768px) {
    /* Menu toggle button is already visible from tablet mode */
    .menu-toggle {
        top: 12px;
        left: 12px;
        width: 42px;
        height: 42px;
    }

    /* Sidebar adjustments for smaller screens */
    .sidebar {
        width: 260px;
    }

    /* Header adjustments */
    .content-header {
        padding: 20px 15px 20px 65px;
    }

    .header-title h1 {
        font-size: 24px;
    }

    .header-title .breadcrumb {
        font-size: 12px;
    }

    /* Dashboard content padding */
    .dashboard-content {
        padding: 20px 15px;
    }

    .app-container {
        flex-direction: row;
    }
}

/* Small Mobile Mode */
@media (max-width: 480px) {
    .sidebar {
        width: 85vw;
        max-width: 280px;
    }

    .sidebar-header {
        padding: 16px 14px;
        min-height: 72px;
        gap: 8px;
    }

    .sidebar-header h2 {
        font-size: 12.5px;
        line-height: 1.32;
        letter-spacing: 0.15px;
    }

    .sidebar-close {
        width: 28px;
        height: 28px;
    }

    .sidebar-close svg {
        width: 14px;
        height: 14px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .menu-toggle svg {
        width: 20px;
        height: 20px;
    }

    .sidebar-nav {
        padding: 16px 0;
    }

    .sidebar .nav-link {
        padding: 11px 14px;
        font-size: 13px;
    }

    .sidebar-nav h4 {
        margin: 0 14px 12px;
        font-size: 10px;
    }

    .sidebar-footer {
        padding: 16px;
    }

    .btn-logout {
        padding: 11px 14px;
        font-size: 13px;
    }
}

/* Additional styling for better text display */
@media (max-width: 768px) {
    .sidebar-header {
        padding: 18px 16px;
        min-height: 76px;
    }

    .sidebar-header h2 {
        font-size: 13px;
        line-height: 1.35;
        letter-spacing: 0.15px;
    }

    .sidebar-close {
        width: 30px;
        height: 30px;
    }

    .sidebar-close svg {
        width: 16px;
        height: 16px;
    }

    .sidebar-nav {
        padding: 18px 0;
    }

    .sidebar-nav h4 {
        margin: 0 18px 14px;
        font-size: 10.5px;
    }

    .sidebar .nav-link {
        padding: 12px 18px;
        font-size: 13.5px;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .sidebar-header {
        padding: 20px 18px;
        min-height: 78px;
    }

    .sidebar-header h2 {
        font-size: 14px;
        line-height: 1.37;
    }

    .sidebar-close {
        width: 30px;
        height: 30px;
    }
}

/* Desktop - hide close button */
@media (min-width: 901px) {
    .sidebar-close {
        display: none;
    }
}

.welcome-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.welcome-section h1 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.welcome-section p {
    color: #6c757d;
    font-size: 18px;
    line-height: 1.6;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

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

.card-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 22px;
}

.card p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Landing Page */
.landing-page {
    background: white;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.hero {
    background: linear-gradient(135deg, #3a5f46 0%, #4a7c59 30%, #6b9279 70%, #5a8265 100%);
    color: white;
    padding: 180px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    top: 0;
    left: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, transparent 50%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.hero-title {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounceIn 1s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.8;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: var(--light-color);
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: #7f8c8d;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(74, 124, 89, 0.15);
    border-top: 4px solid var(--primary-color);
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 20px;
    background: white;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
}

.step-content h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.step-content p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Stats Section */
.stats {
    padding: 80px 20px;
    background: linear-gradient(135deg, #4a7c59 0%, #6b9279 50%, #8fbc8f 100%);
    color: white;
    position: relative;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.stat-number {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* CTA Section */
.cta {
    padding: 100px 20px;
    background: var(--dark-color);
    color: white;
    text-align: center;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 20px 20px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

/* Classification Interface Styles */
.classification-section {
    margin: 30px 0;
}

.section-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.section-card h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-container {
    margin: 30px 0;
}

.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    transition: var(--transition);
    cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
    background: #e8f5e8;
    border-color: var(--secondary-color);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    font-size: 48px;
    color: var(--primary-color);
}

.upload-content h3 {
    color: var(--dark-color);
    margin: 0;
}

.upload-content p {
    color: #666;
    margin: 0;
}

/* Results Container */
.results-container {
    margin-top: 30px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

.result-card.full-width {
    grid-column: 1 / -1;
}

.result-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-container {
    text-align: center;
    margin: 15px 0;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Prediction Results */
.prediction-main {
    margin-bottom: 20px;
}

.disease-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.confidence-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.confidence-label {
    font-weight: 500;
    color: var(--dark-color);
}

.confidence-value {
    font-weight: bold;
    font-size: 18px;
    color: var(--success-color);
}

.confidence-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--primary-color));
    transition: width 0.5s ease;
}

.all-predictions h4 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 16px;
}

.prediction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.prediction-item:last-child {
    border-bottom: none;
}

.pred-class {
    color: var(--text-color);
}

.pred-confidence {
    font-weight: 500;
    color: var(--secondary-color);
}

/* Recommendation Content */
.recommendation-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.recommendation-text {
    line-height: 1.7;
    color: var(--text-color);
    white-space: pre-line;
}

/* Loading States */
.loading-container {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-container p {
    color: var(--dark-color);
    font-weight: 500;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Stats Section */
.stats-section {
    margin: 30px 0;
}

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

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.15);
}

.stat-icon {
    font-size: 32px;
    color: var(--primary-color);
}

.stat-info {
    text-align: left;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    color: var(--dark-color);
    font-size: 14px;
    opacity: 0.8;
}

/* Error Handling */
.upload-error {
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .steps {
        flex-direction: column;
    }

    .dashboard-content {
        padding: 20px;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-info {
        text-align: center;
    }

    .upload-area {
        padding: 20px;
    }

    .section-card {
        padding: 20px;
    }
}

/* LIME Visualization Styles */
.lime-visualization {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
}

.lime-visualization h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.lime-visualization p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.lime-image {
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.lime-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Result Details Formatting */
.description-content,
.treatment-content {
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    margin: 10px 0;
}

.description-content pre,
.treatment-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: var(--text-color);
}

/* Segmentation Specific Styles */
.segment-content {
    padding: 20px;
}

.segmentation-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.segmentation-results .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.image-item {
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.image-item h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1rem;
}

.image-item img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.analysis-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.analysis-stats h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-item.total-disease {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

.stat-label {
    font-weight: 500;
    color: var(--text-color);
}

.stat-value {
    font-weight: bold;
    color: var(--primary-color);
}

.recommendation-content {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
}

.recommendation-content h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.recommendation-text pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: var(--text-color);
    background: #f8f9fa;
    padding: 15px;
    border-radius: var(--border-radius);
}

/* User Info in Header */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-details strong {
    color: var(--dark-color);
    font-size: 14px;
}

.user-details small {
    color: #6c757d;
    font-size: 12px;
}

/* Dashboard Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 36px;
}

.stat-info h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin: 0;
}

.stat-info p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* History Page Styles */
.history-content {
    padding: 20px;
}

.history-header {
    margin-bottom: 30px;
}

.history-header h2 {
    color: var(--dark-color);
    margin-bottom: 5px;
}

.history-header p {
    color: #6c757d;
}

.history-table-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table thead {
    background: var(--primary-color);
    color: white;
}

.history-table th,
.history-table td {
    padding: 15px;
    text-align: left;
}

.history-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: var(--transition);
}

.history-table tbody tr:hover {
    background: #f8f9fa;
}

.filename-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    font-size: 20px;
}

.filename-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.filename-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.history-badge {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}

.history-badge span {
    display: block;
    color: #856404;
    font-weight: 600;
    margin-bottom: 5px;
}

.history-badge small {
    color: #6c757d;
    font-size: 12px;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-primary {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-success {
    background: #e8f5e9;
    color: #388e3c;
}

.confidence-badge {
    padding: 4px 10px;
    background: #fff3cd;
    color: #856404;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.model-badge {
    padding: 5px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.datetime-cell {
    font-size: 14px;
}

.datetime-cell small {
    color: #6c757d;
    font-size: 12px;
}

.btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    padding: 5px 10px;
}

.btn-delete:hover {
    transform: scale(1.2);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 30px;
}

.empty-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Profile Page Styles */
.profile-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.profile-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-header h2 {
    margin: 0 0 5px 0;
}

.profile-header p {
    margin: 0;
    opacity: 0.9;
}

.profile-info,
.profile-stats {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.profile-info h3,
.profile-stats h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
}

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

.info-item label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

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

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

.stat-box {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
}

/* Model Selection Dropdown */
.model-selection {
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    border: 2px solid #e0e0e0;
    transition: var(--transition);
}

.model-selection:hover {
    border-color: var(--primary-color);
}

.model-selection label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.model-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    color: var(--text-color);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a7c59' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.model-select:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.model-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.model-select option {
    padding: 10px;
    background: white;
    color: var(--text-color);
}

/* ==================== CLASSIFY PAGE STYLES ==================== */

/* Main Layout */
.classify-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.upload-section {
    margin-bottom: 40px;
}

/* Upload Card */
.upload-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--transition);
}

.upload-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Card Header */
.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.header-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-icon svg {
    width: 28px;
    height: 28px;
}

.header-text h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
}

.header-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}

/* Model Selection */
.model-selection {
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.selection-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.selection-header svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.selection-header label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    margin: 0;
}

.model-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    color: var(--text-color);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a7c59' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.model-select:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.model-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.1);
}

.selection-info {
    margin-top: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6c757d;
}

.selection-info svg {
    flex-shrink: 0;
    color: #6c757d;
}

/* Upload Area */
.upload-area {
    padding: 40px;
    position: relative;
}

.upload-placeholder {
    border: 3px dashed #cbd5e0;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-placeholder:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    transform: translateY(-2px);
}

.upload-area.drag-over .upload-placeholder {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    box-shadow: 0 8px 24px rgba(74, 124, 89, 0.15);
}

.upload-icon {
    color: var(--primary-color);
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-placeholder h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.upload-format {
    color: #6c757d;
    font-size: 14px;
    margin: 0 0 24px 0;
}

.upload-placeholder input[type="file"] {
    display: none;
}

.btn-select-file {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-select-file:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}

.btn-select-file svg {
    width: 18px;
    height: 18px;
}

/* Image Preview */
.image-preview {
    animation: fadeIn 0.3s ease;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.preview-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-width: 600px;
    margin: 0 auto;
}

.preview-container img {
    width: 100%;
    height: auto;
    display: block;
}

.preview-overlay {
    position: absolute;
    top: 0;
    right: 0;
    padding: 16px;
}

.btn-remove {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.95);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-remove:hover {
    background: #dc3545;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

.preview-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 24px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    color: #155724;
    font-weight: 600;
    font-size: 14px;
}

.preview-info svg {
    flex-shrink: 0;
    color: #28a745;
}

/* Upload Actions */
.upload-actions {
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
}

.btn-analyze {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(74, 124, 89, 0.3);
    letter-spacing: 0.5px;
}

.btn-analyze:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(74, 124, 89, 0.4);
}

.btn-analyze:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-analyze:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #6c757d;
    box-shadow: none;
}

.btn-analyze svg {
    width: 20px;
    height: 20px;
}

/* Info Section */
.info-section {
    margin-top: 40px;
}

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

.info-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.info-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e9ecef;
}

.info-card-header svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #495057;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid #f1f3f5;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li svg {
    color: var(--success-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.diseases-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.disease-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.disease-indicator.blast {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.disease-indicator.blight {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.disease-indicator.brownspot {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Loading Section */
.loading-section {
    padding: 40px 20px;
    text-align: center;
}

.loading-card {
    background: white;
    border-radius: 16px;
    padding: 60px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    margin: 0 auto;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button spinner animation */
.btn-analyze svg[style*="spin"] {
    animation: spin 1s linear infinite;
}

.loading-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.loading-text {
    color: #6c757d;
    font-size: 15px;
    margin: 0 0 24px 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Results Section */
.results-section {
    padding: 20px;
}

.results-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.results-card h2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 24px 30px;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.result-content {
    padding: 30px;
}

.result-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.result-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.result-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-info h3 {
    font-size: 16px;
    color: #6c757d;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.disease-result {
    margin-bottom: 20px;
}

.disease-name {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.2;
}

.confidence {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.lime-visualization {
    margin: 30px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.lime-visualization h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.lime-visualization p {
    color: #6c757d;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.lime-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.result-details {
    margin-top: 30px;
}

.result-details h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 30px 0 16px 0;
    padding-left: 16px;
    border-left: 4px solid var(--primary-color);
}

.description-content,
.treatment-content {
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.description-content pre,
.treatment-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.8;
    color: #495057;
}

@media (max-width: 768px) {
    .classify-content {
        padding: 12px;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .header-text h2 {
        font-size: 20px;
    }

    .model-selection,
    .upload-area,
    .upload-actions {
        padding: 20px;
    }

    .upload-placeholder {
        padding: 40px 20px;
    }

    .upload-icon svg {
        width: 48px;
        height: 48px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .result-header {
        grid-template-columns: 1fr;
    }

    .segmentation-results .image-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .legend-item {
        justify-content: flex-start;
    }

    .history-table-container {
        overflow-x: auto;
    }

    .user-info {
        display: none;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .segmentation-images {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================
   SEGMENT PAGE SPECIFIC STYLES (MODERN)
   ========================================== */

/* Segmentation Results */
.segmentation-results {
    animation: fadeIn 0.5s ease;
}

.segmentation-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.seg-image-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.seg-image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74, 124, 89, 0.15);
}

.seg-image-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.seg-image-header svg {
    flex-shrink: 0;
}

.seg-image-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.seg-image-wrapper {
    padding: 20px;
    background: #f8f9fa;
}

.seg-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.seg-image-wrapper:hover img {
    transform: scale(1.02);
}

/* Segmentation Stats */
.segmentation-stats {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.segmentation-stats h4 {
    margin: 0 0 20px 0;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.segmentation-stats h4::before {
    content: "📊";
    font-size: 20px;
}

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

.stat-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 4px solid #6c757d;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-item.stat-blast {
    background: linear-gradient(135deg, #e3d5ff 0%, #d4bfff 100%);
    border-left-color: #aa88ff;
}

.stat-item.stat-blight {
    background: linear-gradient(135deg, #ffe5d0 0%, #ffd4b3 100%);
    border-left-color: #f58006;
}

.stat-item.stat-brownspot {
    background: linear-gradient(135deg, #ffe0e0 0%, #ffcccc 100%);
    border-left-color: #ff0000;
}

.stat-item.stat-healthy {
    background: linear-gradient(135deg, #d4e8ff 0%, #b3d9ff 100%);
    border-left-color: #3577b5;
}

.stat-item.stat-total {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    border-left-color: var(--primary-color);
    color: white;
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.9;
}

.stat-item.stat-total .stat-label {
    font-weight: 600;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.stat-item.stat-total .stat-value {
    font-size: 32px;
}

/* Segmentation Legend Improvements */
.segmentation-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.legend-item:hover {
    background: #f8f9fa;
    transform: translateX(4px);
}

.color-box {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.legend-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

/* Result Details for Segment */
.result-details {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.result-details h4 {
    margin: 0 0 16px 0;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-details h4::before {
    content: "📋";
    font-size: 20px;
}

.description-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.description-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

/* ==========================================
   DASHBOARD PAGE - MODERN DESIGN
   ========================================== */

/* Welcome Section Enhanced */
.welcome-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 48px 32px;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(74, 124, 89, 0.2);
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.welcome-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.welcome-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.welcome-content h1 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.welcome-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

/* Stats Cards Enhanced */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

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

.stat-card.stat-total {
    border-left-color: var(--primary-color);
}

.stat-card.stat-total .stat-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.stat-card.stat-classify {
    border-left-color: #3498db;
}

.stat-card.stat-classify .stat-icon-wrapper {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.stat-card.stat-segment {
    border-left-color: #e74c3c;
}

.stat-card.stat-segment .stat-icon-wrapper {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 4px 0;
    line-height: 1;
}

.stat-info p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

/* Dashboard Cards Enhanced */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.dashboard-card.card-primary .card-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.dashboard-card.card-secondary .card-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.dashboard-card.card-accent .card-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.dashboard-card.card-info .card-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.dashboard-card .card-icon {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dashboard-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.dashboard-card p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}

.btn-card svg {
    transition: transform 0.3s ease;
}

.btn-card:hover svg {
    transform: translateX(4px);
}

/* Model Information Section */
.model-info-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.section-header p {
    color: #6c757d;
    font-size: 16px;
}

.model-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #dee2e6;
}

.model-selector label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 16px;
    white-space: nowrap;
}

.model-selector label svg {
    color: var(--primary-color);
}

.model-dropdown {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    background: white;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.model-dropdown:hover {
    border-color: var(--primary-color);
}

.model-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

/* Model Details */
.model-details {
    animation: fadeIn 0.5s ease;
    margin-top: 32px;
}

.model-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary-color);
}

.model-header h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.model-type-badge {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 124, 89, 0.2);
}

.model-description {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    border-left: 4px solid var(--primary-color);
}

.model-description pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
}

.model-images {
    display: grid;
    gap: 32px;
}

.model-image-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.model-image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.model-image-item h4 {
    padding: 20px 24px;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.model-image-item img {
    width: 100%;
    height: auto;
    display: block;
    padding: 20px;
    background: #f8f9fa;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .welcome-content h1 {
        font-size: 24px;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .model-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .model-selector label {
        justify-content: center;
    }

    .model-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Validation Modal Responsive */
    .validation-modal-box {
        padding: 30px 24px;
        width: 95%;
        max-width: 100%;
    }

    .validation-modal-box .modal-icon {
        font-size: 56px;
        margin-bottom: 16px;
    }

    .validation-modal-box .modal-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .validation-modal-box .modal-message {
        font-size: 15px;
        padding: 0 10px;
        margin-bottom: 12px;
    }

    .validation-modal-box .modal-details {
        font-size: 13px;
        padding: 12px 16px;
        margin-bottom: 20px;
    }

    .validation-modal-box .modal-btn-close {
        padding: 12px 32px;
        font-size: 15px;
        width: 100%;
    }
}

/* Warning Toast Animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.warning-toast {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
}

.warning-toast svg {
    flex-shrink: 0;
}