:root {
    --primary-color: #4f46e5;
    --secondary-color: #06b6d4;
    --gradient-start: #4f46e5;
    --gradient-end: #06b6d4;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    margin: 0;
    padding: 0;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.navbar-brand i {
    margin-right: 10px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    padding: 20px 0 20px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.hero-section p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    padding: 10px 0;
}

.calculator-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 40px;
}

.calculator-form-wrapper {
    width: 100%;
}

@media (min-width: 992px) {
    .calculator-form-wrapper {
        width: 50%;
    }
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 15px;
    color: var(--primary-color);
}

.input-group-custom {
    margin-bottom: 35px;
}

.input-label {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.input-label i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    outline: none;
    margin-top: 10px;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 5px;
}

.calculate-btn {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 12px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

.result-section {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    display: none;
}

.result-section.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 5px;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
}

.input-with-icon .form-control {
    padding-left: 45px;
}

/* About Section */
.about-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 40px;
}

.about-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 15px;
    text-align: justify;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 60px;
}

.disclaimer-section {
    background: #374151;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.disclaimer-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fbbf24;
}

.disclaimer-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #d1d5db;
    margin-bottom: 10px;
}

.disclaimer-section ul {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4b5563;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .calculator-container,
    .about-section {
        padding: 25px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}