/* Site-wide styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    direction: rtl;
    text-align: right;
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.navbar .input-group {
    width: 300px;
}

@media (max-width: 768px) {
    .navbar .input-group {
        width: 100%;
        margin: 10px 0;
    }
}

/* Hero Slider */
.carousel-item {
    height: 500px;
    background: linear-gradient(45deg, #000, #333);
}

    .carousel-item img {
        opacity: 0.7;
    }

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    background: rgba(0,0,0,0.6);
    border-radius: 15px;
    padding: 2rem;
}

    .carousel-caption h3 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }

    .carousel-caption {
        padding: 1rem;
    }

        .carousel-caption h3 {
            font-size: 1.5rem;
        }
}

/* Cards */
.card {
    border: none;
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

    .card:hover {
        box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    }

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 20px;
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-sm {
    border-radius: 20px;
    padding: 0.25rem 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #0a58ca);
    border: none;
}

    .btn-primary:hover {
        background: linear-gradient(45deg, #0a58ca, var(--primary-color));
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(13,110,253,0.3);
    }

/* Forms */
.form-control, .form-select {
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    border: 1px solid #e0e0e0;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.15);
    }

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Dashboard */
.dashboard-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.stat-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-color), #0a58ca);
    color: white;
    border-radius: 15px;
    font-size: 1.5rem;
}

/* Tickets */
.ticket-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

    .ticket-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    }

.qr-code {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    h2.h3 {
        font-size: 1.5rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
