/*
 EMS Public Layout Styles
 Shared between public.blade.php and staffPublic.blade.php
*/

:root {
    --primary: #4c1d95;
    --primary-dark: #3b0764;
    --surface: #ffffff;
    --muted: #e2e8f0;
    --border: rgba(255, 255, 255, 0.14);
    --shadow: 0 16px 60px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: #f7fbff;
    background-color: #f7fbff;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: url("../images/ems_public.png") no-repeat center bottom / cover;
    z-index: 0;
}

.page-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    font-size: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.brand-circle {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a,
.nav-links button {
    color: #20356b;
    text-decoration: none;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    /*text-shadow: 0 0 10px #ffffff, 0 0 5px #ffffff;*/
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown button::after {
    content: '▾';
    margin-left: 6px;
    font-size: 11px;
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 18px 70px;
    text-align: center;
}

.hero h1 {
    margin: 12px 0 6px;
    font-size: 35px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero .subtitle {
    max-width: 820px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.content-card {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 20px 20px;
    margin-top: 20px;
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow);
}

.search-form {
    display: flex;
    width: 100%;
    gap: 10px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 8px;
    align-items: center;
}

.input {
    flex: 1 1 auto;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
    color: #0a1c33;
    outline: none;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #0f9be0, #0a7abf);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(4, 88, 140, 0.35);
}

.alert {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    color: #0a1c33;
}

.alert.error {
    background: #ffe6e6;
    color: #9c1a1a;
    border: 1px solid #f5c2c7;
}

.alert.info {
    background: #eef4ff;
    color: #1f3b71;
    border: 1px solid #d9e5ff;
}

.access-restricted {
    text-align: center;
    padding: 40px 20px;
}

.restriction-message {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(4px);
}

#countdown-display {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.table-responsive,
.table-shell {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table,
.table-shell table,
.content-card table {
    width: 100%;
    min-width: 600px;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #20356b;
    font-size: 14px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 720px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero .subtitle {
        font-size: 18px;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .input {
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .content-card {
        padding: 16px 12px;
    }
}