/* 🔥 Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: #f5f5f5;
    height: 100vh;
    overflow-x: hidden;
}

/* 🔥 Header */
/* ==============================
   Header
============================== */

.header {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e7eef7;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 24px;

    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: #163a63;
}

.header-right {
    display: flex;
    align-items: center;
}

/* ==============================
   Menu Button
============================== */

.menu-btn {
    border: none;
    background: #f4f7fb;
    width: 38px;
    height: 38px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    font-size: 16px;
    color: #1f5ea8;

    transition: background 0.2s ease;
}

.menu-btn:hover {
    background: #eaf1fb;
}

/* ==============================
   Profile Dropdown
============================== */

.profile {
    position: relative;
}

.profile-btn {
    border: none;
    background: #f4f7fb;
    width: 38px;
    height: 38px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    color: #1f5ea8;
    font-size: 16px;
}

.profile-dropdown {
    position: absolute;
    right: 0;
    top: 48px;

    width: 220px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e7eef7;

    box-shadow: 0 12px 30px rgba(15,60,115,0.08);

    display: none;
    flex-direction: column;
}

.profile-dropdown a {
    padding: 12px 16px;
    text-decoration: none;
    font-size: 14px;
    color: #163a63;

    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-dropdown a:hover {
    background: #f6f9fd;
}

.profile-dropdown.show {
    display: flex;
}

/* 🔥 Sidebar */
/* ==============================
   Sidebar
============================== */

.sidebar {
    width: 270px;
    background: #ffffff;
    border-right: 1px solid #e7eef7;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 8px 0 24px rgba(15, 60, 115, 0.04);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    border: none;
    background: #f4f7fb;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #1f5ea8;
    cursor: pointer;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.close-btn:hover {
    background: #eaf1f9;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e7eef7;
    box-shadow: 0 10px 25px rgba(15, 60, 115, 0.05);
    margin-bottom: 22px;
}

.profile-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1f5ea8, #0f3c73);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.profile-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.profile-name {
    font-size: 15px;
    font-weight: 700;
    color: #163a63;
    line-height: 1.3;
    word-break: break-word;
}

.profile-role {
    font-size: 13px;
    color: #6a7684;
    margin-top: 2px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-menu li {
    list-style: none;
}

.sidebar-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 14px;
    text-decoration: none;
    color: #163a63;
    font-size: 15px;
    font-weight: 600;
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.sidebar-link i {
    color: #1f5ea8;
    width: 18px;
    text-align: center;
}

.sidebar-link:hover {
    background: #f6f9fd;
    border-color: #e3ebf5;
    transform: translateX(2px);
}

.submenu-toggle {
    border: none;
    cursor: pointer;
    justify-content: space-between;
    background: transparent;
}

.sidebar-link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.submenu-arrow {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.account-settings.open .submenu-arrow {
    transform: rotate(180deg);
}

.account-submenu {
    list-style: none;
    padding: 8px 0 0 12px;
    margin: 0;
    display: none;
    flex-direction: column;
    gap: 8px;
}

.account-settings.open .account-submenu {
    display: flex;
}

.account-submenu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #52606e;
    font-size: 14px;
    font-weight: 600;
    background: #fbfcfe;
    border: 1px solid #edf2f8;
}

.account-submenu li a i {
    color: #1f5ea8;
    width: 16px;
    text-align: center;
}

.account-submenu li a:hover {
    background: #f4f8fd;
}

.sidebar-bottom {
    padding-top: 18px;
    border-top: 1px solid #edf2f8;
    margin-top: 18px;
    flex-shrink: 0;
}

.logout-link {
    color: #b42318;
    background: #fff7f6;
    border-color: #fde2df;
}

.logout-link i {
    color: #b42318;
}

.logout-link:hover {
    background: #fff1ef;
    border-color: #f8d1cc;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.sidebar-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .sidebar {
        width: 85%;
        max-width: 320px;
    }
}

/* ==============================
   Desktop layout spacing
============================== */

.main-content {
    margin-left: 270px;
}

/* ==============================
   Mobile Sidebar
============================== */

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-content {
        margin-left: 0;
    }
}

/* 🔥 Main Content */
.main-content {
    margin: 60px auto 20px; /* Add spacing from fixed header */
    padding: 20px 20px 20px;
    transition: margin-left 0.3s ease;
}
/* Remove layout spacing for homepage */
body.homepage .main-content {
    margin: 0;
    padding: 0;
}

.main-contentbasicform {
  
}

/* If using another wrapper for the form, ensure it has spacing */


/* Onboarding Process Container */
.onboarding-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* Task List */
.onboarding-list {
    list-style: none;
    padding: 0;
}

.onboarding-list li {
    display: flex;
    align-items: center;
    font-size: 16px;
    padding: 10px 0;
}

/* Icons Default */
.onboarding-list li i {
    font-size: 20px;
    color: #ccc;
    margin-right: 10px;
}

/* Completed Tasks */
.onboarding-list .completed i {
    color: #77DD77;
}

/* Links */
.onboarding-list a {
    text-decoration: none;
    color: #007bff;
}

/* Note Section */
.note {
    margin-top: 15px;
    padding: 10px;
    background: #e3f2fd;
    border-radius: 5px;
    font-size: 14px;
}

.note span {
    font-weight: bold;
    color: #007bff;
}

/* Keep main-content in place when sidebar opens */
.sidebar.active ~ .main-content {
    margin-left: 250px;
}



.progress-container {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: #28a745;
    transition: width 0.4s ease-in-out;
}

.progress-text {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}


.progress-fill {
    height: 100%;
    width: 50%;
    background: #27ae60;
    border-radius: 5px;
    text-align: center;
    color: white;
    font-size: 12px;
}

