/* Modern Dashboard CSS for Manager Panel */
:root {
    --primary-color: #4361ee;
    --secondary-color: #8d99ae;
    --success-color: #2ec4b6;
    --info-color: #4895ef;
    --warning-color: #f8961e;
    --danger-color: #f72585;
    --sidebar-width: 260px;
    --top-nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

body {
    background-color: #f5f7fb;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: #1b2537;
    color: white;
    position: fixed;
    height: 100%;
    overflow-y: auto;
    transition: width 0.3s;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.sidebar-header p {
    font-size: 14px;
    color: #adb5bd;
}

.sidebar-menu {
    list-style: none;
    padding: 15px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.sidebar-menu li a i {
    margin-right: 15px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-menu li.active a,
.sidebar-menu li a:hover {
    background-color: var(--primary-color);
    color: white;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: all 0.3s;
}

.top-nav {
    height: var(--top-nav-height);
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.user-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
}

.dashboard-content {
    padding: 30px;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    transition: all 0.3s;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.card-icon.bg-primary { background-color: var(--primary-color); }
.card-icon.bg-success { background-color: var(--success-color); }
.card-icon.bg-info { background-color: var(--info-color); }
.card-icon.bg-warning { background-color: var(--warning-color); }
.card-icon.bg-secondary { background-color: var(--secondary-color); }

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h3 {
    font-size: 28px;
    font-weight: 700;
}

.card-content p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
}

.card-link {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.chart-header {
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.chart-container {
    position: relative;
    height: 300px;
}

.data-section {
    display: grid;
    gap: 25px;
}

.data-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.data-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.data-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.btn-view-all {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    font-weight: 600;
    font-size: 14px;
    color: #6c757d;
}

.data-table td {
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.success { background-color: rgba(46, 196, 182, 0.1); color: #2ec4b6; }
.status-badge.warning { background-color: rgba(248, 150, 30, 0.1); color: #f8961e; }
.status-badge.info { background-color: rgba(72, 149, 239, 0.1); color: #4895ef; }
.text-primary { color: var(--primary-color) !important; font-weight: 600; }

@media (max-width: 992px) {
    .charts-section,
    .data-cards {
        grid-template-columns: 1fr;
    }
}