/* Main Styles for Admin Dashboard */
:root {
     --sidebar-width: 250px;
    --header-height: 70px;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gold-color: #d4af37;
    --blue-color: #1a4b8c;
    --transition-speed: 0.3s;
}

/* Font settings */
body {
    font-family: 'Poppins', 'Cairo', sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* Arabic text styling */
.arabic {
    font-family: 'Cairo', sans-serif;
}

/* Wrapper and Layout */
.wrapper {
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    min-width: 250px;
    max-width: 250px;
    min-height: 100vh;
    transition: all var(--transition-speed);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sidebar.collapsed {
    margin-left: -250px;
}

.content-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* Sidebar styling */
.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link {
    padding: 10px 15px;
    border-radius: 5px;
    transition: all var(--transition-speed);
}

.sidebar .nav-link:hover, 
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

/* Card styling */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Summary cards */
.summary-card {
    border-left: 4px solid var(--primary-color);
}

.summary-card.visa {
    border-left-color: var(--blue-color);
}

.summary-card.telegram {
    border-left-color: var(--gold-color);
}

.summary-card.pending {
    border-left-color: var(--warning-color);
}

.summary-card.printed {
    border-left-color: var(--success-color);
}

.summary-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Table styling */
.table-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Form styling */
.form-control, .form-select {
    border-radius: 5px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Button styling */
.btn {
    border-radius: 5px;
    padding: 8px 16px;
    transition: all var(--transition-speed);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* RTL Support */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .sidebar {
    right: 0;
}

.rtl .me-2, .rtl .me-3 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

.rtl .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
        position: fixed;
        height: 100%;
    }
    
    .sidebar.active {
        margin-left: 0;
    }
    
    .content-wrapper {
        width: 100%;
    }
}

/* Login page styling */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-color) 0%, var(--primary-color) 100%);
}

.login-card {
    width: 400px;
    max-width: 90%;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-header {
    background-color: var(--light-color);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.login-body {
    padding: 30px;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.toast {
    min-width: 250px;
}

/* Modal styling */
.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}




.table-container{
    max-height: 20rem;overflow: auto;
}