﻿
body {
    margin: 0;
    font-family: Tahoma, sans-serif;
    background: linear-gradient(to top, rgba(247, 247, 247, 0.5), rgba(142, 216, 248, 0.5));
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}
/* ✅ Textbox input text should appear uppercase only */
/*input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    text-transform: uppercase;
}*/

header {
    width: 100%;
    padding: 10px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    max-width: 120px;
    height: auto;
}

.title {
    margin-top: 10px;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.content-box {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

.modal-spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px); /* blurs the background */
    background: rgba(255, 255, 255, 0.5); /* semi-transparent */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050; /* above modal content */
}


/* Floating Notifications */
/* 🌟 Floating Notification */
/* Floating Notification */
.floating-notification {
    position: fixed; /* Stays on screen */
    top: 20px; /* Distance from top */
    right: 20px; /* Distance from right */
    min-width: 250px; /* Minimum width */
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    color: #fff;
    background-color: #28a745; /* Green by default */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(-20px);
}

    /* Error notification */
    .floating-notification.error {
        background-color: #dc3545; /* Red for errors */
    }

    /* Show notification */
    .floating-notification.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

/* --- Modal Layout Fixes (Bootstrap 5 Safe) --- */
.modal {
    display: none;
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

.modal-dialog-scrollable {
    max-height: 90vh;
}

.modal-header {
    border-bottom: none;
}

.modal-content {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-title {
    font-weight: bold;
    color: #333;
}

/* Center signup button inside login modal */
#loginModal .modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-header.bg-gradient-primary {
    background: linear-gradient(135deg, #99ffff, #0000ff);
}

.form-control.shadow-sm {
    border-radius: 0.5rem;
    transition: all 0.3s;
}

    .form-control.shadow-sm:focus {
        box-shadow: 0 0 0 0.25rem rgba(28, 200, 138, 0.25);
        border-color: #1cc88a;
    }

/*.btn-primary, .btn-success {
    border-radius: 0.5rem;
}*/
.btn-primary,
.btn-success {
    border-radius: 0.5rem;
    background-color: #808080;
    border-color: #808080;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active,
    .btn-success:hover,
    .btn-success:focus,
    .btn-success:active {
        background-color: #808080 !important;
        border-color: #808080 !important;
    }


.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.03);
}

.validation-msg {
    opacity: 1;
    transition: opacity 0.5s ease;
}

    .validation-msg.fade-out {
        opacity: 0;
    }

/* Prevent modal from overlapping header */
#loginModal .modal-dialog-centered {
    align-items: flex-start !important; /* Pulls dialog to top instead of true center */
}

#loginModal .modal-dialog {
    margin-top: 120px !important; /* adjust based on your header height */
}

#termsModal .modal-dialog-centered {
    align-items: flex-start !important; /* Pulls dialog to top instead of true center */
}

#termsModal .modal-dialog {
    margin-top: 120px !important; /* adjust based on your header height */
}
