/* Smart Mulch Calculator WordPress Plugin Styles */

.mulch-calculator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fdf8 0%, #f0f9f0 100%);
    border-radius: 12px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 1024px) {
    .calculator-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5f2e5;
    overflow: hidden;
}

.card-header {
    padding: 20px 24px 0;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a5a1a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px 0;
}

.card-content {
    padding: 0 24px 24px;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    color: #2d5a2d;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d9e9d9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #22a822;
    box-shadow: 0 0 0 3px rgba(34, 168, 34, 0.1);
}

.form-group small {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

.shape-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    background: #f0f9f0;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.tab-btn {
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4a5a4a;
}

.tab-btn.active {
    background: #22a822;
    color: white;
    box-shadow: 0 2px 4px rgba(34, 168, 34, 0.2);
}

.shape-content {
    transition: all 0.3s ease;
}

.shape-content.hidden {
    display: none;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: #2d5a2d;
    margin-bottom: 6px;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d9e9d9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

input[type="range"] {
    width: 100%;
    margin: 8px 0;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #e0f0e0;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #22a822;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #22a822;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.calculate-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #22a822, #1a8a1a);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #1a8a1a, #157515);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 168, 34, 0.3);
}

.calculate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.result-item {
    text-align: center;
    padding: 20px 16px;
    border-radius: 10px;
    background: #f8f9fa;
}

.result-item.primary {
    background: linear-gradient(135deg, #e8f5e8, #d4f0d4);
    border: 2px solid #22a822;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a5a1a;
    margin-bottom: 4px;
}

.result-item.primary .result-value {
    color: #22a822;
}

.result-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.bag-results {
    margin-bottom: 24px;
}

.bag-results h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a5a1a;
    margin-bottom: 12px;
}

.bag-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e5f2e5;
    border-radius: 8px;
}

.cost-estimate {
    padding: 20px;
    background: linear-gradient(135deg, #f8fdf8, #f0f9f0);
    border-radius: 10px;
    border: 1px solid #d9e9d9;
    margin-bottom: 24px;
}

.cost-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1a5a1a;
    margin-bottom: 8px;
}

.cost-value {
    font-size: 28px;
    font-weight: 700;
    color: #22a822;
    margin-bottom: 4px;
}

.project-summary {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.project-summary h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a5a1a;
    margin-bottom: 8px;
}

.project-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #666;
}

.project-summary li {
    margin-bottom: 4px;
    padding-left: 16px;
    position: relative;
}

.project-summary li:before {
    content: "•";
    color: #22a822;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.icon {
    font-size: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .mulch-calculator-wrapper {
        padding: 16px;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .bag-grid {
        grid-template-columns: 1fr;
    }
    
    .shape-tabs {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        margin-bottom: 4px;
    }
}