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

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #333;
}

/* MAIN WRAPPER FIX */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 250px;
    background: #1e1e2d;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100%;
    top: 0;
    left: 0;
}

.sidebar h2 {
    color: #fff;
    font-size: 22px;
    text-align: center;
    margin-bottom: 20px;
}

.sidebar a {
    color: #cfcfd9;
    text-decoration: none;
    padding: 14px 20px;
    display: block;
    transition: 0.2s ease;
    font-size: 15px;
}

.sidebar a:hover,
.sidebar a.active {
    background: #2e2e42;
    color: #fff;
}

/* CONTENT AREA */
.admin-content {
    margin-left: 250px;
    padding: 30px;
    width: calc(100% - 250px);
}

/* HEADER FIX (We will remove the old header later) */
.admin-header {
    display: none;
}

/* DASHBOARD TITLE */
.dashboard-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 25px;
}

/* GRID FOR CARDS */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* CARDS */
.dashboard-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 3px 8px rgba(0,0,0,0.06);
    transition: 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
}

.dashboard-card h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
}

.dashboard-card p {
    font-size: 22px;
    font-weight: bold;
    color: #4a4a58;
}

/* FOOTER */
.admin-footer {
    margin-left: 250px;
    padding: 20px;
    text-align: center;
    background: #f0f0f8;
    margin-top: 40px;
}

/* RESPONSIVENESS */
@media screen and (max-width: 820px) {
    .sidebar {
        width: 200px;
    }
    .admin-content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }
}

@media screen and (max-width: 600px) {
    .sidebar {
        display: none;
    }
    .admin-content {
        margin-left: 0;
        width: 100%;
    }
}
/* TOPBAR */
.topbar {
    position: fixed;
    left: 250px;
    right: 0;
    top: 0;
    height: 60px;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 10;
}

.topbar-title {
    font-size: 20px;
    font-weight: bold;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-icon {
    font-size: 22px;
    cursor: pointer;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
  
.dashboard-container {
    margin-top: 80px; /* لإبعاد المحتوى تحت التوب بار */
}
/* QUICK ACTIONS BAR */
.quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    margin-top: 10px;
}

.qa-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s ease;
}

/* VARIANTS */
.qa-primary {
    background: #4e73df;
    color: #fff;
}
.qa-primary:hover {
    background: #3c5ac0;
}

.qa-secondary {
    background: #1cc88a;
    color: white;
}
.qa-secondary:hover {
    background: #17a673;
}

.qa-light {
    background: #f8f9fc;
    color: #4e4e5a;
    border: 1px solid #dcdce6;
}
.qa-light:hover {
    background: #e9ebf5;
}

.qa-warning {
    background: #f6c23e;
    color: white;
}
.qa-warning:hover {
    background: #d4a12d;
}
/* CARDS IMPROVED */
.dashboard-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 6px 16px rgba(0,0,0,0.08);
}

.dashboard-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
}

.dashboard-card p {
    font-size: 26px;
    font-weight: bold;
    color: #2b2b35;
}
.dashboard-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c2c35;
}

.dashboard-container {
    margin-top: 80px; /* already used for spacing under topbar */
}
/* Slight polish */
.topbar {
    background: #ffffff;
    border-bottom: 1px solid #e8e8ef;
}

.topbar-title {
    font-size: 21px;
    font-weight: 700;
}

.topbar-icon:hover {
    opacity: 0.7;
}
/* LANGUAGE SWITCHER BUTTON */
.lang-switch-btn {
    display: inline-block;
    padding: 7px 14px;
    background: #4e73df;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.lang-switch-btn:hover {
    background: #3d5cc4;
}
