:root {
    --primary-color: #0d6efd;
    --sidebar-width: 250px;
    --header-height: 60px;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Sidebar Styling */
.sidebar {
    height: 100vh;
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    border-right: 1px solid #dee2e6;
    z-index: 1000;
    transition: all 0.3s;
}
[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #dee2e6;
}

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

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: #495057;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background-color: #e9ecef;
    color: var(--primary-color);
    border-right: 4px solid var(--primary-color);
}

.sidebar-menu li a i {
    width: 30px;
    font-size: 1.1rem;
}

/* Main Content Styling */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
    transition: all 0.3s;
}
[dir="rtl"] .main-content {
    margin-left: 0;
    margin-right: var(--sidebar-width);
}

.top-navbar {
    background-color: #fff;
    height: var(--header-height);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 30px;
    border-radius: 5px;
}

/* Cards */
.stat-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Queue Table */
.queue-badge {
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    .sidebar.active {
        margin-left: 0;
    }
    .main-content {
        margin-left: 0;
    }
    .overlay {
        display: none;
        position: fixed;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        top: 0;
        left: 0;
    }
    .overlay.active {
        display: block;
    }
}

.appointment-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.patient-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-color);
}
