html, body {
    height: 100%;
    margin: 0;
}


/* Full-page blue background + center layout */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
    padding: 24px;
}

@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding-top: 40px;
    }
}

/* Keep content centered and not too wide */
.main-container {
    width: 100%;
    max-width: 1200px;
}

/* Optional: make title look cleaner */
.title {
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
}

    .title h1 {
        font-weight: 700;
    }

    .title p {
        opacity: 0.9;
    }

/* Cards */
/* Make text/icons white inside colored cards */
.card-option {
    color: white !important;
    border: none;
    overflow: hidden;
    position: relative;
}

    /* Hover effect */
    .card-option:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    }

    /* ICON */
    .card-option i {
        font-size: 55px;
        margin-bottom: 15px;
    }

/* ===== Gradients for each card ===== */

.lang-card {
    background: linear-gradient(135deg, #ff8c00, #ffd60a);
}

.add-card {
    background: linear-gradient(135deg, #0d6efd, #4dabf7);
}

.login-card {
    background: linear-gradient(135deg, #6f42c1, #3a0ca3);
}

.tours-card {
    background: linear-gradient(135deg, #20c997, #198754);
}

.logout-card {
    background: linear-gradient(135deg, #dc3545, #ff6b6b);
}

.register-card {
    background: linear-gradient(135deg, #0dcaf0, #0aa2c0);
    color: #fff;
    border: none;
    transition: all 0.25s ease;
}

    .register-card i,
    .register-card h4,
    .register-card p {
        color: #fff;
    }

    .register-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 28px rgba(13, 202, 240, 0.25);
    }

.user-management-card {
    background: linear-gradient(135deg, #212529, #343a40);
    color: #fff;
    border: none;
    transition: all 0.25s ease;
}

    .user-management-card i,
    .user-management-card h4,
    .user-management-card p {
        color: #fff;
    }

    .user-management-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 28px rgba(33, 37, 41, 0.35);
    }



.school-card {
    background: linear-gradient(135deg, #ff7a18, #ff3d00); /* orange-red modern */
    color: #fff;
    border: none;
    transition: all 0.25s ease;
}

    .school-card i,
    .school-card h4,
    .school-card p {
        color: #fff;
    }

    .school-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 28px rgba(255, 61, 0, 0.35);
    }



/* ===== Create Tour ===== */

:root {
    --b-primary: #0d6efd;
    --b-primary-2: #1b74ff;
    --b-soft: rgba(13,110,253,.10);
    --b-border: rgba(13,110,253,.20);
    --b-text: #0b2a55;
    --b-muted: #6b7280;
}

/* Page background */
.page-wrap {
    background: radial-gradient(1200px 500px at 20% -10%, rgba(13,110,253,.22), transparent 60%), radial-gradient(900px 420px at 95% 0%, rgba(13,110,253,.14), transparent 55%), linear-gradient(#f8fbff, #ffffff);
    min-height: calc(100vh - 120px);
    padding: 24px 0 40px;
}

/* Header card */
.hero {
    border: 1px solid rgba(13,110,253,.12);
    background: linear-gradient(180deg, rgba(13,110,253,.10), rgba(13,110,253,.04));
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
    padding: 18px 18px;
}

    .hero h1 {
        color: var(--b-text);
        font-weight: 800;
        letter-spacing: .2px;
        margin: 0;
    }

    .hero p {
        margin: 6px 0 0;
        color: var(--b-muted);
    }

/* Main card */
.panel {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    overflow: hidden;
    background: #fff;
}

.panel-header {
    padding: 16px 18px;
    background: linear-gradient(90deg, rgba(13,110,253,.12), rgba(13,110,253,.04));
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.panel-title {
    margin: 0;
    font-weight: 700;
    color: var(--b-text);
}

.panel-body {
    padding: 18px;
}

/* Tour cards */
.tour-card {
    border: 1px solid rgba(13,110,253,.18);
    background: linear-gradient(180deg, #ffffff, rgba(13,110,253,.03));
    border-radius: 16px;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    user-select: none;
}

    .tour-card:hover {
        transform: translateY(-2px);
        border-color: rgba(13,110,253,.35);
        box-shadow: 0 12px 26px rgba(13,110,253,.12);
    }

    .tour-card .badge {
        background: var(--b-soft);
        color: var(--b-primary);
        border: 1px solid var(--b-border);
        font-weight: 700;
        border-radius: 999px;
        padding: 6px 10px;
    }

    .tour-card.active {
        border-color: var(--b-primary);
        box-shadow: 0 0 0 .22rem rgba(13,110,253,.20), 0 16px 36px rgba(13,110,253,.18);
        background: linear-gradient(180deg, rgba(13,110,253,.10), rgba(13,110,253,.03));
    }

/* Inputs */
.form-label,
label.control-label {
    color: #334155;
    font-weight: 600;
    margin-top: 10px;
}

.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, .12);
    padding: .65rem .85rem;
    box-shadow: none !important;
}

    .form-control:focus,
    .form-select:focus {
        border-color: rgba(13,110,253,.55);
        box-shadow: 0 0 0 .2rem rgba(13,110,253,.18) !important;
    }

/* Buttons */
.btn-primary {
    border-radius: 12px;
    font-weight: 700;
    padding: .65rem 1.1rem;
    background: linear-gradient(180deg, var(--b-primary-2), var(--b-primary));
    border: 0;
    box-shadow: 0 10px 20px rgba(13,110,253,.22);
}

    .btn-primary:hover {
        filter: brightness(0.98);
        box-shadow: 0 12px 24px rgba(13,110,253,.28);
    }

/* Small helpers */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13,110,253,.25), transparent);
    margin: 16px 0;
}

.back-link a {
    color: var(--b-primary);
    text-decoration: none;
    font-weight: 700;
}

    .back-link a:hover {
        text-decoration: underline;
    }



/* ===== Tours Index - Blue card list ===== */

.tour-list-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.tour-list-header {
    border: 1px solid rgba(13,110,253,.12);
    background: linear-gradient(180deg, rgba(13,110,253,.10), rgba(13,110,253,.04));
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
    padding: 16px 18px;
    margin-bottom: 16px;
}

    .tour-list-header h2 {
        font-weight: 800;
        color: #0b2a55;
        letter-spacing: .2px;
    }

    .tour-list-header p {
        color: #6b7280;
        margin-top: 6px !important;
    }

.tour-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* The whole row container */
.tour-row-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(13,110,253,.16);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
    overflow: hidden;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

    .tour-row-card:hover {
        transform: translateY(-2px);
        border-color: rgba(13,110,253,.35);
        box-shadow: 0 16px 34px rgba(13,110,253,.14);
    }

/* Left tappable area */
.tour-row-main {
    flex: 1;
    text-decoration: none;
    padding: 16px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: linear-gradient(180deg, rgba(13,110,253,.06), rgba(255,255,255,.0));
}

    .tour-row-main:focus {
        outline: none;
        box-shadow: inset 0 0 0 3px rgba(13,110,253,.20);
    }

.tour-row-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-area {
    font-weight: 800;
    color: #0b2a55;
    font-size: 1.05rem;
    letter-spacing: .2px;
}

.tour-row-sub {
    margin-top: 6px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tour-label {
    font-weight: 700;
    color: rgba(13,110,253,.95);
    background: rgba(13,110,253,.10);
    border: 1px solid rgba(13,110,253,.18);
    border-radius: 999px;
    padding: 4px 10px;
}

.tour-value {
    font-weight: 600;
}

/* Right actions column */
.tour-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 12px;
    border-left: 1px solid rgba(15, 23, 42, .06);
    background: linear-gradient(180deg, rgba(13,110,253,.05), rgba(255,255,255,0));
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 340px;
}

.tour-actions-divider {
    width: 1px;
    height: 28px;
    background: rgba(13,110,253,.18);
    margin: 0 4px;
}

/* Buttons look more “app-like” */
.tour-action {
    border-radius: 12px !important;
    font-weight: 700;
    padding: .45rem .8rem;
}

/* Make it responsive */
@media (max-width: 900px) {
    .tour-row-card {
        flex-direction: column;
        gap: 0;
    }

    .tour-row-actions {
        border-left: 0;
        border-top: 1px solid rgba(15, 23, 42, .06);
        min-width: auto;
        justify-content: flex-start;
    }
}


/* ===== Tours Search Bar ===== */
.tour-search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.tour-search-input {
    position: relative;
    flex: 1;
    min-width: 260px;
}

    .tour-search-input input {
        border-radius: 14px;
        padding-right: 44px; /* space for X button */
        border: 1px solid rgba(13,110,253,.18);
        box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
    }

        .tour-search-input input:focus {
            border-color: rgba(13,110,253,.55);
            box-shadow: 0 0 0 .2rem rgba(13,110,253,.18), 0 10px 20px rgba(15, 23, 42, .06) !important;
        }

.tour-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(13,110,253,.22);
    background: rgba(13,110,253,.10);
    color: #0d6efd;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .12s;
    visibility: hidden; /* shown only when typing */
}

    .tour-search-clear:hover {
        background: rgba(13,110,253,.16);
        transform: translateY(-50%) scale(1.03);
    }

.tour-search-meta {
    color: #475569;
    font-weight: 700;
    background: rgba(13,110,253,.08);
    border: 1px solid rgba(13,110,253,.16);
    border-radius: 999px;
    padding: 8px 12px;
    white-space: nowrap;
}








/* ===== Details Page ===== */

/* page */
.tour-details {
    max-width: 1100px;
}

/* hero */
.tour-hero {
    background: linear-gradient(135deg, rgba(13,110,253,.12), rgba(13,110,253,.04));
    border: 1px solid rgba(13,110,253,.12);
    border-radius: 1.25rem;
    padding: 1.25rem 1.25rem;
}

.tour-kicker {
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .8rem;
    color: rgba(13,110,253,.85);
}

.tour-title {
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.1;
    color: #0b2a55;
}

.tour-subtitle {
    color: rgba(0,0,0,.55);
}

.tour-back {
    border-radius: 999px;
    padding-inline: 1.25rem;
    box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.06);
}

/* mini cards */
.mini-card {
    display: flex;
    gap: .9rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(0,0,0,.07);
    background: #fff;
    box-shadow: 0 .5rem 1.25rem rgba(0,0,0,.05);
    transition: transform .12s ease, box-shadow .12s ease;
    height: 100%;
}

    .mini-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 .9rem 1.8rem rgba(0,0,0,.08);
    }

