/* Dark Mode Theme with Red and Yellow Accents */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

body {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    min-width: 320px;
}

/* --- General Components --- */
.btn-primary, .btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background-color: #e50914; /* Red */
    border-color: #e50914;
}

.btn-secondary {
    background-color: #f5c518; /* Yellow */
    border-color: #f5c518;
    color: #121212;
}

.form-control, .form-select {
    background-color: #b6b6b6;
    color: #000;
    border: 1px solid #959191;
}

.label {
    display: inline-block;
    color: #fff;
}

.form-control:focus, .form-select:focus {
    background-color: #333;
    color: #fff;
    border-color: #f5c518; /* Yellow focus */
    box-shadow: 0 0 0 0.25rem rgba(245, 197, 24, 0.25);
}

.alert { border-radius: 8px; }
.alert-danger { background-color: #5d0a0a; color: #ffc4c4; border: 1px solid #e50914; }
.alert-success { background-color: #0c4b33; color: #b8f5d1; border: 1px solid #1f8754; }
.alert-info { background-color: #0c3e5e; color: #bde3ff; border: 1px solid #0dcaf0; }


/* --- Sidebar and Main Content Layout --- */
.sidebar {
    width: 280px;
    min-height: 100vh;
    background-color: #1e1e1e;
    position: fixed;
    top: 0;
    left: 0;
    transition: transform 0.3s ease-in-out;
    z-index: 1030;
}

.content {
    margin-left: 280px;
    width: calc(100% - 280px);
    transition: margin-left 0.3s ease-in-out;
}

@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .content { margin-left: 0; width: 100%; }
}

.sidebar-toggler {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1031;
    display: none;
    background-color: #f5c518;
    color: #121212;
    border: none;
    padding: 0.3rem 0.6rem;
    font-size: 1.5rem;
}

@media (max-width: 992px) {
    .sidebar-toggler { display: block; }
}


/* --- Modern Dashboard Styles --- */
.dashboard-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: .75rem;
    padding: 1.5rem;
    height: 100%;
}

.stat-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: .75rem;
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
}

.stat-card .stat-label { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; color: #aaa; }
.stat-card .stat-value { font-size: 2.25rem; font-weight: 700; color: #ffffff; }
.stat-card .stat-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-size: 4rem; opacity: 0.1; }
.dashboard-list .list-group-item { background-color: transparent; border-color: #333; color: #ccc; padding: 1rem 0.5rem; display: flex; justify-content: space-between; align-items: center; }
.dashboard-list .list-group-item:first-child { border-top: none; }
.dashboard-list .list-group-item:last-child { border-bottom: none; }


/* --- NEW MODERN AUTH PAGE STYLES --- */
.auth-body {
    background: #121212 url('#') center center/cover no-repeat;
    font-family: 'Montserrat', sans-serif;
}

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.auth-container {
    width: 100%;
    max-width: 1000px; /* Max width for the split container */
    background-color: rgba(30, 30, 30, 0.75);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.auth-branding {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
}

.auth-branding .brand-icon {
    font-size: 4rem;
    color: #f5c518;
}

.auth-form {
    padding: 2rem;
}

@media (min-width: 992px) {
    .auth-form {
        padding: 3rem;
    }
}

.auth-form .nav-tabs {
    border-bottom: 1px solid #444;
}

.auth-form .nav-tabs .nav-link {
    font-weight: 600;
    padding: 0.75rem 1rem;
    color: #aaa;
    border: none;
    border-bottom: 3px solid transparent;
}

.auth-form .nav-tabs .nav-link.active {
    color: #f5c518;
    background-color: transparent;
    border-bottom-color: #f5c518;
}

.input-group-icon {
    position: relative;
}

.input-group-icon .form-control {
    padding-left: 2.75rem;
}

.input-group-icon .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

/* Old form container for compatibility if needed */
.form-container {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
    margin-top: 5vh;
}



/* --- NEW MODERN AUTH PAGE STYLES --- */


/* REPLACED .brand-icon with .brand-logo */
.auth-branding .brand-logo {
    max-width: 120px; /* You can adjust this size */
    height: auto;
    margin: 0 auto 1.5rem auto; /* Centers the logo */
}