/* DA Calculator - Styles */

.dac-wrapper {
    max-width: 640px;
    margin: 32px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.dac-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef1f3;
    padding: 32px 28px;
}

.dac-card-header {
    text-align: center;
    margin-bottom: 22px;
}

.dac-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.dac-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Tabs (layout differentiator) */
.dac-tabs {
    display: flex;
    gap: 8px;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 24px;
}

.dac-tab {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.dac-tab.active {
    background: #ffffff;
    color: #0f766e;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Form fields */
.dac-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dac-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dac-field label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dac-tooltip {
    position: relative;
    color: #9ca3af;
    font-size: 13px;
    cursor: help;
    font-weight: 400;
}

.dac-tooltip:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 130%;
    left: 0;
    background: #1a1a1a;
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    width: 220px;
    line-height: 1.4;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dac-field select,
.dac-field input[type="number"] {
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dac-field select:focus,
.dac-field input[type="number"]:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

/* Buttons */
.dac-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.dac-btn {
    flex: 1;
    padding: 13px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.05s ease;
}

.dac-btn:active {
    transform: scale(0.98);
}

.dac-btn-primary {
    background: #14b8a6;
    color: #ffffff;
}

.dac-btn-primary:hover {
    opacity: 0.92;
}

.dac-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.dac-btn-secondary:hover {
    background: #e5e7eb;
}

.dac-btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
    width: 100%;
    margin-top: 16px;
}

.dac-btn-outline:hover {
    background: #f9fafb;
}

/* Result panel */
.dac-result {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eef1f3;
    text-align: center;
}

.dac-result-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.dac-result-range {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.dac-result-amount {
    font-size: 32px;
    font-weight: 800;
    color: #0f766e;
}

.dac-result-label {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

.dac-result-breakdown {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px 18px;
    text-align: left;
    margin-bottom: 16px;
}

.dac-result-breakdown .dac-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #374151;
    padding: 6px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.dac-result-breakdown .dac-line:last-child {
    border-bottom: none;
    font-weight: 700;
    color: #1a1a1a;
    padding-top: 10px;
}

.dac-result-note {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
    text-align: left;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px 14px;
}

/* Responsive */
@media (max-width: 480px) {
    .dac-card {
        padding: 24px 18px;
    }
    .dac-title {
        font-size: 20px;
    }
    .dac-result-amount {
        font-size: 26px;
    }
    .dac-actions {
        flex-direction: column;
    }
    .dac-tab {
        font-size: 12px;
        padding: 9px 8px;
    }
}
