/* Main Layout */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    min-height: 100vh;
    transition: all 0.3s;
}

#sidebar.active {
    margin-right: -250px;
}

#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

/* Sidebar Styling */
#sidebar .sidebar-header {
    padding: 20px;
    background: #343a40;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 10px 20px;
    font-size: 1.1em;
    display: block;
    color: #fff;
    text-decoration: none;
}

#sidebar ul li a:hover {
    background: #495057;
}

#sidebar ul li a i {
    margin-left: 10px;
}

/* Content Area */
.content-area {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

/* Card Styling */
.dashboard-card {
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

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

/* Form Styling */
.form-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Table Styling */
.table-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    #sidebar {
        margin-right: -250px;
    }
    #sidebar.active {
        margin-right: 0;
    }
    #content {
        padding: 10px;
    }
}

/* RTL Specific Styles */
body {
    direction: rtl;
    text-align: right;
}

.navbar-nav {
    padding-right: 0;
}

.mr-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Custom Button Styles */
.btn-custom {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
}

.btn-custom:hover {
    background-color: #218838;
    color: white;
}

/* Alert Styling */
.alert {
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Print Styles */
@media print {
    #sidebar, .navbar {
        display: none;
    }
    #content {
        margin: 0;
        padding: 0;
    }
    .no-print {
        display: none;
    }
}
