/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #f8f9fa;
    --sidebar-bg: #212529;
    --text-main: #495057;
    --text-dark: #212529;
    --text-accent: #ff8c00;
    --card-bg: #ffffff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    overflow-x: hidden;
    margin: 0;
}

/* Layout */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: var(--sidebar-bg);
    color: #fff;
    transition: all 0.3s;
    position: fixed;
    height: 100%;
    z-index: 1000;
}

#sidebar .sidebar-header {
    padding: 25px 20px;
    background: rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.brand-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-link {
    padding: 15px 25px;
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-left-color: var(--text-accent);
    padding-left: 30px;
}

/* Content Wrapper */
#content-wrapper {
    width: 100%;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
}

/* Topbar */
.topbar {
    height: 70px;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    padding: 0 30px;
    justify-content: space-between;
    margin-bottom: 30px;
}

.main-content {
    padding: 0 30px 30px 30px;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--card-bg);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.card-body {
    padding: 1.5rem;
}

/* Typography & Elements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
}

.text-accent {
    color: var(--text-accent) !important;
}

.btn-warning {
    background-color: var(--text-accent);
    border-color: var(--text-accent);
    color: #fff;
    font-weight: 500;
}

.btn-warning:hover {
    background-color: #e67e00;
    border-color: #e67e00;
    color: #fff;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    #sidebar { margin-left: -250px; }
    #sidebar.active { margin-left: 0; }
    #content-wrapper { margin-left: 0; }
}
