:root {
    --sidebar-width: 250px;
    --primary-color: #4e5e9d; /* Mautic-like purple/blue */
    --sidebar-bg: #2b333c;
    --sidebar-text: #b8c7ce;
    --sidebar-hover: #1e242b;
    --bg-light: #f4f7f6;
    --text-dark: #333;
    --white: #ffffff;
    --border-color: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    height: 100%;
    z-index: 1000;
    transition: all 0.3s;
}

.sidebar-header {
    padding: 20px;
    background: #1e242b;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    color: var(--white);
    border-bottom: 1px solid #3c4b5a;
}

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

.sidebar-menu li {
    padding: 12px 20px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    font-size: 14px;
}

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

.sidebar-menu li:hover, .sidebar-menu li.active {
    background-color: var(--sidebar-hover);
    color: var(--white);
    border-left: 4px solid var(--primary-color);
    padding-left: 16px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
    width: calc(100% - var(--sidebar-width));
}

.header {
    background: var(--white);
    padding: 15px 30px;
    margin: -20px -20px 20px -20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.page-title {
    font-size: 20px;
    font-weight: 600;
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.card-title {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: bold;
}

.card-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Charts */
.chart-container {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px;
    background: #f8f9fa;
    border-bottom: 2px solid var(--border-color);
    font-size: 13px;
    color: #666;
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .sidebar.active {
        margin-left: 0;
    }
}
