/* General Body and Auth Styles */
body {
    background-color: #f8f9fa;
    overflow-x: hidden; /* Prevent horizontal scrollbar during animation */
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#app-container {
    display: none; /* Initially hidden */
}

/* --- Sidebar Styles --- */
.sidebar {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    background-color: #343a40;
    transition: width 0.3s ease-in-out;
    z-index: 1000;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    color: white;
}

.sidebar-header h4 {
    margin: 0;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    white-space: nowrap;
}

#sidebar-toggle {
    color: #adb5bd;
    border: none;
    background: transparent;
}

#sidebar-toggle:hover {
    color: #fff;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    color: #adb5bd;
    font-size: 1.1em;
    padding: 0.75rem 1.25rem;
    white-space: nowrap; /* Prevent text wrapping */
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: #fff;
    background-color: #495057;
}

.sidebar .nav-link .fa-fw {
    width: 1.5em; /* Fixed width for icon alignment */
    margin-right: 10px;
    text-align: center;
    transition: font-size 0.3s;
}

/* --- Collapsed Sidebar State --- */
.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .sidebar-header h4 {
    opacity: 0;
    display: none;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center;
}

.sidebar.collapsed .nav-link-text, .sidebar.collapsed hr {
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
}

.sidebar.collapsed .nav-link .fa-fw {
    margin-right: 0;
    font-size: 1.5rem; /* Make icons bigger */
}

/* --- Main Content Styles --- */
.content {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s ease-in-out;
}

.content.collapsed {
    margin-left: 80px;
}

.card-header {
    background-color: #007bff;
    color: white;
}

/* Initially hide reset and forgot password forms */
#forgot-password-container, #reset-password-container {
    display: none;
}
