/* Base styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --background-color: #f8f9fa;
    --text-color: #f3eeee;
    --sidebar-width: 250px;
    --navbar-height: 60px;
    --solde-positive: #28a745;
    --solde-negative: #dc3545;
}

.text-muted {
    --bs-text-opacity: 1;
    color: var(--text-color) !important;
}

.text-success {
    color: var(--solde-positive) !important;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--navbar-height);
    background-color: var(--primary-color);
    color: white;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    padding: 10px 0;
}

.navbar-menu {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 40px;
}

/* Notification widget styles */
.notification-widget {
    position: relative;
    margin-right: 1rem;
}

.notification-icon {
    color: white;
    font-size: 1.2rem;
    position: relative;
    border: none;
    background: none;
    padding: 0.5rem;
}

.notification-icon:hover {
    color: #f0f0f0;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    min-width: 18px;
    text-align: center;
    font-weight: bold;
}

.notification-dropdown {
    min-width: 350px;
    max-height: 400px;
    overflow-y: auto;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    margin-top: 0.5rem;
}

.notification-dropdown .dropdown-header {
    background: #f8f9fa;
    font-weight: bold;
    padding: 1rem;
    border-radius: 12px 12px 0 0;
}

.notification-dropdown .dropdown-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem;
    transition: background-color 0.2s ease;
}

.notification-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.notification-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

.notification-dropdown .dropdown-item.unread {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-left: 3px solid #007bff;
}

.notification-item .notification-content strong {
    color: #333;
    font-size: 0.9rem;
}

.notification-item .notification-content p {
    color: #666;
    font-size: 0.8rem;
    margin: 0.25rem 0;
}

.notification-item .notification-content small {
    color: #999;
    font-size: 0.7rem;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.navbar-menu a:hover {
    opacity: 0.8;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    left: 0;
    top: var(--navbar-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--navbar-height));
    background-color: var(--secondary-color);
    color: white;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 900;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: background-color 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
}

.sidebar-menu a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.sidebar-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Main content */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--navbar-height);
    padding: 20px;
    min-height: calc(100vh - var(--navbar-height));
}

/* Utility classes */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}
