body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    transition: margin-left 0.3s ease;
}

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

#header {
    height: 60px;
    background: #333;
    color: white;
    padding: 0 15px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#sidebar-toggle {
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-right: 15px;
}

#app-title {
    font-size: 1.5em;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}

#sidebar {
    width: 200px;
    height: 100svh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #f4f4f4;
    padding: 10px;

    /* Reserve space at the bottom so footer is not covered by nav content */
    padding-bottom: 72px;

    display: flex;
    flex-direction: column;
    justify-items: space-between;
    justify-content: space-between;

    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    transform: translateX(0);
    /* Start visible */
    z-index: 10;
}

#main-content {
    margin-left: 220px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

@media (max-width: 900px) {
    #main-content {
        margin-left: 0;
        padding: 15px;
        z-index: 0;
        transition: margin-left 0.3s ease;
    }
}

body.sidebar-hidden #sidebar {
    transform: translateX(-100%);
}

body.sidebar-hidden #main-content {
    margin-left: 0;
    /* Content fills space */
}

#sidebar nav {
    margin-top: 10px;
}

#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar li {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    color: #222;
    font-family: sans-serif;
}

#sidebar li:hover {
    background-color: #e0e0e0;
}

#auth-main-content {
    margin-top: 20px;
    text-align: center;
}

#get-started-btn {
    display: inline-block;
    text-align: left;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: large;
    cursor: pointer;
}

/* Sidebar logout button styling */
#sidebar .logout-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 12px 15px;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

#sidebar .logout-btn:hover {
    background-color: #f2dede;
    /* subtle red on hover to indicate destructive action */
    color: #a94442;
}

/* Make the logout list item match other items when hovered via the button */
#sidebar li .logout-btn {
    display: block;
}


/* Make nav area scrollable so footer remains visible */
#sidebar nav {
    max-height: calc(100vh - 72px);
    overflow: auto;
} */

/* FOOTER BUTTON WRAPPER */
.sidebar-footer {
    position: sticky;
    bottom: 0;
    padding: 12px;
    background: #f8f8f8;
    border-top: 1px solid #ddd;
    z-index: 20;
}

/* BUTTON 1: Username + Logout */
.tmw-user-logout-btn {
    width: 100%;
    background: #1f2937;
    color: #fff;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.tmw-user-logout-btn:hover {
    background: #111827;
}

/* BUTTON 2: Support */
.tmw-support-btn2 {
    width: 100%;
    background: #ffffff;
    color: #222;
    border: 1px solid #ddd;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.tmw-support-btn2:hover {
    background: #f3f4f6;
}

/* MODAL BASE */
.support-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* MODAL BOX */
.support-modal {
    width: 320px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.support-modal h3 {
    margin-bottom: 4px;
}

.support-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.support-actions button {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    cursor: pointer;
}

.support-actions button:hover {
    background: #e5e7eb;
}