/* static/style.css - Modal qo'shilgan */
/* ... oldingi CSS kodlar ... */
/* static/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 30px;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 200px;
    height: auto;
}

.title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.ekin {
    color: #2d5016;
    font-weight: 600;
}

.ai {
    color: #0891b2;
    font-weight: 700;
}

h2 {
    text-align: center;
    color: #2d5016;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

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

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    color: #2d5016;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-group select {
    padding: 12px 15px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-group select:hover,
.input-group select:focus {
    border-color: #6b8e23;
    outline: none;
}

.input-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #d1d5db;
    outline: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6b8e23;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-group input[type="range"]::-webkit-slider-thumb:hover {
    background: #556b2f;
    transform: scale(1.2);
}

.input-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6b8e23;
    cursor: pointer;
    border: none;
}

.input-group .value {
    display: inline-block;
    margin-top: 5px;
    padding: 5px 10px;
    background: #f3f4f6;
    border-radius: 5px;
    font-weight: 600;
    color: #2d5016;
    text-align: center;
}

.btn-predict,
.btn-download {
    display: block;
    margin: 30px auto;
    padding: 15px 60px;
    background: #6b8e23;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-predict:hover,
.btn-download:hover {
    background: #556b2f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 142, 35, 0.3);
}

.btn-predict:active,
.btn-download:active {
    transform: translateY(0);
}

.results {
    margin-top: 40px;
}

.best-crop {
    text-align: center;
    font-size: 2.5rem;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 15px;
    color: #166534;
}

#graphContainer {
    margin: 30px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
}

#probTable {
    margin: 30px 0;
}

.prob-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.prob-table th {
    background: #6b8e23;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.prob-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
}

.prob-table tr:hover {
    background: #f9fafb;
}

.crop-image {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

.comparison-chart {
    margin: 20px 0;
}

.copyright,
.author {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 2px solid #e5e7eb;
    color: #374151;
    font-size: 0.95rem;
}

.copyright img {
    vertical-align: middle;
    margin-right: 10px;
    width: 40px;
}

.copyright a,
.author a {
    color: #0891b2;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.copyright a:hover,
.author a:hover {
    color: #0e7490;
    text-decoration: underline;
}

.ekin2 {
    color: #2d5016;
    font-weight: 700;
}

.ai2 {
    color: #0891b2;
    font-weight: 700;
}

.samdu,
.lab {
    font-weight: 600;
}

/* Loading spinner */
.spinner {
    display: none;
    margin: 20px auto;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #6b8e23;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

.spinner.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .title {
        font-size: 1.3rem;
    }
    
    .input-grid {
        grid-template-columns: 1fr;
    }
    
    .best-crop {
        font-size: 1.8rem;
    }
    
    .btn-predict,
    .btn-download {
        padding: 12px 40px;
        font-size: 1rem;
    }
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    animation: slideIn 0.3s ease;
}

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

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification.show {
    display: block;
}
/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.metric {
    background: #f3f4f6;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.metric span {
    display: block;
    color: #6b7280;
    margin-bottom: 10px;
}

.metric strong {
    font-size: 1.5rem;
    color: #2d5016;
}

.btn-stats {
    padding: 10px 30px;
    background: #0891b2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-stats:hover {
    background: #0e7490;
    transform: translateY(-2px);
}
