* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #ffffff;
}

/* LAYOUT */
.layout {
    display: flex;
    height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 250px;
    background-color: #1f2937; /* bleu nuit */
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.logo {
    padding: 0 20px 30px 20px;
}

.logo h2 {
    font-size: 20px;
}

.logo span {
    font-size: 14px;
    color: #9ca3af;
}

.menu {
    display: flex;
    flex-direction: column;
}

.menu-item {
    padding: 14px 20px;
    text-decoration: none;
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s ease;
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.menu-item:hover {
    background-color: #374151;
}

.menu-item.active {
    background-color: #2563eb;
    color: #fff;
}

.menu-divider {
    height: 1px;
    background-color: #374151;
    margin: 15px 0;
}

.logout {
    margin-top: auto;
}

/* MAIN */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.header {
    background-color: #ffffff;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    border-bottom: 1px solid #e5e7eb;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* NOTIFICATION */
.notification {
    position: relative;
    font-size: 18px;
    cursor: pointer;
}

.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: red;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* USER */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 35px;
    height: 35px;
    background-color: #2563eb;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info small {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

/* CONTENT */
.content {
    padding: 30px;
    overflow-y: auto;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.big-number {
    font-size: 22px;
    margin-top: 10px;
    font-weight: bold;
}

.success {
    color: #16a34a;
}

.danger {
    color: #dc2626;
}

/* TABLE */
.table-section {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background-color: #f9fafb;
    font-weight: 600;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status.credit {
    background-color: #fef3c7;
    color: #92400e;
}

.status.paid {
    background-color: #d1fae5;
    color: #065f46;
}
