/**
 * Main Stylesheet
 * Al-Ababil Travels Hajj & Umrah Online Ticket Maker
 */

/* Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

/* For Arabic language */
body[lang="ar"] {
    font-family: 'Segoe UI', 'Cairo', 'Tajawal', sans-serif;
}

/* Header */
.navbar-brand img {
    max-height: 40px;
}

/* Main Content */
main {
    min-height: calc(100vh - 180px);
    padding-bottom: 40px;
}

/* Forms */
.form-label.required::after {
    content: ' *';
    color: red;
}

.form-group {
    margin-bottom: 1rem;
}

/* Cards */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.card-header {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    font-weight: 500;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Buttons */
.btn {
    border-radius: 0.25rem;
    font-weight: 500;
}

.btn-group-sm > .btn, .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    border-top: 1px solid #e5e5e5;
    padding: 1.5rem 0;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    body {
        font-size: 12pt;
    }
}

/* QR Code Container */
.qr-code-container {
    padding: 10px;
    background-color: #fff;
    display: inline-block;
    border-radius: 5px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 12px;
    font-weight: 700;
    border-radius: 0.25rem;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.status-badge.pending {
    background-color: var(--warning-color);
    color: #212529;
}

.status-badge.confirmed {
    background-color: var(--success-color);
    color: #fff;
}

.status-badge.completed {
    background-color: var(--primary-color);
    color: #fff;
}

.status-badge.cancelled {
    background-color: var(--danger-color);
    color: #fff;
}

/* RTL specific styles */
.rtl-mode {
    text-align: right;
}

.rtl-mode .dropdown-menu {
    text-align: right;
}

.rtl-mode .ms-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

.rtl-mode .me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .table-responsive table {
        min-width: 800px;
    }
    
    .card-actions-inline {
        display: flex;
        flex-direction: column;
    }
    
    .card-actions-inline .btn {
        margin-bottom: 0.5rem;
    }
}