/* Apollo Load Calculator - WordPress Plugin Styles */

.apollo-load-calculator-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
}

.apollo-load-calculator-container * {
    box-sizing: border-box;
}

.alc-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.alc-info-banner {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.95em;
    color: #1565c0;
    margin-bottom: 20px;
}

.alc-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.alc-input,
.alc-select {
    flex: 1;
    min-width: 150px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.2s;
}

.alc-input:focus,
.alc-select:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.alc-btn {
    padding: 12px 30px;
    background: #333;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    min-width: 150px;
}

.alc-btn:hover {
    background: #555;
    box-shadow: 0 2px 8px rgba(51, 51, 51, 0.15);
}

.alc-btn:active {
    background: #222;
}

.alc-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.alc-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.alc-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #333;
    border-radius: 50%;
    animation: alc-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes alc-spin {
    to { transform: rotate(360deg); }
}

.alc-error {
    background: #fee;
    border-left: 4px solid #f00;
    padding: 16px;
    border-radius: 4px;
    color: #c00;
    margin-bottom: 20px;
}

.alc-station-info {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.alc-station-info strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

.alc-detail {
    color: #666;
    font-size: 0.9em;
}

.alc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.alc-result-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.alc-result-section h3 {
    font-size: 1.3em;
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.alc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95em;
}

.alc-result-item:last-child {
    border-bottom: none;
}

.alc-result-label {
    font-weight: 500;
    color: #666;
    flex: 1;
}

.alc-result-value {
    font-weight: 600;
    color: #333;
    text-align: right;
    margin-left: 15px;
    white-space: nowrap;
}

.alc-notes {
    background: #f0f0f0;
    padding: 12px;
    border-left: 3px solid #999;
    font-size: 0.85em;
    color: #666;
    margin-top: 15px;
    border-radius: 4px;
}

.alc-hidden {
    display: none !important;
}

.alc-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 20px;
    border-radius: 6px;
    color: #856404;
    line-height: 1.6;
}

.alc-disclaimer strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .alc-card {
        padding: 20px;
    }

    .alc-input-group {
        flex-direction: column;
    }

    .alc-input,
    .alc-select,
    .alc-btn {
        min-width: 100%;
        width: 100%;
    }

    .alc-results-grid {
        grid-template-columns: 1fr;
    }

    .alc-result-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .alc-result-value {
        margin-left: 0;
        margin-top: 5px;
        text-align: left;
    }
}

/* Divi Builder Compatibility */
.et_pb_code_inner .apollo-load-calculator-container {
    width: 100%;
}

.apollo-load-calculator-container {
    margin: 0;
    padding: 0;
}

.alc-estimate-note {
    margin-top: 16px;
    font-size: 0.85em;
    color: #b26a00;
    background: #fff8e1;
    border-left: 3px solid #ffb300;
    padding: 8px 12px;
    border-radius: 4px;
}