.mini-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,110,253,.10);
    color: #0d6efd;
    font-size: 1.2rem;
    flex: 0 0 auto;
}

.mini-label {
    font-size: .85rem;
    color: rgba(0,0,0,.55);
}

.mini-value {
    font-weight: 700;
    color: #0b2a55;
}

/* main card */
.tour-card {
    border-radius: 1.25rem;
    box-shadow: 0 1rem 2.5rem rgba(0,0,0,.08);
}

.tour-card-header {
    padding: 1.1rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.header-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #0d6efd;
    box-shadow: 0 0 0 6px rgba(13,110,253,.12);
    display: inline-block;
}

.updated-pill {
    font-size: .9rem;
    color: rgba(0,0,0,.55);
    background: rgba(0,0,0,.03);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 999px;
    padding: .45rem .9rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    white-space: nowrap;
}

/* fields */
.field {
    border: 1px solid rgba(0,0,0,.06);
    background: #fff;
    border-radius: 1rem;
    padding: 1rem 1.05rem;
    transition: background-color .15s ease, border-color .15s ease;
    height: 100%;
}

    .field:hover {
        background: rgba(13,110,253,.03);
        border-color: rgba(13,110,253,.18);
    }

.field-label {
    font-weight: 700;
    color: rgba(0,0,0,.55);
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .2rem;
}

    .field-label i {
        color: #0d6efd;
    }

