
/* General styling */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-bottom: 60px; /* Space for footer */
}

.footer {
    position: relative;
    margin-top: auto;
}

/* Sidebar styling */
.sidebar {
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    min-height: calc(100vh - 56px);
}

@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 56px;
        bottom: 0;
        left: 0;
        z-index: 100;
        padding: 0;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
    }
}

.sidebar .nav-link {
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    margin: 0.2rem 0;
}

.sidebar .nav-link:hover {
    background-color: rgba(0, 0, 0, .05);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: #0d6efd;
}

.sidebar .nav-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

/* Card styling */
.card {
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
    transform: translateY(-5px);
}

.card-header {
    background-color: rgba(0, 0, 0, .03);
    font-weight: 500;
}

/* Dashboard widgets */
.stat-card {
    border-left: 4px solid;
}

.stat-card.primary {
    border-color: #0d6efd;
}

.stat-card.success {
    border-color: #198754;
}

.stat-card.warning {
    border-color: #ffc107;
}

.stat-card.danger {
    border-color: #dc3545;
}

.stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

/* Table styling */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.table .actions {
    width: 150px;
    text-align: right;
}

/* Status badges */
.badge.status-draft {
    background-color: #6c757d;
}

.badge.status-pending {
    background-color: #fd7e14;
}

.badge.status-in-progress {
    background-color: #0dcaf0;
}

.badge.status-completed {
    background-color: #198754;
}

.badge.status-cancelled {
    background-color: #dc3545;
}

.badge.status-on-hold {
    background-color: #6610f2;
}

/* Form styling */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.required-field label:after {
    content: " *";
    color: #dc3545;
}

/* Login page */
.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 3rem;
    color: #0d6efd;
}

/* Direction for Arabic support */
.rtl {
    direction: rtl;
    text-align: right;
}

/* Print styles */
@media print {
    .sidebar, .navbar, .footer, .page-actions {
        display: none !important;
    }
    
    main {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .table {
        width: 100% !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    .no-print {
        display: none !important;
    }
}
.chart-container {
    position: relative;
    height: 250px; /* ارتفاع محدد */
    width: 100%;
}

canvas {
    max-height: 250px;
    max-width: 100%;
}