/* Board Foot Calculator Styles - Standalone CSS File */
/* This file can be enqueued in WordPress or included separately */

.bf-calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    color: #333;
}

.bf-calculator-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.bf-calculator-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.bf-calculator-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.bf-calculator-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.bf-input-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.bf-input-group {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.bf-input-group h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

.bf-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.bf-form-group {
    display: flex;
    flex-direction: column;
}

.bf-form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
    font-size: 0.9rem;
}

.bf-form-group input,
.bf-form-group select {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.bf-form-group input:focus,
.bf-form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.bf-lumber-item {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.bf-lumber-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bf-lumber-item h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bf-remove-item {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.bf-remove-item:hover {
    background: #c82333;
    transform: scale(1.1);
}

.bf-add-item {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.bf-add-item:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.bf-calculate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 30px;
}

.bf-calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.bf-results-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.bf-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.bf-result-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.bf-result-card h4 {
    margin-top: 0;
    color: #555;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bf-result-card .bf-result-value {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin: 10px 0;
}

.bf-detailed-results {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.bf-detailed-results h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #e1e5e9;
    padding-bottom: 10px;
}

.bf-result-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f4;
    align-items: center;
}

.bf-result-item:last-child {
    border-bottom: none;
}

.bf-result-header {
    font-weight: bold;
    background: #f8f9fa;
    padding: 15px 0;
    border-radius: 5px;
}

.bf-toggle-section {
    margin-bottom: 20px;
}

.bf-toggle-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.bf-toggle-btn.active {
    background: #667eea;
}

.bf-toggle-btn:hover {
    transform: translateY(-1px);
}

.bf-advanced-options {
    display: none;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.bf-advanced-options.show {
    display: block;
}

.bf-export-section {
    margin-top: 20px;
    text-align: center;
}

.bf-export-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.bf-export-btn:hover {
    background: #138496;
    transform: translateY(-1px);
}

.bf-unit-converter {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.bf-unit-converter h4 {
    margin-top: 0;
    color: #856404;
}

@media (max-width: 768px) {
    .bf-calculator-container {
        margin: 10px;
        padding: 15px;
    }

    .bf-calculator-header h1 {
        font-size: 2rem;
    }

    .bf-form-row {
        grid-template-columns: 1fr;
    }

    .bf-result-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bf-results-grid {
        grid-template-columns: 1fr;
    }
}

.bf-error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
}

.bf-success {
    color: #28a745;
    font-size: 0.9rem;
    margin-top: 5px;
}

.bf-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.bf-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: bf-spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes bf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