.field-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0b2a55;
    word-break: break-word;
}

/* chips */
.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .45rem .9rem;
    border: 1px solid rgba(0,0,0,.12);
    background: rgba(0,0,0,.02);
    font-weight: 800;
}

.chip-primary {
    border-color: rgba(13,110,253,.35);
    background: rgba(13,110,253,.10);
    color: #0d6efd;
}

.chip-success {
    border-color: rgba(25,135,84,.35);
    background: rgba(25,135,84,.10);
    color: #198754;
}

.tour-card-footer {
    height: 6px;
    background: linear-gradient(90deg, rgba(13,110,253,.9), rgba(13,110,253,.25));
}





/* ===== Auth Pages ( Login & Register )  ===== */




.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f4f7fb, #e9eef7);
    padding: 30px 15px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 30px;
    border: none;
}

.auth-header {
    margin-bottom: 25px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2d3d;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.auth-form .form-floating > label {
    color: #6c757d;
}

.auth-input {
    border-radius: 12px;
    border: 1px solid #dce3ea;
    min-height: 56px;
    box-shadow: none;
}

    .auth-input:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
    }

.auth-btn-primary {
    background: linear-gradient(90deg, #0d6efd, #0b5ed7);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.3s ease;
}

    .auth-btn-primary:hover {
        background: linear-gradient(90deg, #0b5ed7, #084298);
        color: white;
        transform: translateY(-1px);
    }

.auth-btn-secondary {
    background-color: #f8f9fa;
    color: #212529;
    border: 1px solid #dce3ea;
    border-radius: 12px;
    padding: 12px;
    font-weight: 500;
    transition: 0.3s ease;
}

    .auth-btn-secondary:hover {
        background-color: #e9ecef;
        color: #000;
    }

.validation-summary-errors ul,
.text-danger.validation-summary-valid ul {
    margin-bottom: 0;
    padding-left: 18px;
}

@media (max-width: 576px) {
    .auth-card {
        padding: 25px 20px;
    }

    .auth-title {
        font-size: 1.6rem;
    }
}

.auth-btn-primary {
    background: linear-gradient(90deg, #4d94ff, #7ab8ff);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .auth-btn-primary:hover {
        background: linear-gradient(90deg, #3a86f7, #5ea8ff);
        color: white;
        transform: translateY(-1px);
    }

.auth-btn-back-colored {
    background: linear-gradient(90deg, #9bbcf3, #c2d8ff);
    color: #1f2d3d;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .auth-btn-back-colored:hover {
        background: linear-gradient(90deg, #89b0f0, #aecbff);
        color: #1f2d3d;
        transform: translateY(-1px);
    }



.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.back-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* When page is RTL, flip arrow */
html[dir="rtl"] .back-arrow {
    transform: scaleX(-1);
}
