:root {
    --primary: #0F172A;
    --secondary: #1D4ED8;
    --bg-light: #F8FAFC;
    --accent: #16A34A;
}

body {
    background-color: var(--bg-light);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--primary);
}

/* Navbar/Header */
.navbar-custom {
    background-color: var(--primary);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.logo-text {
    color: white;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.2;
}

.logo-text span {
    color: var(--accent);
    font-weight: 600;
}

.tagline-custom {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Navigation */
.nav-custom {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.nav-custom .nav-link {
    color: var(--primary);
    font-weight: 500;
    padding: 1rem 1.2rem;
    transition: color 0.2s;
}

.nav-custom .nav-link:hover {
    color: var(--secondary);
}

.nav-custom .nav-link.active {
    color: var(--secondary);
    border-bottom: 3px solid var(--secondary);
}

/* Page Header */
.page-header {
    margin: 2rem 0 2.5rem;
}

.page-header h2 {
    color: var(--primary);
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.page-header p {
    color: #475569;
    font-size: 1.1rem;
    max-width: 800px;
}

/* Calculator Container */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.form-section,
.result-section {
    background: white;
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    border: 1px solid #e9eef2;
}

.form-section h3,
.result-section h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.form-section h3 i,
.result-section h3 i {
    color: var(--secondary);
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    font-size: 1.2rem;
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    outline: none;
    border-color: var(--secondary);
}

.quick-fill-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.quick-fill-btn {
    background: var(--bg-light);
    border: 2px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
}

.quick-fill-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.info-box {
    background: rgba(29, 78, 216, 0.03);
    border-left: 4px solid var(--secondary);
    padding: 1.2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.info-box h4 {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-box p {
    color: #475569;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.btn-calculate {
    background-color: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    width: 100%;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-calculate:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.3);
}

.result-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.result-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.result-placeholder h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.results-container {
    display: none;
}

/* Salary Pyramid */
.salary-pyramid {
    margin-bottom: 2rem;
}

.pyramid-level {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.level-hourly {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.level-daily {
    background: linear-gradient(135deg, var(--secondary) 0%, #2563eb 100%);
}

.level-weekly {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.level-monthly {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
}

.level-label {
    font-weight: 600;
    font-size: 1rem;
    opacity: 0.9;
}

.level-value {
    font-weight: 700;
    font-size: 1.5rem;
}

.level-detail {
    font-size: 0.8rem;
    opacity: 0.8;
    text-align: right;
}

.calculation-details {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 1.2rem;
}

.calculation-details h4 {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calculation-details h4 i {
    color: var(--secondary);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

.detail-row:last-child {
    border-bottom: none;
    font-weight: 600;
    color: var(--primary);
}

/* Tips Section */
.tips-section {
    background: white;
    border-radius: 32px;
    padding: 2.5rem;
    margin: 3rem 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    border: 1px solid #e9eef2;
}

.tips-section h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.tips-section h3 i {
    color: var(--secondary);
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    line-height: 1.6;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li strong {
    color: var(--primary);
}

/* Footer */
.footer-custom {
    background-color: var(--primary);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 3rem;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.copyright a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 500;
}

.copyright a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .quick-fill-options {
        justify-content: center;
    }
}