/* Dashboard Styles */

@font-face {
    font-family: 'NotoKufiArabic';
    src: url('../fonts/NotoKufiArabic.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

html[lang="ar"],
html[lang="ku"],
[dir="rtl"] {
    font-family: 'NotoKufiArabic', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

html[lang="ar"] body,
html[lang="ku"] body,
[dir="rtl"] body {
    font-family: 'NotoKufiArabic', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

html[lang="ar"] :not(.fa):not(.fas):not(.far),
html[lang="ku"] :not(.fa):not(.fas):not(.far),
[dir="rtl"] :not(.fa):not(.fas):not(.far) {
    font-family: 'NotoKufiArabic', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.sidebar {
    width: 250px;
    background-color: #7C2D12;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-item {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid #650933;
    transition: background-color 0.3s;
    font-size: 14px;
}

.sidebar-item:hover {
    background-color: #650932bd;
    color: #ffffff;
    text-decoration: none;
}

.sidebar-item.active {
    background-color: #650933;
    color: #ffffff;
}

.sidebar-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.dashboard-content {
    flex: 1;
    background-color: #ffffff;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #fff3cd;
    border-bottom: 1px solid #ffeaa7;
    border-radius: 8px 8px 0 0;
}

.main-content-area {
    padding: 40px 30px;
    min-height: 500px;
}

.btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

.btn-outline-dark {
    border-color: #343a40;
    color: #343a40;
}

.btn-outline-dark:hover {
    background-color: #343a40;
    color: white;
}

.dropdown-menu {
    border: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item.active {
    background-color: #007bff;
    color: white;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.active:hover {
    background-color: #0056b3;
}

/* Lecturer Dashboard Specific Styles */
.lecturer-dashboard .info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.lecturer-dashboard .info-table th {
    background-color: #27ae60;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 16px;
}

.lecturer-dashboard .info-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.lecturer-dashboard .info-table td:first-child {
    background-color: #ecf0f1;
    font-weight: bold;
    width: 30%;
}

.lecturer-dashboard .info-table td:last-child {
    background-color: white;
}

/* Top Admin Dashboard Specific Styles */
.top-admin-dashboard .top-admin-main-page {
    background-color: #27ae60;
    color: white;
    padding: 60px 40px;
    text-align: center;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    margin: 40px 0;
}

/* RTL Support */
.rtl .dashboard-container {
    flex-direction: row-reverse;
}

.rtl .sidebar {
    margin-left: 20px;
    margin-right: 0;
}

.rtl .dashboard-content {
    margin-right: 20px;
    margin-left: 0;
}

.rtl .sidebar-item {
    text-align: right;
}

.rtl .sidebar-item i {
    margin-left: 10px;
    margin-right: 0;
}

.rtl .dashboard-header {
    flex-direction: row-reverse;
}

/* Sidebar Toggle Styles */
.sidebar-wrapper {
    position: relative;
    transition: all 0.3s ease;
}

.sidebar-toggle-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 1000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #7C2D12;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sidebar-toggle-btn:hover {
    background-color: #5a2009;
    transform: scale(1.1);
}

.sidebar-toggle-btn i {
    font-size: 14px;
}

.sidebar-wrapper .sidebar,
.sidebar-wrapper .mr-10 {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease, width 0.6s ease;
}

.sidebar-wrapper.collapsed .sidebar,
.sidebar-wrapper.collapsed .mr-10 {
    opacity: 0;
    transform: translateX(-100%);
    width: 0 !important;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.6s ease, width 0.8s ease;
}

.sidebar-wrapper.collapsed .sidebar-toggle-btn {
    top: 10px;
    left: 10px;
    right: auto;
    z-index: 1001;
}

.sidebar-wrapper .sidebar-text {
    transition: opacity 0.3s ease;
}

.sidebar-wrapper.collapsed .sidebar-text {
    opacity: 0;
}

/* RTL Support for Toggle */
.rtl .sidebar-wrapper.collapsed .sidebar-toggle-btn {
    left: auto;
    right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin: 0;
    }

    .dashboard-content {
        margin: 10px;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .sidebar-wrapper.collapsed .sidebar,
    .sidebar-wrapper.collapsed .mr-10 {
        display: none !important;
    }

    .sidebar-toggle-btn {
        position: fixed;
        top: 70px;
        left: 10px;
        right: auto;
        z-index: 1001;
    }

    .sidebar-wrapper.collapsed .sidebar-toggle-btn {
        position: fixed;
        top: 70px;
        left: 10px;
        right: auto;
        z-index: 1001;
    }

    .rtl .sidebar-toggle-btn {
        left: auto;
        right: 10px;
    }

    .rtl .sidebar-wrapper.collapsed .sidebar-toggle-btn {
        left: auto;
        right: 10px;
    }
}