/* * Main Stylesheet
 * Project: The Calculators Online
 * Developer: Rahul Kumar (WPFixHub)
 * Year: 2025
 */

/* =========================================
   1. GLOBAL VARIABLES & TYPOGRAPHY
   ========================================= */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --card-radius: 16px;
    --transition-speed: 0.3s;
}

body {
    font-family: var(--font-body);
    background-color: #f4f6f9; /* Soft Blue-ish Gray */
    color: var(--dark-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #1a1a1a;
}

a {
    text-decoration: none;
    transition: all var(--transition-speed);
}

/* =========================================
   2. NAVBAR CUSTOMIZATION
   ========================================= */
.navbar {
    padding: 0.8rem 1rem;
    backdrop-filter: blur(10px); /* Glassmorphism effect if bg is transparent */
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 500;
    margin: 0 5px;
    position: relative;
}

/* Underline animation for links */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: #fff;
    transition: width var(--transition-speed);
}
.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.dropdown-menu {
    border-radius: 12px;
    padding: 10px;
    margin-top: 10px;
    animation: slideUp 0.3s ease;
}
.dropdown-item {
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 0.95rem;
}
.dropdown-item:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
    padding-left: 20px; /* Slight movement on hover */
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   3. CALCULATOR CARDS & CONTAINERS
   ========================================= */
.card-hover {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: var(--card-radius);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Common wrapper for all tools */
.calc-wrapper {
    background: #fff;
    border-radius: var(--card-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(0,0,0,0.03);
}

/* Page Titles */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}
.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #212529 0%, #495057 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-header p {
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   4. FORM ELEMENTS (Inputs & Sliders)
   ========================================= */
.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    font-weight: 500;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.input-group-text {
    background-color: #f1f3f5;
    border: 2px solid #e9ecef;
    border-right: none;
    color: #495057;
    font-weight: 600;
}
.input-group .form-control {
    border-left: none;
}

/* Custom Range Slider (Webkit) - VERY IMPORTANT for EMI/SIP */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.4);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #dee2e6;
    border-radius: 5px;
}

/* =========================================
   5. SEO CONTENT AREA
   ========================================= */
.seo-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-top: 50px;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.seo-content h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #333;
}
.seo-content h3 {
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #444;
}
.seo-content p, .seo-content ul {
    color: #555;
    font-size: 1rem;
    margin-bottom: 15px;
}
.seo-content li {
    margin-bottom: 8px;
}

/* =========================================
   6. FOOTER STYLES
   ========================================= */
footer {
    background-color: #111 !important;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #fff;
    padding-left: 5px; /* Slight nudge effect */
}
.social-links a {
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
}
.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* =========================================
   7. UTILITIES & ANIMATIONS
   ========================================= */
.ls-1 { letter-spacing: 1px; }

/* Result Highlight Box */
.highlight-result {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #999;
}