/* Ultimate Spray Mix & Pesticide Dilution Calculator - WordPress Plugin Styles */

/* Container */
.smc-container {
    max-width: 900px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

.smc-container * {
    box-sizing: border-box;
}

/* Header */
.smc-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

.smc-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.smc-icon {
    font-size: 2rem;
}

.smc-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.smc-description {
    font-size: 1rem;
    margin: 0;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Tabs */
.smc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.smc-tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border: none;
    background: white;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.smc-tab-btn:hover {
    background: #f0f0f0;
    color: #8e44ad;
}

.smc-tab-btn.active {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
    border-color: #8e44ad;
    box-shadow: 0 2px 8px rgba(142, 68, 173, 0.3);
}

/* Cards */
.smc-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.smc-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #8e44ad;
    margin: 0 0 8px 0;
}

.smc-card-desc {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
}

/* Input Grid */
.smc-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

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

.smc-input-group label {
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.smc-input-group input,
.smc-input-group select {
    padding: 12px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.smc-input-group input:focus,
.smc-input-group select:focus {
    outline: none;
    border-color: #8e44ad;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
}

.smc-input-with-unit {
    display: flex;
    gap: 8px;
}

.smc-input-with-unit input {
    flex: 2;
}

.smc-input-with-unit select,
.smc-input-with-unit .smc-unit {
    flex: 1;
    min-width: 80px;
}

.smc-unit {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
}

/* Ratio Input */
.smc-ratio-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.smc-ratio-input input {
    flex: 1;
    text-align: center;
}

.smc-ratio-input span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #666;
}

/* Hidden */
.smc-hidden {
    display: none !important;
}

/* Results Grid */
.smc-results-grid,
.smc-tank-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.smc-dilution-results {
    margin-bottom: 20px;
}

/* Result Boxes */
.smc-result-box {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    color: white;
}

.smc-result-volume {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.smc-result-tanks {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.smc-result-coverage {
    background: linear-gradient(135deg, #27ae60, #1e8449);
}

.smc-result-dilution {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.smc-result-per-tank {
    background: linear-gradient(135deg, #16a085, #1abc9c);
}

.smc-result-total-product {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.smc-result-spray-tanks {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.smc-result-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.smc-result-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.smc-result-value {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.smc-result-secondary {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 4px;
}

/* Quick Rates */
.smc-quick-rates {
    margin-top: 20px;
}

.smc-quick-rates h4 {
    margin: 0 0 12px 0;
    color: #555;
    font-size: 0.95rem;
}

.smc-rate-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.smc-rate-btn {
    padding: 10px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.smc-rate-btn:hover {
    border-color: #8e44ad;
    color: #8e44ad;
    background: #f9f0ff;
}

/* Dilution Table */
.smc-dilution-table {
    margin-top: 20px;
}

.smc-dilution-table h4 {
    margin: 0 0 12px 0;
    color: #8e44ad;
}

.smc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.smc-table th,
.smc-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.smc-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.smc-table td:last-child {
    font-weight: 600;
    color: #8e44ad;
}

/* Mix Order */
.smc-mix-order {
    margin-top: 24px;
    padding: 20px;
    background: #f9f0ff;
    border-radius: 10px;
    border-left: 4px solid #8e44ad;
}

.smc-mix-order h4 {
    margin: 0 0 16px 0;
    color: #8e44ad;
}

.smc-mix-list {
    margin: 0;
    padding-left: 20px;
}

.smc-mix-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.smc-mix-list strong {
    color: #8e44ad;
}

/* Converter Sections */
.smc-converter-section {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.smc-converter-section h4 {
    margin: 0 0 16px 0;
    color: #8e44ad;
}

.smc-converter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.smc-converter-row .smc-input-group {
    flex: 1;
    min-width: 100px;
}

.smc-converter-row .smc-input-group input,
.smc-converter-row .smc-input-group select {
    width: 100%;
}

.smc-convert-arrow {
    font-size: 1.5rem;
    color: #8e44ad;
    font-weight: bold;
}

.smc-convert-result {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.smc-convert-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8e44ad;
}

.smc-convert-result select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

/* Reference Grid */
.smc-conversion-reference {
    margin-top: 24px;
}

.smc-conversion-reference h4 {
    margin: 0 0 12px 0;
    color: #555;
}

.smc-ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.smc-ref-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
    border-left: 3px solid #8e44ad;
}

/* Safety Notice */
.smc-safety {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
}

.smc-safety-icon {
    font-size: 2rem;
}

.smc-safety-content h4 {
    margin: 0 0 8px 0;
    color: #856404;
}

.smc-safety-content p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
}

/* Tab Panes */
.smc-tab-pane {
    display: none;
}

.smc-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Footer */
.smc-footer {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 20px;
}

.smc-footer-text {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.smc-footer-text strong {
    color: #8e44ad;
}

/* Responsive */
@media (max-width: 768px) {
    .smc-container {
        margin: 10px;
    }

    .smc-header {
        padding: 20px 15px;
    }

    .smc-title {
        font-size: 1.5rem;
    }

    .smc-tabs {
        flex-direction: column;
    }

    .smc-tab-btn {
        min-width: auto;
    }

    .smc-card {
        padding: 16px;
    }

    .smc-input-grid {
        grid-template-columns: 1fr;
    }

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

    .smc-result-value {
        font-size: 1.5rem;
    }

    .smc-rate-btns {
        flex-direction: column;
    }

    .smc-rate-btn {
        width: 100%;
    }

    .smc-converter-row {
        flex-direction: column;
    }

    .smc-convert-arrow {
        transform: rotate(90deg);
    }

    .smc-safety {
        flex-direction: column;
        text-align: center;
    }

    .smc-ref-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .smc-title {
        font-size: 1.3rem;
    }

    .smc-ratio-input {
        flex-direction: column;
    }

    .smc-input-with-unit {
        flex-direction: column;
    }

    .smc-input-with-unit input,
    .smc-input-with-unit select,
    .smc-input-with-unit .smc-unit {
        width: 100%;
    }
}

/* Accessibility */
.smc-input-group input:focus,
.smc-input-group select:focus,
.smc-tab-btn:focus,
.smc-rate-btn:focus {
    outline: 2px solid #8e44ad;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .smc-container {
        max-width: none;
        margin: 0;
    }

    .smc-tabs {
        display: none;
    }

    .smc-tab-pane {
        display: block !important;
        page-break-inside: avoid;
    }

    .smc-header {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}

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