/* Interior Cost Calculator Styles */
.icc-calculator-container {
    max-width: 800px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.icc-calculator-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.icc-calculator-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.icc-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.icc-calculator-body {
    padding: 30px;
}

/* Step Navigation */
.icc-steps-header {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px;
    padding: 4px;
}

.icc-step-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    gap: 8px;
}

.icc-step-tab.active {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #667eea;
}

.icc-step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.icc-step-tab.active .icc-step-number {
    background: #667eea;
    color: white;
}

.icc-step-title {
    font-weight: 500;
    font-size: 14px;
}

/* Step Content */
.icc-step-content {
    display: none;
}

.icc-step-content.active {
    display: block;
}

/* Form Elements */
.icc-form-group {
    margin-bottom: 24px;
}

.icc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.icc-input,
.icc-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.icc-input:focus,
.icc-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.icc-input-help {
    margin: 6px 0 0 0;
    font-size: 12px;
    color: #6b7280;
}

/* Property Type Selection */
.icc-property-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.icc-property-option {
    position: relative;
}

.icc-property-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.icc-property-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
}

.icc-property-option input[type="radio"]:checked + label {
    border-color: #667eea;
    background: #f0f3ff;
    color: #667eea;
}

.icc-property-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.icc-property-icon i {
    font-size: 32px;
}

/* Preview Amount */
.icc-preview-container {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 24px 0;
    border: 1px solid #e2e8f0;
}

.icc-preview-label {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.icc-preview-value {
    font-size: 28px;
    font-weight: 700;
    color: #059669;
}

/* Form Actions */
.icc-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
}

.icc-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icc-next-step,
.icc-submit-form {
    background: #667eea;
    color: white;
}

.icc-next-step:hover,
.icc-submit-form:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.icc-back-step {
    background: #e5e7eb;
    color: #374151;
}

.icc-back-step:hover {
    background: #d1d5db;
}

.icc-reset-calculator {
    background: #10b981;
    color: white;
}

.icc-reset-calculator:hover {
    background: #059669;
}

/* Result Page */
.icc-result-container {
    text-align: center;
}

.icc-result-header h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #1f2937;
}

.icc-result-subheader {
    color: #6b7280;
    margin: 0 0 30px 0;
}

.icc-result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.icc-result-property {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    text-align: left;
}

.icc-property-details {
    display: flex;
    flex-direction: column;
}

.icc-detail-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.icc-detail-value {
    font-weight: 600;
    color: #1f2937;
}

.icc-result-amount {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
}

.icc-amount-label {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.icc-amount-value {
    font-size: 36px;
    font-weight: 700;
}

/* Breakdown Table */
.icc-result-breakdown {
    margin: 30px 0;
    text-align: left;
}

.icc-result-breakdown h4 {
    margin: 0 0 16px 0;
    color: #1f2937;
    text-align: center;
}

.icc-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
}

.icc-breakdown-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.icc-breakdown-table td:first-child {
    color: #374151;
    font-weight: 500;
}

.icc-breakdown-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #059669;
}

.icc-breakdown-table tr:last-child td {
    border-bottom: none;
}

/* Result Notes */
.icc-result-notes {
    background: #fef3cd;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    margin: 24px 0;
    text-align: left;
}

.icc-result-notes p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #92400e;
}

.icc-result-notes p:last-child {
    margin-bottom: 0;
}

/* Loader */
.icc-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

.icc-loader.active {
    display: flex;
}

.icc-loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: icc-spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes icc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .icc-calculator-container {
        margin: 10px;
        border-radius: 8px;
    }

    .icc-calculator-header {
        padding: 20px;
    }

    .icc-calculator-header h2 {
        font-size: 24px;
    }

    .icc-calculator-body {
        padding: 20px;
    }

    .icc-steps-header {
        flex-direction: column;
        gap: 4px;
    }

    .icc-step-tab {
        padding: 12px;
    }

    .icc-property-types {
        grid-template-columns: 1fr;
    }

    .icc-result-summary {
        grid-template-columns: 1fr;
    }

    .icc-form-actions {
        flex-direction: column;
    }

    .icc-amount-value {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .icc-calculator-header h2 {
        font-size: 20px;
    }

    .icc-preview-value {
        font-size: 24px;
    }

    .icc-amount-value {
        font-size: 24px;
    }
}

/* Admin Styles */
.icc-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.icc-stat-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.icc-stat-box h3 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #667eea;
}

.icc-stat-box p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.icc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.icc-stat-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 4px solid #667eea;
}

.icc-stat-card h2 {
    margin: 0 0 8px 0;
    font-size: 32px;
    color: #1f2937;
}

.icc-stat-card p {
    margin: 0;
    color: #6b7280;
    font-weight: 500;
}

.icc-recent-activity {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}
