/* ==========================================================================
   General Styles - Step by Step Travel and Tours (Modern Refresh)
   ========================================================================== */

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 20px;
    color: #222;
    background: #f4f6f8; /* fallback - will be overridden if you add the gradient/waterfront bg like before */
    /* If you want to match previous file → uncomment: */
    /* background: linear-gradient(135deg, #87CEEB 0%, #E0F7FA 100%); */
    /* background-attachment: fixed; background-size: cover; */
}

h1, h2 {
    margin-bottom: 20px;
    color: #0056b3;
    font-weight: bold;
    text-align: center;
}

/* ====================== GLASSMORPHISM CARDS ====================== */
.card,
.cards > div {  /* assuming .cards > div are individual cards */
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.cards > div:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 86, 179, 0.22);
}

/* Grid of cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* ====================== TABLES ====================== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

th, td {
    padding: 16px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(200, 220, 240, 0.4);
}

th {
    background: rgba(0, 86, 179, 0.12);
    color: #0056b3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 0.95rem;
}

tr:hover {
    background: rgba(0, 170, 255, 0.08);
}

/* Status colors */
.success { color: #2e7d32; font-weight: 700; }
.pending  { color: #f57c00; font-weight: 700; }
.failed   { color: #c62828; font-weight: 700; }

/* Links */
a {
    color: #0088cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

a:hover {
    color: #005f99;
    text-decoration: underline;
}

/* ====================== BUTTONS ====================== */
.btn {
    padding: 14px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0056b3, #0088dd);
    color: white;
    font-weight: bold;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 5px 18px rgba(0, 86, 179, 0.25);
    transition: all 0.28s ease;
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(135deg, #004080, #0070bb);
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 86, 179, 0.35);
}

.btn.danger {
    background: linear-gradient(135deg, #c62828, #e53935);
    box-shadow: 0 5px 18px rgba(198, 40, 40, 0.3);
}

.btn.danger:hover {
    background: linear-gradient(135deg, #b71c1c, #d32f2f);
}

/* ====================== PREMIUM MODAL (Glassmorphism Enhanced) ====================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 9999;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    width: 80%;
    max-width: 820px;
    padding: 48px 40px;
    color: #222;
    font-size: 1.1rem;
    line-height: 1.75;
    max-height: 88vh;
    overflow-y: auto;
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Close button */
.close-btn {
    float: right;
    cursor: pointer;
    font-size: 32px;
    font-weight: 700;
    color: #555;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
}

.close-btn:hover {
    color: #c62828;
    transform: rotate(90deg);
}

/* ====================== MOBILE ====================== */
@media (max-width: 768px) {
    body { padding: 16px; }

    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card, .modal-content {
        padding: 28px 22px;
    }

    .modal-content {
        width: 94%;
        padding: 32px 24px;
        font-size: 1rem;
    }

    .btn {
        padding: 16px 32px;
        font-size: 1.1rem;
        width: 100%;           /* full-width buttons feel better on mobile */
    }

    th, td {
        padding: 14px 10px;
        font-size: 0.95rem;
    }
}