/* =========================================================
   APTECH IIC - FREE VIEW FEEDBACK SOFTWARE THEME
   ========================================================= */
:root {
    --aptech-blue: #155799;
    --aptech-blue-dark: #0f4175;
    --aptech-teal: #34a889;
    --header-mint: #e3f2ef;
    --bg-ice-teal: #cde0e5;
    --input-bg: #eef3fc;
    --input-border: #8c9ba5;
    --text-dark: #2c3e50;
}

* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* =========================================================
   1. LOGIN PAGE STYLES (Exact ApTrack Style + Aptech IIC)
   ========================================================= */
body.login-page-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(120deg, #cfe0e5 0%, #d8e8e6 50%, #e2efe8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
}

/* Bottom-Left Organic Pastel Wave */
.bg-wave-bottom-left {
    position: fixed;
    bottom: -80px;
    left: -80px;
    width: 52vw;
    max-width: 650px;
    height: 55vh;
    max-height: 520px;
    background: rgba(169, 198, 204, 0.55);
    border-radius: 45% 55% 65% 35% / 40% 60% 40% 60%;
    z-index: 0;
    pointer-events: none;
}

/* Login Wrapper to Position 3D Spheres Around Card */
.login-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    z-index: 2;
}

/* 3D Floating Spheres */
.sphere-teal-large {
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #8fd6c6 0%, #44a58b 58%, #2c8069 100%);
    top: 15px;
    right: -185px;
    z-index: -1;
    box-shadow: 0 15px 35px rgba(44, 128, 105, 0.2);
}

.sphere-blue-top {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #5b9ee1 0%, #1d63b0 60%, #12437c 100%);
    top: -155px;
    right: -250px;
    z-index: -1;
}

.sphere-blue-bottom {
    position: absolute;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #5b9ee1 0%, #1d63b0 60%, #12437c 100%);
    bottom: 5px;
    right: -135px;
    z-index: -1;
}

/* White Centered Login Card */
.login-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 36px 28px 32px;
    box-shadow: 0 10px 30px rgba(21, 87, 153, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Aptech IIC Brand Logo */
.brand-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 2px;
}

.brand-title .text-aptech {
    color: var(--aptech-blue);
}

.brand-title .text-iic {
    color: var(--aptech-teal);
}

.brand-subtitle {
    font-size: 11px;
    color: #555555;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Notched / Floating Outline Input Fields */
.notched-group {
    position: relative;
    margin-bottom: 20px;
}

.notched-label {
    position: absolute;
    top: -9px;
    left: 12px;
    background: #ffffff;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 500;
    color: #333333;
    z-index: 2;
    border-radius: 4px;
}

.notched-label .req-star {
    color: #e53935;
    margin-left: 1px;
}

.notched-input {
    width: 100%;
    height: 44px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    padding: 8px 38px 8px 14px;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.2s ease;
}

.notched-input:focus {
    outline: none;
    border-color: var(--aptech-blue);
    box-shadow: 0 0 0 3px rgba(21, 87, 153, 0.12);
    background-color: #f5f8ff;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    font-size: 17px;
}

.password-toggle-btn:hover {
    color: var(--aptech-blue);
}

/* Login Pill Button */
.btn-aptech-login {
    background-color: var(--aptech-blue);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 8px 30px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(21, 87, 153, 0.22);
}

.btn-aptech-login:hover {
    background-color: var(--aptech-blue-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

/* =========================================================
   2. DASHBOARD & LEFT SIDEBAR NAVBAR STYLES
   ========================================================= */
body.dashboard-body {
    margin: 0;
    background-color: var(--bg-ice-teal);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Subtle background curve on dashboard */
body.dashboard-body::before {
    content: "";
    position: fixed;
    bottom: -100px;
    left: -50px;
    width: 480px;
    height: 480px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* Top Mint Header Bar */
.top-navbar {
    background-color: var(--header-mint);
    height: 56px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    color: var(--aptech-blue);
    font-size: 20px;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.sidebar-toggle-btn:hover {
    background: rgba(21, 87, 153, 0.08);
}

.welcome-text {
    font-weight: 700;
    font-style: italic;
    color: #374151;
    font-size: 15px;
    margin-left: 12px;
}

.user-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--aptech-blue);
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Main Dashboard Shell */
.dashboard-wrapper {
    display: flex;
    padding: 12px;
    gap: 14px;
    min-height: calc(100vh - 56px);
    position: relative;
    z-index: 1;
}

/* Left Floating White Card Sidebar */
.left-sidebar {
    width: 255px;
    min-width: 255px;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: calc(100vh - 80px);
    position: sticky;
    top: 68px;
    overflow-y: auto;
}

.left-sidebar.collapsed {
    width: 0;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    margin-right: -14px;
}

/* Sidebar Menu Items */
.sidebar-menu-item {
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: #f0f7fa;
    color: var(--aptech-blue);
}

.sidebar-submenu {
    background-color: #f8fafc;
    padding: 4px 0;
}

.sidebar-sublink {
    display: block;
    padding: 9px 18px 9px 32px;
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.sidebar-sublink:hover,
.sidebar-sublink.active {
    color: var(--aptech-blue);
    font-weight: 600;
}

/* Right Main Content Area */
.main-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.breadcrumb-title {
    color: #1976d2;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    padding-left: 4px;
}

/* Search Criteria / Filter Strip */
.criteria-bar {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 18px;
    margin-bottom: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.criteria-title {
    color: var(--aptech-blue);
    font-weight: 700;
    font-style: italic;
    font-size: 13px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin: 0;
}

/* Main White Content Card */
.workspace-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    flex: 1;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.btn-aptech-primary {
    background-color: var(--aptech-blue);
    color: #ffffff;
    border: none;
    border-radius: 22px;
    padding: 9px 24px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-aptech-primary:hover {
    background-color: var(--aptech-blue-dark);
    color: #ffffff;
}

/* =========================================================
   3. RESPONSIVE BREAKPOINTS (Mobile, Tablet, Mac, Laptop)
   ========================================================= */
@media (max-width: 991.98px) {
    .left-sidebar {
        position: fixed;
        top: 56px;
        left: -275px;
        height: calc(100vh - 56px);
        border-radius: 0 12px 12px 0;
        z-index: 1040;
        opacity: 1 !important;
        width: 260px !important;
        min-width: 260px !important;
        padding: 12px 0 !important;
    }

    .left-sidebar.mobile-open {
        left: 0;
    }

    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1035;
    }

    .sidebar-backdrop.show {
        display: block;
    }

    .sphere-teal-large {
        right: -90px;
        width: 180px;
        height: 180px;
    }

    .sphere-blue-top,
    .sphere-blue-bottom {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .welcome-text {
        display: none;
    }
    .centre-label-desktop {
        display: none;
    }
}