/* Shronix eSign - Final Professional Responsive Style */

:root {
    --primary-color: #0056b3; /* Shronix Blue */
    --secondary-color: #28a745; /* Success Green */
    --bg-color: #f4f6f9;
    --text-color: #333;
    --white: #ffffff;
    --sidebar-width: 250px; /* Laptop ke liye Sidebar ki chaudai */
    --header-height: 60px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    /* padding-bottom mobile query me add karenge */
}

/* --- 1. APP HEADER (Top Bar) --- */
.app-header {
    background-color: var(--primary-color);
    color: var(--white);
    height: var(--header-height);
    padding: 0 20px;
    display: flex;
    justify-content: space-between; /* Isse Logo Left aur Profile Right me jayega */
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed; /* Header hamesha upar chipka rahega */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.app-logo {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-logo img {
    height: 30px;
    background: white;
    border-radius: 5px;
    padding: 2px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* --- 2. SIDEBAR (Laptop Only) --- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    height: 100vh; /* Puri unchai */
    position: fixed;
    top: var(--header-height); /* Header ke neeche se shuru */
    left: 0;
    border-right: 1px solid #ddd;
    padding-top: 20px;
    overflow-y: auto;
    z-index: 900;
}

/* Sidebar Links Design */
.sidebar a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    border-left: 4px solid transparent;
}

.sidebar a i {
    width: 30px;
    font-size: 18px;
    color: #777;
}

.sidebar a:hover, .sidebar a.active {
    background: #e3f2fd;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar a.active i { color: var(--primary-color); }

/* --- 3. MAIN CONTAINER (Page Content) --- */
.container {
    padding: 20px;
    margin-top: var(--header-height); /* Header ke neeche content */
    margin-left: var(--sidebar-width); /* Sidebar ke liye jagah */
    max-width: 1200px; /* Laptop par content jyada fail sake */
    transition: 0.3s;
}

/* --- 4. BUTTONS & CARDS --- */
.btn {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    margin-bottom: 10px;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-primary { background-color: var(--primary-color); color: white; }
.btn-success { background-color: var(--secondary-color); color: white; }
.btn-outline { border: 1px solid var(--primary-color); color: var(--primary-color); background: transparent; }

.card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

/* --- 5. BOTTOM NAVIGATION (Hidden on Laptop) --- */
.bottom-nav {
    display: none; /* Laptop par nahi dikhega */
}

/* =========================================
   MOBILE RESPONSIVE RULES (Max Width 991px)
   Jab screen choti hogi (Mobile/Tablet), tab ye rules lagenge
   ========================================= */
@media (max-width: 991px) {
    
    /* 1. Sidebar ko chupao */
    .sidebar {
        display: none; 
    }

    /* 2. Content ko failao (Sidebar hat gaya) */
    .container {
        margin-left: 0; 
        width: 100%;
        max-width: 100%;
        padding-bottom: 80px; /* Bottom menu ke liye jagah */
    }

    /* 3. Bottom Nav ko dikhao */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--white);
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #ddd;
        z-index: 1000;
        display: flex; /* Force show on mobile */
    }

    .nav-item {
        text-align: center;
        color: #666;
        text-decoration: none;
        font-size: 12px;
        flex: 1;
    }

    .nav-item i {
        display: block;
        font-size: 20px;
        margin-bottom: 4px;
    }

    .nav-item.active {
        color: var(--primary-color);
        font-weight: bold;
    }
}