.cs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

.cs-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.cs-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.cs-lang-toggle {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.cs-lang-btn {
    padding: 8px 16px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.cs-lang-btn:hover {
    background: #3498db;
    color: white;
}

.cs-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

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

.cs-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 16px;
}

.cs-form-group input[type="number"],
.cs-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.cs-input-group {
    display: flex;
    gap: 10px;
}

.cs-input-group input {
    flex: 1;
}

.cs-input-group select {
    flex: 0 0 150px;
}

.cs-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.cs-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 48px;
}

.cs-btn-primary {
    background: #27ae60;
    color: white;
}

.cs-btn-primary:hover {
    background: #229954;
}

.cs-btn-secondary {
    background: #95a5a6;
    color: white;
}

.cs-btn-secondary:hover {
    background: #7f8c8d;
}

.cs-btn-small {
    padding: 6px 12px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #3498db;
    color: white;
    min-height: 36px;
}

.cs-btn-small:hover {
    background: #2980b9;
}

.cs-results {
    margin-top: 30px;
}

.cs-results h3 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.cs-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cs-crop-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.cs-crop-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.cs-crop-card h4 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.cs-score-bar {
    width: 100%;
    height: 12px;
    background: #ecf0f1;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.cs-score-fill {
    height: 100%;
    transition: width 0.5s;
}

.cs-score-high {
    background: #27ae60;
}

.cs-score-medium {
    background: #f39c12;
}

.cs-score-low {
    background: #e74c3c;
}

.cs-score-text {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.cs-crop-details {
    font-size: 14px;
    line-height: 1.6;
}

.cs-crop-details p {
    margin-bottom: 10px;
}

.cs-reasons {
    list-style: none;
    padding: 0;
    margin: 10px 0 15px 0;
}

.cs-reasons li {
    padding: 6px 0;
    color: #555;
}

.cs-reasons li::before {
    content: "✓ ";
    color: #27ae60;
    font-weight: bold;
    margin-right: 5px;
}

.cs-export-actions {
    text-align: center;
    margin-top: 20px;
}

.cs-no-results {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #7f8c8d;
}

.cs-profiles-list {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.cs-profile-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
    gap: 10px;
}

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

.cs-profile-item span {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
}

.cs-loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .cs-container {
        padding: 15px;
    }
    
    .cs-title {
        font-size: 24px;
    }
    
    .cs-results-grid {
        grid-template-columns: 1fr;
    }
    
    .cs-form {
        padding: 20px;
    }
    
    .cs-form-actions {
        flex-direction: column;
    }
    
    .cs-btn {
        width: 100%;
    }
    
    .cs-input-group {
        flex-direction: column;
    }
    
    .cs-input-group select {
        flex: 1;
    }
    
    .cs-profile-item {
        flex-wrap: wrap;
    }
    
    .cs-profile-item span {
        flex: 1 1 100%;
        margin-bottom: 10px;
    }
}

[dir="rtl"] .cs-container {
    direction: rtl;
}

[dir="rtl"] .cs-reasons li::before {
    margin-right: 0;
    margin-left: 5px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

input:focus,
select:focus,
button:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}
