@import url("colour-scheme.css");

html, body {
    height:100%;
    margin:0;
    scrollbar-width: none;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--brand-background-secondary);
    color: var(--brand-primary-text);
    padding: 0;
    overflow-x: hidden; /* Avoid horizontal scroll */
    scrollbar-width: none;
    min-width:300px;
    display: flex;
    flex-direction: column;
}

.admin-bar {
    background-color: var(--brand-background-primary); 
    color:#f8f9fa;
    border-bottom: 2px solid var(--brand-primary); 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
    padding:5px;
    gap:2em;
}

.admin-menu {
    display:flex;
    gap:2em;
    flex:1;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.admin-menu a {
    color:white;
}

.admin-user {
    display:flex;
    justify-content: flex-start;
    align-items: center;
    width:100%;
}

.navbar {
    background-color: var(--brand-background-primary);
}

.navbar-toggler-icon {
    filter:brightness(500%)contrast(200%);
}

.navbar-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    row-gap: 1em;
}

.nav-item {
    display: flex;
    align-items: center;
    align-self: center;
    color:white;
    font-size:1.2em;
    padding-left:1em;
    padding-right:1em;
    transition: 0.2s ease;
}

.nav-item:hover {
    color: var(--brand-primary-accent);
}

a {
    color: var(--brand-primary);
    text-decoration: none;
}

.page-container {
    flex:1;
    display: flex;
    flex-direction: column;
    padding:0.5em;
}

.form-control {
    background-color: var(--brand-background-secondary);
    color: var(--brand-primary-text);
    height:auto;
    line-height: 30px;
    border-radius:5px !important;
    cursor: pointer;
}

.form-control::placeholder{
    color: var(--brand-primary-text-muted)
}

.form-control:focus {
    border: solid var(--brand-primary) 1px;
    background-color: black;
    color: var(--brand-primary-text)
}

.form-control.search {
    min-width: 250px;
}

.btn {
    font-size: 1.1rem;
    border-radius: 5px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: transform 0.2s;
    white-space: nowrap; /* Prevents text from wrapping */
}

.btn.sm {
    padding:0.5em 2em;
    font-size:10pt;
}

.btn.grow {
    flex:1;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--brand-primary);
    color: #fff;
    border: none;
}
.btn-primary:hover {
    background: var(--brand-primary-accent);
}
.btn-primary:active {
    background: var(--brand-primary-accent) !important;
}

.row {
    display: flex;
    flex-direction: row;
}

.row.center-x {
    justify-content: center;
}

.btn-secondary {
    background: var(--brand-secondary);
    color: #fff;
    border: none;
}
.btn-secondary:hover {
    background: var(--brand-secondary-accent);
}

.btn-secondary:active {
    background: var(--brand-secondary-accent) !important;
}

/* HERO SECTION */
.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 3rem 1rem;
}
.page-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.page-hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.muted-text {
    color: var(--brand-primary-text-muted);
}

.hero-row {
    display: flex;
    justify-content: center;
    gap:2em;
    padding-left:0.5em;
    padding-right:0.5em;
}

.menu-bar {
    display:flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap:0.5em;
    padding-bottom:1em;
    width:100%;
}

.menu-options {
    display:flex;
    gap:0.5em;
    flex-wrap: wrap;
}

.search-bar {
    flex:1;
    display: flex;
    gap:0.5em;
    max-width:600px;
    padding-right:20px;
}

.page-link, .page-link:hover  {
    color: var(--brand-primary);
}

.page-item.active .page-link {
    color:white;
    background-color: var(--brand-primary);
    border: solid var(--brand-primary) 1px;
}

.table-container {
    width: 100%;
    overflow-x: auto; /* Enables horizontal scrolling */
    white-space: nowrap; /* Prevents text wrapping inside table cells */
}

.or-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap:10px;
    font-size:1.5rem;
    font-weight: bold;
}

.or-section .divider {
    background-color: var(--brand-secondary);
    height:2px;
    width:100%;
    flex:1;
}

/* Full-screen overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; /* Ensure it appears above everything */
    display: none; /* Hide by default */
}

/* Animated loader (spinner) */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--brand-primary);
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer {
    background-color: var(--brand-background-primary);
    text-align: center;
    padding: 1rem;
    border-top:solid black 1px;
}

.timer {
    font-size:1rem;
    font-weight: bold;
    background-color: var(--brand-primary);
    border-radius: 10px;
    width:90px;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
    user-select: none;
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {

}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {

    .menu-bar {
        flex-direction: row;
    }

    .admin-bar {
        flex-direction: row;
    }

    .admin-menu {
        flex-direction: row;
        flex-wrap: nowrap;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {

}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

}