/* ===== SALARY HIKE CALCULATOR — Tool Specific CSS ===== */

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

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

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

/* Presets */
.hike-presets-wrap {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #f3f4f6;
}

.hike-presets-label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.hike-presets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.hike-preset-btn {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 9px 4px;
    font-size: 14px;
    font-weight: 800;
    color: #374151;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.hike-preset-btn:hover {
    border-color: #16a34a;
    color: #15803d;
    background: #f0fdf4;
}

.hike-preset-btn.active {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-color: #15803d;
    color: #fff;
    box-shadow: 0 2px 8px rgba(22,163,74,0.3);
}

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

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

.hike-field > label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    display: block;
    margin-bottom: 10px;
}

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

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

.hike-val-tag {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #86efac;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 800;
    color: #14532d;
    white-space: nowrap;
}

.hike-tag-green {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-color: #15803d;
    color: #fff;
    font-size: 16px;
}

/* 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, #16a34a, #15803d);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(22,163,74,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, #16a34a, #15803d);
    border: 2px solid #fff; cursor: pointer;
}

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

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

.hike-manual-input:focus-within {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}

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

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

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

.hike-field-note {
    font-size: 11px;
    color: #6b7280;
    margin-top: 8px;
    padding: 6px 10px;
    background: #f0fdf4;
    border-radius: 6px;
    border-left: 3px solid #16a34a;
}

/* Tax Slab */
.hike-slab-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.hike-slab-btn {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 9px 2px;
    font-size: 13px;
    font-weight: 800;
    color: #374151;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hike-slab-btn small { font-size: 9px; font-weight: 500; color: #9ca3af; }
.hike-slab-btn:hover { border-color: #16a34a; color: #15803d; background: #f0fdf4; }
.hike-slab-btn.active {
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-color: #15803d;
    color: #fff;
}
.hike-slab-btn.active small { color: rgba(255,255,255,0.8); }

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

/* Compare Hero */
.hike-compare-hero {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 22px 20px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-bottom: 2px solid #bbf7d0;
}

.hike-before-card, .hike-after-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    border: 2px solid #e5e7eb;
}

.hike-after-card {
    border-color: #16a34a;
    box-shadow: 0 4px 16px rgba(22,163,74,0.15);
}

.hike-card-label   { font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.hike-card-val     { font-size: 22px; font-weight: 900; color: #1f2937; margin-bottom: 4px; }
.hike-after-card .hike-card-val { color: #15803d; }
.hike-card-monthly { font-size: 12px; color: #6b7280; }

.hike-arrow-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hike-pct-badge {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 800;
}

.hike-arrow {
    font-size: 22px;
    color: #16a34a;
    font-weight: 900;
}

.hike-inc-badge {
    background: #fff;
    border: 2px solid #16a34a;
    color: #15803d;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
}

/* In-Hand Section */
.hike-inhand-section {
    padding: 18px 20px;
    border-bottom: 2px solid #f3f4f6;
}

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

.hike-inhand-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}

.hike-inhand-card {
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.hike-inhand-before { background: #f8fafc; border: 2px solid #e5e7eb; }
.hike-inhand-after  { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border: 2px solid #86efac; }

.hike-inhand-label { font-size: 11px; font-weight: 700; color: #6b7280; margin-bottom: 6px; text-transform: uppercase; }
.hike-inhand-val   { font-size: 18px; font-weight: 900; color: #1f2937; }
.hike-inhand-after .hike-inhand-val { color: #15803d; }

.hike-inhand-diff {
    text-align: center;
}

.hike-inhand-diff span {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: #16a34a;
}

.hike-inhand-diff small {
    font-size: 11px;
    color: #6b7280;
}

/* Breakdown Table */
.hike-breakdown-section {
    padding: 16px 20px;
    border-bottom: 2px solid #f3f4f6;
}

.hike-breakdown-title {
    font-size: 14px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 10px;
}

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

.hike-table thead th {
    background: #1f2937;
    color: #fff;
    padding: 9px 12px;
    text-align: right;
    font-size: 12px;
}

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

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

.hike-table td:first-child { text-align: left; }

.hike-row-bold td {
    font-weight: 800;
    background: #f8fafc;
    color: #1f2937;
    border-top: 1.5px solid #e5e7eb;
}

.hike-diff-pos { color: #16a34a !important; font-weight: 700 !important; }
.hike-diff-neg { color: #dc2626 !important; font-weight: 700 !important; }

/* Stats Grid */
.hike-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #f0f0f0;
    border-top: 2px solid #f3f4f6;
    border-bottom: 2px solid #f3f4f6;
}

.hike-stat {
    background: #fff;
    padding: 14px 10px;
    text-align: center;
}

.hike-stat-icon  { font-size: 20px; margin-bottom: 4px; }
.hike-stat-label { font-size: 11px; font-weight: 700; color: #6b7280; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.hike-stat-val   { font-size: 14px; font-weight: 800; color: #16a34a; }

/* Rating Box */
.hike-rating-box {
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.6;
    border-radius: 0 0 20px 20px;
}

.hike-rating-emoji { display: none; }

.hike-rating-outstanding { background: linear-gradient(135deg, #faf5ff, #ede9fe); color: #4c1d95; border-top: 2px solid #ddd6fe; }
.hike-rating-excellent   { background: linear-gradient(135deg, #f0fdf4, #dcfce7); color: #14532d; border-top: 2px solid #86efac; }
.hike-rating-good        { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); color: #0c4a6e; border-top: 2px solid #7dd3fc; }
.hike-rating-ok          { background: linear-gradient(135deg, #fefce8, #fef9c3); color: #713f12; border-top: 2px solid #fde047; }
.hike-rating-avg         { background: linear-gradient(135deg, #fff7ed, #ffedd5); color: #7c2d12; border-top: 2px solid #fed7aa; }
.hike-rating-low         { background: linear-gradient(135deg, #fff5f5, #fee2e2); color: #7f1d1d; border-top: 2px solid #fca5a5; }

.hike-rating-box strong  { font-size: 15px; }

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

.info-box h4 { color: #14532d; 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: #16a34a; font-size: 15px; font-weight: 700; margin-bottom: 4px; }

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

.features-box h4 { color: #1e3a8a; 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: #16a34a; font-weight: 700; }
.features-box ul li strong { color: #1e3a8a; }

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

@media (max-width: 768px) {
    .hike-input-panel { padding: 20px 16px; }
    .hike-compare-hero { grid-template-columns: 1fr; }
    .hike-arrow { transform: rotate(90deg); }
    .hike-inhand-grid { grid-template-columns: 1fr; gap: 8px; }
    .hike-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hike-presets-grid { grid-template-columns: repeat(4, 1fr); }
    .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hike-slab-grid { grid-template-columns: repeat(3, 1fr); }
    .hike-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hike-card-val { font-size: 18px; }
}