/* Property Costs Calculator WordPress Plugin Styles */

#property-calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.calc-header {
    text-align: center;
    margin-bottom: 32px;
}

.calc-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.calc-icon {
    font-size: 32px;
    margin-right: 12px;
}

.calc-title h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
}

.calc-subtitle {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

/* Tab Navigation */
.calc-tabs {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 32px;
}

.calc-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.calc-tab:hover {
    color: #374151;
}

.calc-tab.active {
    background: white;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Tab Content */
.calc-tab-content {
    display: none;
}

.calc-tab-content.active {
    display: block;
}

/* Grid Layout */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 768px) {
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Input Section */
.calc-inputs, .calc-results {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.calc-inputs h3, .calc-results h3 {
    margin: 0 0 24px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

/* Form Fields */
.calc-field {
    margin-bottom: 16px;
}

.calc-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.calc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.calc-input-wrapper input,
.calc-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-input-wrapper input:focus,
.calc-field select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.calc-prefix, .calc-suffix {
    position: absolute;
    color: #6b7280;
    font-weight: 500;
    pointer-events: none;
}

.calc-prefix {
    left: 12px;
}

.calc-suffix {
    right: 12px;
}

.calc-input-wrapper input:not([type="number"]) {
    padding-left: 32px;
}

.calc-input-wrapper input[type="number"] + .calc-suffix {
    padding-right: 32px;
}

/* Checkbox */
.calc-checkbox {
    display: flex !important;
    align-items: center;
    cursor: pointer;
}

.calc-checkbox input[type="checkbox"] {
    width: auto !important;
    margin-right: 8px;
    transform: scale(1.2);
}

/* Results Section */
.calc-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 8px;
}

.calc-result-item span:first-child {
    color: #374151;
    font-weight: 500;
}

.calc-result-item span:last-child {
    color: #1f2937;
    font-weight: 600;
}

/* Total Costs */
.calc-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #dbeafe;
    border-radius: 8px;
    margin: 16px 0;
    border: 1px solid #93c5fd;
}

.calc-total span:first-child {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.calc-total span:last-child {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
}

/* Selling specific colors */
.calc-total.selling-costs {
    background: #fee2e2;
    border-color: #fca5a5;
}

.calc-total.selling-costs span:last-child {
    color: #dc2626;
}

.calc-total.net-proceeds {
    background: #dcfce7;
    border-color: #86efac;
}

.calc-total.net-proceeds span:last-child {
    color: #16a34a;
}

/* Disclaimer */
.calc-disclaimer {
    margin-top: 24px;
    padding: 16px;
    background: #fef3cd;
    border: 1px solid #fbbf24;
    border-radius: 8px;
}

.calc-disclaimer p {
    margin: 0;
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    #property-calculator-container {
        padding: 16px;
        margin: 0 10px;
    }
    
    .calc-title h2 {
        font-size: 24px;
    }
    
    .calc-inputs, .calc-results {
        padding: 16px;
    }
    
    .calc-tabs {
        flex-direction: column;
    }
    
    .calc-tab {
        margin-bottom: 4px;
    }
    
    .calc-tab:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .calc-result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .calc-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .calc-total span:last-child {
        font-size: 20px;
    }
}

/* Loading State */
.calc-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation */
.calc-result-item {
    transition: all 0.2s ease;
}

.calc-result-item:hover {
    background: #f3f4f6;
}

/* Print Styles */
@media print {
    #property-calculator-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .calc-tabs {
        display: none;
    }
    
    .calc-tab-content {
        display: block !important;
    }
    
    .calc-grid {
        grid-template-columns: 1fr;
    }
}