/* --- Color Variables based on Logo --- */
:root {
    --primary-blue: #1f3c8b;
    --accent-red: #FF0000;
    --accent-yellow: #FFD700;
}

/* --- Body & Watermark --- */
body {
    background: white;
    background-size: cover;
    background-attachment: fixed;
    color: #333;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/railfans_logo.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 30%;
    opacity: 0.1;
    z-index: -1;
}

@media (max-width: 768px) {
    body::before {
        background-size: contain;
    }
}

/* --- Sticky Footer Layout --- */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.main-content {
    flex-grow: 1;
}

/* --- Page Banner --- */
.page-banner {
    background-color: var(--primary-blue);
    color: white;
    padding: 15px 30px;
    width: 100%;
}

.page-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.page-banner .banner-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-banner .banner-left img {
    height: 40px;
}

.page-banner .banner-left p {
    margin: 0;
    font-size: 0.8rem;
    color: #ccc;
}

.page-banner .banner-right {
    text-align: right;
}

.page-banner .banner-right h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.page-banner .banner-right .timestamp {
    font-size: 0.75rem;
    color: #ccc;
    margin: 0;
}

@media (max-width: 992px) {
    .page-banner .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .page-banner .banner-right {
        text-align: center;
    }
}

/* --- Socials Footer --- */
.socials-footer {
    background-color: rgba(10, 10, 10, 0.3);
    color: white;
    padding: 1.5rem 0;
}

.socials-footer .social-icons a {
    color: white;
    font-size: 1.75rem;
    margin: 0 10px;
    transition: color 0.2s ease-in-out;
}

.socials-footer .social-icons a:hover {
    color: var(--accent-yellow);
}

.socials-footer .social-handle {
    font-size: 1rem;
    color: #eee;
}

.socials-footer .copyright-text {
    font-size: 0.8rem;
    color: #aaa;
}

/* --- Mica Surface & Components --- */
.mica-surface {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.page-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.form-control, .form-select, .input-group-text {
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.5) !important;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 128, 0.25);
}

.btn {
    border-radius: 8px !important;
    border: none !important;
    transition: transform 0.2s ease-in-out;
}
.btn:hover {
    transform: scale(1.03);
}
.btn-primary {
    background-color: var(--primary-blue) !important;
}
.btn-success {
    background-color: var(--accent-red) !important;
}

.progress {
    background-color: rgba(0, 0, 0, 0.1);
}
.progress-bar {
    background: linear-gradient(to right, var(--primary-blue), var(--accent-red));
}

/* --- Flip Card Effect --- */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 320px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.flip-card-front .card-front-content {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
    padding: 1rem;
    width: 95%;
    text-align: center;
    border-radius: 8px;
}

.flip-card-back {
    transform: rotateY(180deg);
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    align-items: center;
    justify-content: flex-end;
    padding: 1.25rem;
}

.card-back-content {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 1rem;
    width: 95%;
    text-align: center;
}

/* --- Admin Dashboard Table --- */
#ordersTable_wrapper .form-control, #ordersTable_wrapper .form-select {
    background-color: rgba(255, 255, 255, 0.75) !important;
}
.table-hover tbody tr { background-color: rgba(255, 255, 255, 0.5); }
.table-hover tbody tr:hover { background-color: rgba(255, 255, 255, 0.75); }

/* --- Step Tracker --- */
.step-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 20px 0;
}
.step-tracker::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: #ddd;
    z-index: 1;
}
.step-item {
    position: relative;
    text-align: center;
    width: 25%;
    z-index: 2;
}
.step-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ddd;
    border: 3px solid #ddd;
    margin: 0 auto 10px auto;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}
.step-title {
    font-size: 0.8rem;
    color: #888;
}
.step-item.active .step-circle {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}
.step-item.active .step-title {
    font-weight: bold;
    color: #333;
}
.step-item.completed .step-circle {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}
.step-item.completed .step-title {
    color: #555;
}