/* static/css/style.css - Final Version */

html, body {
    height: 100%;
}

body {
    background-color: #f4f7fc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.navbar-brand-logo {
    height: 15px; /* Final, correct logo size */
    width: auto;
    margin-right: 0.75rem;
}

.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #dee2e6;
}
.navbar-brand {
    color: #343a40 !important;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.navbar-toggler {
    border: none;
}

.sidebar {
    background-color: #ffffff;
    border-right: 1px solid #dee2e6;
    width: 240px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    padding-top: 56px;
    transition: margin-left 0.3s ease-in-out;
}
.sidebar.collapsed {
    margin-left: -240px;
}
.sidebar .nav-link {
    color: #555;
    font-weight: 500;
    margin: 0.2rem 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #000;
}
.sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
}
.sidebar-welcome {
    padding: 0 1rem 1rem 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}
.sidebar-welcome strong {
    display: block;
    color: #343a40;
    font-size: 1rem;
}

.main-content-wrapper {
    padding-top: 70px;
    padding-left: 260px;
    padding-right: 20px;
    transition: padding-left 0.3s ease-in-out;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.main-content-wrapper.expanded {
    padding-left: 20px;
}

.footer {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
}
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}
