/* 🌟 Global Styles */
body {
    font-family: 'Cairo', Arial, sans-serif;
    margin: 0;
    padding: 0;
    direction: ltr; /* Default */
    text-align: left; /* Default */
    background: #f8f9fa;
}

/* 🌟 RTL Support (for Arabic) */
[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* 🌟 Wrapper: Flex Layout for Sidebar & Content */
.wrapper {
    display: flex;
    min-height: 100vh;
}

nav svg {
    height: 20px;
}
nav .hidden {
    display: block !important;
}

i{
    padding-right: 10px;
}

.sclist {
    list-style: none;
}
.sclist li {
    line-height: 33px;
    border-bottom: 1px solid #ccc;
}
.slink {
    font-size: 16px;
    margin-left: 12px;
}
/* 🌟 Sidebar */
.sidebar {
    width: 250px;
    background: #343a40;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: width 0.3s ease-in-out;
}

/* Sidebar Logo */
.sidebar .logo {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar .logo img {
    max-width: 80%;
    height: auto;
}

/* 🌟 Sidebar Navigation */
.sidebar nav {
    flex: 1;
    padding: 10px 0;
}

.sidebar nav li {
list-style-type: none;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s;
}

.sidebar nav a i {
    margin-right: 10px; /* Space between icon and text */
}

/* RTL adjustments */
[dir="rtl"] .sidebar nav a i {
    margin-right: 0;
    margin-left: 10px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background-color: #bb2d3b;
    color: #ffffff;
}

/* 🌟 Sidebar Footer */
.sidebar .sidebar-footer {
    padding: 12px 20px;
    text-align: center;
    font-size: 0.9rem;
    background-color: #343a40;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 🌟 Language Switcher */
.language-switcher {
    padding: 10px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.language-switcher a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 8px;
    font-weight: bold;
}

/* 🌟 Navbar */
.navbar {
    background-color: #343a40;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    z-index: 1000;
}

/* 🌟 Main Content */
.content {
    flex: 1;
    padding: 20px;
    background: #ffffff;
}

/* 🌟 Buttons */
.btn {
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 5px;
}

/* 🌟 Tables */
.table {
    border-radius: 5px;
    overflow: hidden;
}
.table th {
    background: #343a40;
    color: white;
}

/* 🌟 Print Styling */
@media print {
    .d-print-none, .sidebar, .navbar {
        display: none !important;
    }
    .content {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}

/* 🌟 Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    .sidebar nav a {
        font-size: 14px;
        padding: 10px 15px;
    }
}
