@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #333;
}

/* Glassmorphism Card */
.login-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
    font-size: 2rem;
}

.form-floating>label {
    color: #6c757d;
}

.btn-primary {
    background: var(--primary-color, linear-gradient(to right, #667eea, #764ba2));
    border: none;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
    filter: brightness(110%);
}

.alert-danger {
    border-radius: 10px;
    font-size: 0.9rem;
}

/* Dashboard Specific */
.dashboard-body {
    background: #f4f6f9;
    align-items: stretch;
    /* Stretch to full height */
    height: 100vh;
    overflow: hidden;
    /* Prevent body scroll, handle inside content */
    flex-direction: row;
    /* Horizontal layout */
}

.dashboard-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #2c3e50 0%, #000000 100%);
    color: #ecf0f1;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: #764ba2;
}

.sidebar-menu a i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    overflow-y: auto;
    /* Scrollable content */
    display: flex;
    flex-direction: column;
    background: #f4f6f9;
}

/* Navbar tweaks for inside main-content */
.dashboard-navbar {
    background: white !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 15px 30px;
}

.dashboard-navbar .navbar-brand {
    color: #333 !important;
    display: none;
    /* Hide brand here as it's in sidebar */
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.profile-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.profile-img {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #764ba2;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.profile-body {
    padding: 30px;
}