:root {
    --primary: #FDE047; /* Yellowish brand accent Mailchimp style / Monkey style */
    --primary-dark: #EAB308;
    --primary-text: #1E293B;
    
    --bg-dark: #FFE566;
    --sidebar-bg: #FDFBF7; /* Mailchimp soft yellow/vanilla */
    --sidebar-text: #241C15;
    
    --app-bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --border: #DBD9D2;
    --text-main: #241C15;
    --text-muted: #5C584C;
    
    --success: #22c55e;
    --danger: #ef4444;

    --radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--app-bg);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Layout */
.app-layout {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    transition: all 0.3s ease;
}

.brand {
    padding: 24px;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-icon {
    color: var(--primary-dark);
}

.side-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    gap: 4px;
}

.side-nav a {
    text-decoration: none;
    color: var(--sidebar-text);
    padding: 12px 16px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.side-nav a:hover {
    background-color: rgba(0,0,0,0.04);
}

.side-nav a.active {
    background-color: var(--primary);
    color: var(--primary-text);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-text);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--app-bg);
    overflow-y: auto;
}

.top-header {
    background: var(--card-bg);
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.top-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.content-wrapper {
    padding: 40px;
    max-width: 1200px;
}

/* UI Elements */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.slate-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px; /* Mailchimp style rounded buttons */
    border: 1px solid transparent;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-text);
    border-color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text-main);
}
.btn-outline:hover {
    background-color: #f1f5f9;
}

.btn-icon {
    padding: 8px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
}
.btn-icon:hover {
    background: #f1f5f9;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}
.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 2px rgba(253, 224, 71, 0.4);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.table th {
    background-color: #fdfdfc;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.table tbody tr:hover {
    background-color: #fafafa;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-content h4 {
    margin: 0 0 4px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}
.stat-content .stat-val {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}
