/* ===== EPF / PF CALCULATOR — Tool Specific CSS ===== */

.epf-wrapper {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    margin-bottom: 30px;
    align-items: start;
}

/* ===== INPUT PANEL ===== */
.epf-input-panel {
    background: #fff;
    border-radius: 20px;
    padding: 26px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.epf-panel-title {
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f3f4f6;
}

/* Field */
.epf-field {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #f3f4f6;
}

.epf-field:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.epf-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.epf-field-header label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.epf-val-tag {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1.5px solid #fcd34d;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 800;
    color: #92400e;
    white-space: nowrap;
}

/* Slider */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    outline: none;
    cursor: pointer;
    margin-bottom: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(245,158,11,0.4);
    border: 2px solid #fff;
    transition: transform 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 2px solid #fff; cursor: pointer;
}

.epf-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.epf-manual-input {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.epf-manual-input:focus-within {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}

.epf-prefix {
    background: #f3f4f6;
    padding: 9px 12px;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    border-right: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.epf-suffix {
    background: #f3f4f6;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    border-left: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.epf-manual-input input {
    border: none;
    outline: none;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    width: 100%;
    background: #fff;
}

.epf-rate-note {
    font-size: 11px;
    color: #6b7280;
    margin-top: 8px;
    padding: 6px 10px;
    background: #fffbeb;
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
}

/* ===== RESULT PANEL ===== */
.epf-result-panel {
    background: #fff;
    border-radius: 20px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* Hero */
.epf-hero {
    background: linear-gradient(135deg, #78350f, #b45309, #d97706);
    padding: 28px 24px;
    text-align: center;
    color: #fff;
    border-bottom: none;
}

.epf-hero-label {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.epf-hero-val {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.epf-hero-meta {
    font-size: 13px;
    opacity: 0.8;
}

/* Contribution Grid */
.epf-contrib-section {
    padding: 20px 20px 0;
}

.epf-contrib-title {
    font-size: 14px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 12px;
}

.epf-contrib-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.epf-contrib-card {
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    border: 2px solid transparent;
}

.epf-card-emp   { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #93c5fd; }
.epf-card-epf   { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-color: #86efac; }
.epf-card-eps   { background: linear-gradient(135deg, #faf5ff, #ede9fe); border-color: #c4b5fd; }
.epf-card-total { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fcd34d; }

.epf-contrib-icon  { font-size: 20px; margin-bottom: 4px; }
.epf-contrib-label { font-size: 11px; font-weight: 700; color: #374151; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.3px; }
.epf-contrib-pct   { font-size: 10px; color: #6b7280; margin-bottom: 6px; }
.epf-contrib-amt   { font-size: 13px; font-weight: 800; color: #1f2937; }

.epf-card-emp   .epf-contrib-amt { color: #1e3a8a; }
.epf-card-epf   .epf-contrib-amt { color: #166534; }
.epf-card-eps   .epf-contrib-amt { color: #4c1d95; }
.epf-card-total .epf-contrib-amt { color: #92400e; }

/* Summary Cards */
.epf-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #f0f0f0;
    border-top: 2px solid #f3f4f6;
    border-bottom: 2px solid #f3f4f6;
}

.epf-sum-card {
    background: #fff;
    padding: 16px 12px;
    text-align: center;
}

.epf-sum-icon  { font-size: 22px; margin-bottom: 6px; }
.epf-sum-label { font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.epf-sum-val   { font-size: 16px; font-weight: 900; color: #1f2937; }
.epf-green     { color: #059669 !important; }
.epf-purple    { color: #7c3aed !important; }

/* Progress Bars */
.epf-bar-section {
    padding: 16px 20px;
    border-bottom: 2px solid #f3f4f6;
}

.epf-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.epf-bar-row:last-child { margin-bottom: 0; }

.epf-bar-label {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    width: 55px;
    flex-shrink: 0;
}

.epf-bar-track {
    flex: 1;
    height: 10px;
    background: #f3f4f6;
    border-radius: 999px;
    overflow: hidden;
}

.epf-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.7s ease;
}

.epf-bar-inv { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.epf-bar-int { background: linear-gradient(90deg, #10b981, #34d399); }

.epf-bar-pct {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    width: 36px;
    text-align: right;
    flex-shrink: 0;
}

/* Table */
.epf-table-wrap { padding: 20px; }

.epf-table-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.epf-table-scroll {
    max-height: 300px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
}

.epf-table-scroll::-webkit-scrollbar { width: 4px; }
.epf-table-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

.epf-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.epf-table thead th {
    background: #78350f;
    color: #fff;
    padding: 10px 12px;
    text-align: right;
    font-size: 12px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.epf-table thead th:first-child { text-align: left; }

.epf-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #f3f4f6;
    text-align: right;
    color: #374151;
    font-weight: 500;
}

.epf-table td:first-child { text-align: left; font-weight: 700; color: #1f2937; }
.epf-table td small { font-size: 11px; font-weight: 400; color: #9ca3af; }

.epf-col-int { color: #059669 !important; font-weight: 700 !important; }
.epf-col-bal { color: #b45309 !important; font-weight: 800 !important; }

.epf-row-last td {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    font-weight: 800 !important;
    border-top: 2px solid #f59e0b;
}

.epf-row-last .epf-col-bal { color: #92400e !important; font-size: 14px; }

/* Info / Features */
.info-box {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
}

.info-box h4 { color: #78350f; font-size: 20px; margin-bottom: 18px; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.info-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

.info-item strong { display: block; color: #d97706; font-size: 15px; font-weight: 700; margin-bottom: 4px; }

.features-box {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
}

.features-box h4 { color: #14532d; font-size: 20px; margin-bottom: 16px; }
.features-box ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.features-box ul li {
    font-size: 14px;
    color: #374151;
    padding-left: 22px;
    position: relative;
    line-height: 1.6;
}

.features-box ul li::before { content: '✓'; position: absolute; left: 0; color: #059669; font-weight: 700; }
.features-box ul li strong { color: #14532d; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .epf-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .epf-input-panel { padding: 20px 16px; }
    .epf-contrib-grid { grid-template-columns: repeat(2, 1fr); }
    .epf-summary-cards { grid-template-columns: 1fr; gap: 0; }
    .epf-hero-val { font-size: 34px; }
    .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .epf-contrib-grid { grid-template-columns: repeat(2, 1fr); }
    .epf-hero-val { font-size: 28px; }
    .epf-table-wrap { padding: 14px; }
}