.agriquick-wrapper {
    max-width: 900px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.agriquick-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c1e 100%);
    color: white;
    border-radius: 8px;
}

.agriquick-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

.agriquick-subtitle {
    margin: 0;
    opacity: 0.9;
}

.agriquick-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.agriquick-section h3 {
    margin-top: 0;
    color: #2d5016;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-advanced {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.toggle-advanced:hover {
    background: #e0e0e0;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

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

.form-group input[type="number"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a7c1e;
    box-shadow: 0 0 0 3px rgba(74, 124, 30, 0.1);
}

.required {
    color: #d00;
}

.tooltip {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #666;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    cursor: help;
    margin-left: 5px;
}

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

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #4a7c1e;
    color: white;
}

.btn-primary:hover {
    background: #3a6115;
}

.btn-secondary {
    background: #666;
    color: white;
}

.btn-secondary:hover {
    background: #555;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-small {
    padding: 5px 15px;
    font-size: 14px;
}

.agriquick-results {
    background: white;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #4a7c1e;
}

.results-header h3 {
    margin: 0;
    color: #2d5016;
}

.confidence-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.confidence-high {
    background: #d4edda;
    color: #155724;
}

.confidence-medium {
    background: #fff3cd;
    color: #856404;
}

.confidence-low {
    background: #f8d7da;
    color: #721c24;
}

.result-section {
    margin: 25px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
}

.result-section h4 {
    margin-top: 0;
    color: #2d5016;
}

.result-info table,
.water-results table,
.fertilizer-results table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.result-info td,
.water-results td,
.fertilizer-results td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.result-info td:first-child,
.water-results td:first-child,
.fertilizer-results td:first-child {
    font-weight: 600;
    width: 50%;
}

.results-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.share-url {
    margin-top: 15px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 4px;
}

.share-url-input {
    width: calc(100% - 100px);
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #90caf9;
    border-radius: 4px;
}

.agriquick-loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a7c1e;
    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); }
}

.explanation-text {
    line-height: 1.6;
    color: #555;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions,
    .results-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
