﻿/* ===================================================== */
/* RESET                                                 */
/* ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", system-ui, sans-serif;
    background: linear-gradient(135deg, #e3f2fd, #f8f9fa);
    height: 100vh;
    overflow: hidden;
}


/* ===================================================== */
/* HEADER                                                */
/* ===================================================== */

.app-header {
    height: 64px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 60px;
    padding: 0 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#companyName {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.header-right {
    margin-left: auto;
}

#userGreeting {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

/* ===================================================== */
/* BODY (SIDEBAR + CONTENT)                              */
/* ===================================================== */

.app-body {
    display: flex;
    height: calc(100vh - 64px - 40px);
    overflow: hidden;
}


/* ===================================================== */
/* SIDEBAR                                               */
/* ===================================================== */

.app-sidebar {
    width: 260px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
}


/* ===================================================== */
/* CONTENT                                               */
/* ===================================================== */

.app-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}


/* ===================================================== */
/* FOOTER                                                */
/* ===================================================== */

.app-footer {
    height: 40px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}


/* ===================================================== */
/* GLASS CARD (DEMO)                                     */
/* ===================================================== */

.glass-card {
    max-width: 500px;
    padding: 2rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(18px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* FOOTER INNER */
.footer-inner {
    height: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #4b5563;
    /* Subtle futuristic glow */
    background: linear-gradient( to right, rgba(255,255,255,0.45), rgba(255,255,255,0.65), rgba(255,255,255,0.45) );
}

/* FOOTER LINKS */
.footer-links {
    display: flex;
    gap: 1.6rem;
}

    .footer-links a {
        position: relative;
        text-decoration: none;
        color: #374151;
        font-weight: 500;
        letter-spacing: 0.02em;
        transition: color 0.25s ease;
    }

        /* Animated underline glow */
        .footer-links a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -6px;
            width: 100%;
            height: 1px;
            background: linear-gradient(90deg, #0ea5e9, #6366f1);
            opacity: 0;
            transform: scaleX(0.4);
            transition: all 0.25s ease;
        }

        /* Hover Effect */
        .footer-links a:hover {
            color: #0ea5e9;
        }

            .footer-links a:hover::after {
                opacity: 1;
                transform: scaleX(1);
            }

/* FOOTER TEXT */
.footer-inner p {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

/* Optional: subtle top glow line */
.app-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient( 90deg, transparent, rgba(99,102,241,0.6), rgba(14,165,233,0.6), transparent );
}
/* ===================================================== */
/* HEADER INNER SHELL — WINDOWS 11 FLUENT GLASS          */
/* ===================================================== */

.header-inner {
    height: 100%;
    padding: 0 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient( to right, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.55) );
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}


/* ===================================================== */
/* LEFT AREA (Back Button + Logo)                        */
/* ===================================================== */

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}


/* ===================================================== */
/* BACK BUTTON — PREMIUM GLASS (Windows 11 Style)        */
/* ===================================================== */

.header-back-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55), 0 6px 18px rgba(0, 0, 0, 0.10), 0 12px 28px rgba(0, 0, 0, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

    .header-back-btn:hover {
        background: rgba(255, 255, 255, 0.88);
        transform: translateY(-2px);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65), 0 10px 26px rgba(0, 0, 0, 0.16), 0 18px 40px rgba(0, 0, 0, 0.14);
    }

    .header-back-btn:active {
        transform: scale(0.96);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.75), 0 6px 16px rgba(0, 0, 0, 0.12);
    }

    /* SVG Arrow */
    .header-back-btn svg {
        width: 22px;
        height: 22px;
        stroke-width: 2.6;
        stroke: currentColor;
    }

.back-svg {
    color: #1f2937;
}


/* ===================================================== */
/* LOGO                                                  */
/* ===================================================== */

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 190px;
    height: 44px;
    background-image: url('/Images/Logo/AskPa_bgremoved_elongated.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
}


/* ===================================================== */
/* NAVIGATION                                            */
/* ===================================================== */

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

    .header-nav a {
        position: relative;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        letter-spacing: 0.02em;
        color: #374151;
        transition: color 0.25s ease;
    }

        /* Futuristic underline */
        .header-nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -6px;
            width: 100%;
            height: 1px;
            background: linear-gradient(90deg, #0ea5e9, #6366f1);
            opacity: 0;
            transform: scaleX(0.4);
            transition: all 0.25s ease;
        }

        .header-nav a:hover {
            color: #0ea5e9;
        }

            .header-nav a:hover::after {
                opacity: 1;
                transform: scaleX(1);
            }


/* ===================================================== */
/* GET STARTED BUTTON                                    */
/* ===================================================== */

.btn-get-started {
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient( 135deg, #0ea5e9, #6366f1 );
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 30px rgba(99,102,241,0.35), inset 0 0 0 1px rgba(255,255,255,0.35);
    transition: all 0.3s ease;
}

    .btn-get-started:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 40px rgba(99,102,241,0.45);
    }


/* ===================================================== */
/* RESPONSIVE                                            */
/* ===================================================== */

@media (max-width: 768px) {
    .header-nav a:not(.btn-get-started) {
        display: none;
    }

    .logo-icon {
        width: 150px;
    }
}

/* Sidebar Inner — matches header/footer glass style */
.sidebar-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px 10px;
    font-family: 'Segoe UI', sans-serif;
    /* REMOVED: dark gradient background, color: #fff */
}

/* Logo */
.sidebar-logo {
    text-align: center;
    margin-bottom: 30px;
}

    .sidebar-logo h2 {
        font-size: 20px;
        letter-spacing: 0.5px;
        color: #2c3e50; /* matches #companyName in your header */
        font-weight: 600;
    }

/* Menu */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Menu Item */
.menu-item {
    margin-bottom: 6px;
}

    .menu-item a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        border-radius: 10px;
        color: #374151; /* matches your footer-links and header-nav color */
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: background 0.2s ease, color 0.2s ease;
        /* REMOVED: transform translateX (clashes with glass aesthetic) */
    }

    .menu-item .icon {
        font-size: 16px;
        flex-shrink: 0;
    }

    /* Hover — same pattern as your header-nav / footer-links */
    .menu-item a:hover {
        background: rgba(14, 165, 233, 0.08);
        color: #0ea5e9;
    }

    /* Active — soft glass pill, matches your btn-get-started color family */
    .menu-item.active a {
        background: rgba(14, 165, 233, 0.12);
        color: #0ea5e9;
        font-weight: 600;
        border: 1px solid rgba(14, 165, 233, 0.2);
    }

    .menu-item.active .icon {
        color: #0ea5e9;
    }
/* ===================================================== */
/* BOOTSTRAP FULL RESET — Sidebar                        */
/* ===================================================== */
.sidebar-menu {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

    .sidebar-menu .menu-item {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        border-radius: 10px !important;
    }

        .sidebar-menu .menu-item a {
            display: inline-flex !important;
            width: auto !important;
            border: none !important;
            box-shadow: none !important;
            background: transparent;
        }

            .sidebar-menu .menu-item a:hover {
                background: rgba(14, 165, 233, 0.08) !important;
            }

        .sidebar-menu .menu-item.active a {
            background: rgba(14, 165, 233, 0.12) !important;
            color: #0ea5e9 !important;
        }
