body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    background-color: #f8f9fa;
    font-size: 14px;
}

.sidebar {
    height: 100vh;
    overflow-y: auto;
    border-left: 1px solid #dee2e6;
    box-shadow: -2px 0 5px rgba(0,0,0,0.05);
    background-color: #ffffff;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s;
    border-radius: 0;
    font-size: 14px;
}

.sidebar .nav-link.active {
    color: #0d6efd;
    background-color: #e7f1ff;
    border-right: 3px solid #0d6efd;
}

.sidebar .nav-link:hover {
    color: #0d6efd;
    background-color: #f1f3f5;
}

.sidebar .nav-link i {
    margin-left: 0.5rem;
    font-size: 16px;
}

.sidebar-heading {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar {
    z-index: 1030;
}

.card {
    border-radius: 10px;
}

.card-header {
    border-bottom: 1px solid #f0f0f0;
}

.btn {
    border-radius: 6px;
}

.badge {
    font-weight: 500;
    padding: 0.4em 0.6em;
}

.table th {
    font-weight: 600;
    font-size: 13px;
}

.table td {
    font-size: 14px;
    vertical-align: middle;
}

.form-label {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 6px;
    font-size: 14px;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.avatar {
    font-size: 2rem;
}

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 250px;
        z-index: 100;
    }
    
    main {
        margin-right: 250px;
    }
}

@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 56px;
        right: -250px;
        width: 250px;
        height: calc(100vh - 56px);
        transition: right 0.3s ease;
        z-index: 1020;
        background-color: #ffffff;
    }
    
    .sidebar.show {
        right: 0;
    }
    
    main {
        margin-top: 56px;
        padding: 1rem !important;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .btn-group {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
}

@media print {
    .sidebar, .navbar, .btn, .btn-group {
        display: none !important;
    }
    
    main {
        margin-right: 0 !important;
    }
}