/**
 * Frontend styles for Spray Manager
 * Minimal, neutral styling to avoid conflicts with themes
 */

.spray-manager-wrapper {
    max-width: 100%;
    margin: 20px 0;
    font-family: inherit;
}

.sm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.sm-tab-button {
    padding: 10px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
}

.sm-tab-button:hover {
    background: #e0e0e0;
}

.sm-tab-button.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.sm-tab-content {
    margin-top: 20px;
}

.sm-tab-panel {
    display: none;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.sm-tab-panel.active {
    display: block;
}

.sm-tab-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    pointer-events: none;
    z-index: 0;
}

.sm-tab-panel > * {
    position: relative;
    z-index: 1;
}

.sm-tab-panel h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
}

.sm-tab-panel p {
    margin-bottom: 15px;
    font-style: italic;
    color: #666;
}

.sm-calculator-form {
    max-width: 500px;
}

.sm-form-group {
    margin-bottom: 15px;
}

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

.sm-form-group input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.sm-form-group input[type="number"]:focus {
    outline: none;
    border-color: #666;
}

.sm-calculate-btn {
    padding: 10px 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.sm-calculate-btn:hover {
    background: #555;
}

.sm-result {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 20px;
    font-size: 16px;
    font-weight: 600;
}

.sm-result:empty {
    display: none;
}

.sm-result.success {
    color: #28a745;
    border-color: #28a745;
}

.sm-result.warning {
    color: #ffc107;
    border-color: #ffc107;
}

.sm-result.error {
    color: #dc3545;
    border-color: #dc3545;
}

.sm-help-content {
    line-height: 1.6;
}

.sm-help-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.sm-help-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.sm-help-content li {
    margin-bottom: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .sm-tabs {
        flex-direction: column;
    }

    .sm-tab-button {
        width: 100%;
    }

    .sm-calculator-form {
        max-width: 100%;
    }
}
