/* Variables */
:root {
    --primary-green: #28a745;
    --dark-grey: #343a40;
    --white: #ffffff;
    --light-grey: #f8f9fa;
    --hover-green: #218838;
    --sidebar-width: 70px;
    --sidebar-width-expanded: 240px;
    --topbar-height: 60px;
    --transition-speed: 0.3s;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--light-grey);
    margin: 0;
    padding: 0;
}

.footer {
    margin-top: auto;
}

/* Navbar Styles */
.navbar {
    background-color: var(--light-grey);
    box-shadow: none;
    padding: 0.75rem 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--dark-grey);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary-green);
}

.navbar-dark .navbar-toggler {
    border-color: transparent;
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(40, 167, 69, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item:hover {
    background-color: var(--light-grey);
    color: var(--primary-green);
}

/* Auth Form Styles */
.auth-form {
    max-width: 450px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 0 15px 0 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-form h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--dark-grey);
    font-weight: 600;
    font-size: 1.75rem;
}

.auth-form .form-control {
    border: 1.5px solid #e9ecef;
    padding: 0.75rem;
    border-radius: 0 8px 0 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--light-grey);
}

.auth-form .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.1);
    background-color: var(--white);
}

.auth-form .form-label {
    font-weight: 500;
    color: var(--dark-grey);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.auth-form .btn-primary {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1.25rem;
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    border-radius: 0 8px 0 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form .btn-primary:hover {
    background-color: var(--hover-green);
    border-color: var(--hover-green);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(40, 167, 69, 0.15);
}

.auth-form .form-check {
    margin: 0.75rem 0;
}

.auth-form .form-check-label {
    color: var(--dark-grey);
    font-weight: 400;
    font-size: 0.9rem;
}

.auth-form .form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.auth-form a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.auth-form a:hover {
    color: var(--hover-green);
    text-decoration: underline;
}

.auth-form .invalid-feedback {
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

.auth-form .alert {
    margin-bottom: 1.25rem;
    border-radius: 0 8px 0 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--primary-green);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Dashboard Styles */
.dashboard-header {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    padding: 1.5rem;
    border-radius: 0 15px 0 15px;
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-speed) ease;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-title {
    font-size: 0.9rem;
    color: var(--dark-grey);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-green);
}

.stat-card .stat-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--primary-green);
    opacity: 0.3;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 0 15px 0 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
    border-radius: 0 15px 0 0 !important;
}

.card-body {
    padding: 2.5rem;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
    padding: 1rem 0;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item-action {
    transition: all var(--transition-speed) ease;
}

.list-group-item-action:hover {
    background-color: rgba(40, 167, 69, 0.05);
    transform: translateX(5px);
}

.list-group-item h5 {
    color: var(--dark-grey);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.list-group-item p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.list-group-item small {
    color: #6c757d;
    font-size: 0.85rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

.btn-outline-primary {
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-outline-primary:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

.text-danger {
    color: #dc3545 !important;
}

/* Home Page */
.hero-section {
    background-color: #4b6cb7;
    background-image: linear-gradient(to right, #4b6cb7, #182848);
    color: white;
    padding: 4rem 0;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    height: 100%;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #4b6cb7;
}

/* Profile page */
.profile-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    height: calc(100vh - var(--topbar-height));
    width: var(--sidebar-width);
    background-color: var(--white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: width var(--transition-speed) ease;
    overflow-y: auto;
    overflow-x: hidden;
    /* Custom scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

/* Webkit browsers custom scrollbar (Chrome, Safari, Edge) */
.sidebar::-webkit-scrollbar {
    width: 3px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Show slightly more visible scrollbar on hover for better UX */
.sidebar:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
}

.sidebar.expanded {
    width: var(--sidebar-width-expanded);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nav-item {
    margin: 2px 0;
    position: relative;
}

.bottom-nav {
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 0.5rem;
    width: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--dark-grey);
    text-decoration: none;
    white-space: nowrap;
    transition: all var(--transition-speed) ease;
    border-radius: 0;
    cursor: pointer;
    position: relative;
}

.nav-link:hover {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--primary-green);
    transform: translateX(5px);
}

.nav-link.active {
    background-color: var(--primary-green);
    color: var(--white);
    transform: translateX(5px);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--white);
    border-radius: 0 4px 4px 0;
}

.nav-link.active i {
    color: var(--white);
}

.nav-link i {
    font-size: 1.25rem;
    min-width: 30px;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.nav-link:hover i {
    transform: scale(1.1);
}

.nav-link span {
    margin-left: 10px;
    opacity: 0;
    transition: all var(--transition-speed) ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar.expanded .nav-link span {
    opacity: 1;
}

/* Profile in Sidebar */
.profile-trigger {
    cursor: pointer;
    position: relative;
}

.profile-trigger.active {
    background-color: var(--primary-green);
    color: var(--white);
}

.profile-trigger.active i {
    color: var(--white);
}

.profile-content {
    position: fixed;
    left: var(--sidebar-width);
    bottom: 10px;
    background: var(--white);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: all var(--transition-speed) ease;
    border-radius: 0 8px 8px 0;
    overflow: hidden;
    min-width: 220px;
}

.sidebar.expanded .profile-content {
    left: var(--sidebar-width-expanded);
}

.profile-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.profile-email {
    padding: 12px 20px;
    color: var(--dark-grey);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--light-grey);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: var(--light-grey);
}

.profile-logout {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--dark-grey);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    font-size: 0.95rem;
    background-color: var(--white);
}

.profile-logout:hover {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--primary-green);
}

.profile-logout i {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Top Navbar */
.top-navbar {
    height: var(--topbar-height);
    background-color: var(--white);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--dark-grey);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
    margin-left: 2px;
}

.menu-toggle:hover {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--primary-green);
}

.brand {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    /* margin-left: 20px; */
    text-decoration: none;
}

.brand i {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-right: 10px;
}

.brand span {
    color: var(--dark-grey);
    font-weight: 600;
    font-size: 1.25rem;
}

/* User Menu */
.user-menu {
    margin-left: auto;
    position: relative;
}

.user-menu-trigger {
    background: none;
    border: none;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-grey);
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
}

.user-menu-trigger:hover {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--primary-green);
}

.user-menu-trigger i {
    font-size: 1.25rem;
}

.user-menu-trigger span {
    font-size: 0.95rem;
}

.user-menu-content {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed) ease;
}

.user-menu.active .user-menu-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-email {
    padding: 8px 15px;
    color: var(--dark-grey);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--light-grey);
    margin-bottom: 8px;
}

.user-menu-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: var(--dark-grey);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    font-size: 0.95rem;
}

.user-menu-item:hover {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--primary-green);
}

.user-menu-item i {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding-top: var(--topbar-height);
    transition: margin-left var(--transition-speed) ease;
}

.sidebar.expanded + .main-content {
    margin-left: var(--sidebar-width-expanded);
}

.content-wrapper {
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.expanded {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-navbar {
        left: 0;
    }
    
    .sidebar.expanded + .main-content {
        margin-left: 0;
    }

    .profile-content {
        position: absolute;
        left: 100%;
        bottom: 0;
        transform: translateX(-20px);
    }

    .sidebar.expanded .profile-content {
        left: 100%;
    }
} 
