/* ===== SHARED STYLES FOR ALL CALCULATORS ===== */

:root {
    --primary-green: #059669; /* Modern Pakistan Green */
    --primary-green-light: #10b981;
    --primary-green-dark: #047857;
    --light-green: #f0fdf4;
    --text-black: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --bg-color: #ffffff;
    --bg-gray: #f9fafb;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;
    --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* GLOBAL RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-black);
    background: var(--bg-gray);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* CONTAINER */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* HEADER */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-bottom: 25px;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
    flex-shrink: 0;
    text-decoration: none;
}

.logo span { 
    color: var(--text-black); 
}

/* Desktop Navigation */
nav ul { 
    list-style: none; 
    display: flex; 
    gap: 20px; 
}

nav a { 
    text-decoration: none; 
    color: var(--text-black); 
    font-weight: 500; 
}

nav a:hover { 
    color: var(--primary-green); 
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown > a::after {
    content: "▼";
    font-size: 0.7rem;
    margin-left: 6px;
    color: var(--text-gray);
    transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
    transform: rotate(180deg);
    color: var(--primary-green);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    border: 1px solid #eee;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--text-black);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--light-green);
    color: var(--primary-green);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* SIDEBAR STYLING */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    background-color: #fff;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--text-black);
    display: block;
    transition: 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar a:hover {
    background-color: var(--light-green);
    color: var(--primary-green);
}

.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 20px;
    font-size: 40px;
    border-bottom: none;
}

/* Overlay */
#overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1500;
    cursor: pointer;
}

/* Hamburger Icon */
.hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-black);
    padding-right: 15px;
}

/* FOOTER */
.site-footer {
    text-align: center;
    padding: 40px 0;
    color: #888;
    margin-top: 40px;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .site-header .container {
        justify-content: flex-start;
    }

    .hamburger {
        display: block;
    }

    .desktop-nav {
        display: none;
    }

    .logo {
        flex-grow: 1;
        text-align: center;
        margin-right: 30px;
    }
}