:root {
    --sidebar-width: 270px;

    /* Fustat / EduWay Palette */
    --color-dark: #222222;
    --color-purple: #a28ef9;
    --color-green: #a4f5a6;
    --color-white: #ffffff;
    --color-bg: #F5F7FA;
    /* Cool Gray Background for separation */
    --text-primary: #1f1f1f;
    --text-secondary: #777;

    --border-radius-lg: 30px;
    --border-radius-md: 20px;
    --border-radius-sm: 10px;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--color-white);
    /* Solid White */
    padding: 24px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    border-top-right-radius: 40px;
    /* Large rounded corner as per image */
    border-bottom-right-radius: 40px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.02);
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
    padding-left: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 12px;
    border-radius: 20px;
    /* Pill shape */
    transition: all 0.2s ease;
    font-size: 1rem;
}

.nav-link:hover {
    background-color: #f8f9fa;
    color: var(--color-dark);
}

.nav-link.active {
    background-color: var(--color-dark);
    /* Black Active Background */
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.nav-link i {
    width: 24px;
    margin-right: 14px;
    font-size: 1.1rem;
}

/* Content */
.content {
    margin-left: var(--sidebar-width);
    padding: 30px 50px;
    width: calc(100% - var(--sidebar-width));
}

/* Cards */
.card {
    background: var(--color-white);
    border: none;
    border-radius: 30px;
    /* More rounded */
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
}

/* Colored Cards */
.card-purple {
    background-color: var(--color-purple);
    color: white;
}

.card-green {
    background-color: var(--color-green);
    color: var(--color-dark);
}

/* Buttons */
.btn-primary {
    background-color: var(--color-dark);
    border-color: var(--color-dark);
    color: white;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #000;
    border-color: #000;
}

/* Table - Card Row Style */
.table-card-rows {
    border-collapse: separate;
    border-spacing: 0 15px;
    /* Creates space between rows */
}

.table-card-rows thead th {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
    border: none;
    padding: 0 32px;
    /* Align with cell padding */
    text-transform: capitalize;
}

.table-card-rows tbody tr {
    background-color: var(--color-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
    transition: transform 0.2s;
    border-radius: 30px;
}

.table-card-rows tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.table-card-rows tbody td {
    padding: 24px 32px;
    /* More padding for that thick card look */
    vertical-align: middle;
    border: none;
    background-color: var(--color-white);
}

/* Round corners for the first and last cells of the row */
.table-card-rows tbody td:first-child {
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.table-card-rows tbody td:last-child {
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
}

.table-row-card {
    /* Deprecated in favor of the full table class above */
}

.table-responsive {
    background: transparent;
}

.card .table-responsive {
    background: transparent;
}

/* Override default card padding if table is inside */
.card:has(.table-card-rows) {
    background: transparent;
    box-shadow: none;
    padding: 0;
}


/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.search-bar {
    background: var(--color-white);
    border-radius: 50px;
    padding: 12px 24px;
    border: none;
    width: 350px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Badge */
.badge-pill {
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
}

.badge-purple {
    background: #e0d9fc;
    color: #5b42f3;
}

.badge-green {
    background: #e3fce4;
    color: #2ecc71;
}

@media (max-width: 768px) {
    .sidebar {
        margin-left: -270px;
    }

    .sidebar.active {
        margin-left: 0;
    }

    .content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }
}