/* Online Yanoor Tour & Travels System - Islamic Theme CSS */

/* Color Variables */
:root {
    --primary-green: #198754;
    --dark-green: #0d6e3f;
    --light-green: #d1e7dd;
    --gold: #d4af37;
    --dark-gold: #b8960c;
    --light-gold: #fff3cd;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #d4af37 !important;
}

/* Hero Section */
.hero-section {
    position: relative;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.package-card {
    border-radius: 15px;
    overflow: hidden;
}

.package-card img {
    transition: transform 0.3s ease;
}

.package-card:hover img {
    transform: scale(1.05);
}

/* Buttons */
.btn-success {
    background: linear-gradient(135deg, #198754 0%, #0d6e3f 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #0d6e3f 0%, #198754 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #d4af37 0%, #b8960c 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #b8960c 0%, #d4af37 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    color: white;
}

/* Badges */
.badge {
    padding: 0.5em 1em;
    font-weight: 600;
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    border-bottom: 2px solid #198754;
    font-weight: 700;
    color: #198754;
    background-color: #f8f9fa;
}

.table tbody tr:hover {
    background-color: #d1e7dd !important;
}

/* Alerts */
.alert-success {
    background-color: #d1e7dd;
    border-color: #198754;
    color: #0d6e3f;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #d4af37;
    color: #b8960c;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.form-label {
    color: #495057;
}

/* Modals */
.modal-header {
    border-radius: 0;
}

.modal-header.bg-success,
.modal-header.bg-primary {
    border-bottom: none;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 60vh !important;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #198754;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d6e3f;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #198754;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Table Row Highlighting */
.table-success {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

/* Notification Badge Pulse */
.badge.bg-danger {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Card Body Text */
.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Icon Styling */
.text-success {
    color: #198754 !important;
}

/* Shadow Classes */
.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Border Colors */
.border-success {
    border-color: #198754 !important;
}

/* Islamic Pattern Background (optional) */
.islamic-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23198754' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Custom Checkbox */
.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

/* Profile Image */
.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid #198754;
    object-fit: cover;
}

/* Status Indicator */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-pending {
    background-color: #ffc107;
}

.status-approved {
    background-color: #198754;
}

.status-rejected {
    background-color: #dc3545;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
}

/* ========================================
   FULLY RESPONSIVE STYLES
   ======================================== */

/* Mobile First Base Styles */
:root {
    --sidebar-width: 250px;
    --header-height: 60px;
}

/* General Mobile Responsive */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    h1, .h1 { font-size: 1.75rem; }
    h2, .h2 { font-size: 1.5rem; }
    h3, .h3 { font-size: 1.25rem; }
    h4, .h4 { font-size: 1.1rem; }
    h5, .h5 { font-size: 1rem; }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .btn-sm {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .form-control, .form-select {
        font-size: 14px;
        padding: 8px 10px;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th, .table td {
        padding: 8px 4px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 12px;
    }
}

/* Admin Sidebar - Mobile */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        overflow-y: auto;
        transition: left 0.3s ease;
        z-index: 1050;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .sidebar-mobile-toggle {
        display: block !important;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1060;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 70px 10px 20px 10px !important;
    }
    
    body.sidebar-open .main-content {
        margin-left: 0;
    }
    
    .sidebar .nav-link {
        padding: 12px 15px;
    }
    
    .sidebar .text-center {
        padding: 15px 0;
    }
}

@media (min-width: 769px) {
    .sidebar-mobile-toggle {
        display: none !important;
    }
    
    .sidebar {
        left: 0 !important;
    }
}

/* Admin Content Responsive */
@media (max-width: 768px) {
    .admin-content {
        margin-left: 0;
        padding: 20px;
        padding-top: 70px;
    }
    
    .admin-card {
        margin-bottom: 15px;
    }
    
    .stat-cards .col-md-3,
    .stat-cards .col-md-4,
    .stat-cards .col-md-6 {
        margin-bottom: 15px;
    }
    
    .table-responsive {
        font-size: 12px;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 6px 4px;
        font-size: 11px;
    }
    
    .btn-group-actions {
        display: flex;
        gap: 5px;
    }
    
    .btn-group-actions .btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Navbar Mobile */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #198754;
        padding: 15px;
        margin-top: 10px;
        border-radius: 10px;
    }
    
    .navbar .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-section {
        height: auto !important;
        min-height: 50vh;
        padding: 100px 0 50px 0;
    }
}

/* Grid Mobile */
@media (max-width: 576px) {
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .row > .col,
    .row > [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
        margin-bottom: 10px;
    }
    
    .g-3, .g-4, .g-2 {
        gap: 8px !important;
    }
}

/* Forms Mobile */
@media (max-width: 576px) {
    .form-label {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .form-control, .form-select {
        margin-bottom: 10px;
    }
    
    input[type="file"] {
        font-size: 12px;
    }
}

/* Cards Mobile */
@media (max-width: 576px) {
    .card {
        border-radius: 10px;
        margin-bottom: 15px;
    }
    
    .card-header {
        padding: 12px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .package-card .card-body {
        padding: 10px;
    }
}

/* Flex Mobile */
@media (max-width: 576px) {
    .d-flex {
        flex-direction: column;
    }
    
    .justify-content-between {
        justify-content: flex-start !important;
    }
    
    .gap-2 {
        gap: 8px !important;
    }
    
    .gap-3 {
        gap: 10px !important;
    }
}

/* Text Mobile */
@media (max-width: 576px) {
    .text-md-start {
        text-align: left !important;
    }
    
    .text-md-end {
        text-align: right !important;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

/* Buttons Mobile */
@media (max-width: 576px) {
    .btn-block-mobile {
        width: 100%;
        display: block;
        margin-bottom: 10px;
    }
    
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
        margin-bottom: 5px;
        border-radius: 5px;
    }
}

/* Modal Mobile */
@media (max-width: 576px) {
    .modal-fullscreen {
        width: 100%;
        max-width: 100%;
        height: 100%;
        margin: 0;
    }
    
    .modal-content {
        border-radius: 0;
    }
    
    .modal-body {
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* Print Mobile */
@media print {
    body {
        font-size: 11px;
    }
    
    .container {
        max-width: 100%;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .no-print {
        display: none !important;
    }
}

/* Touch Friendly */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, .list-group-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .table .btn {
        min-height: auto;
        padding: 8px 12px;
    }
    
    a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Smooth Transitions */
.sidebar, .main-content, .navbar-collapse {
    transition: all 0.3s ease;
}
