:root {
    --bg: #f4f6f9;
    --card: #ffffff;
    --accent: #ff6b6b;
    --muted: #6b7280;
    --nav-bg: #0f1724;
    --max-w: 1100px;
    --radius: 12px;
    --header-h: 72px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: #0b1220;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    background: linear-gradient(180deg, var(--nav-bg), #0b1220);
    color: #ffffff;
    padding: 0;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.08);
}

.sidebar {
    background: #35424a;
    color: #ffffff;
    padding: 15px;
    width: 250px;
    float: left;
    height: 100vh;
}

.main-content {
    margin-left: 260px;
    padding: 20px;
}

h1,
h2,
h3 {
    color: #333;
}

.hero h1 {
    font-size: 5rem;
    text-align: center;
    color: #333;
    padding: 20px;
    border: 3px solid #ffffff;
    border-radius: var(--radius);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
}

button {
    background-color: #5cb85c;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

button:hover {
    background-color: #4cae4c;
}

/* Navigation as tabs */
.nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
}

.nav .brand {
    color: var(--card);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.15rem;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'Poppins', system-ui, sans-serif;
}

.nav .nav-links {
    display: flex;
    gap: 10px
}

.nav .nav-links a {
    color: var(--card);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 10px;
    background: transparent;
    transition: background .18s ease, transform .12s ease, box-shadow .12s ease;
    position: relative;
}

.nav .nav-links a::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -8px;
    height: 3px;
    background: transparent;
    border-radius: 3px;
    transition: background .18s ease, transform .18s ease;
}

.nav .nav-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06)
}

.nav .nav-links a.active {
    background: rgba(255, 255, 255, 0.06);
}

/* show pressed / focus state so Home stays visible when clicked */
.nav .nav-links a:active,
.nav .nav-links a:focus {
    outline: none;
    transform: translateY(-1px) scale(0.995);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
}

.nav .nav-links a.active::after {
    background: var(--accent);
    transform: translateY(0);
}

/* Centered hero on index */
.hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 56px 20px;
}

.hero .card {
    background: var(--card);
    padding: 48px 56px;
    border-radius: var(--radius);
    box-shadow: 0 18px 50px rgba(13, 24, 40, 0.08);
    max-width: 900px;
    transform: translateY(6px);
    opacity: 0;
    animation: fadeUp .7s ease .06s forwards;
}

.hero h1 {
    font-size: 2.6rem;
    margin: 0 0 12px;
    color: #071032;
    font-family: 'Poppins', system-ui, sans-serif
}

.hero p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 20px
}

.hero a.cta {
    display: inline-block;
    padding: 12px 22px;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.14);
    transition: transform .12s ease, box-shadow .12s ease
}

.hero a.cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.18)
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media (max-width:760px) {
    .hero {
        padding: 30px 16px
    }

    .hero .card {
        padding: 26px
    }

    .hero h1 {
        font-size: 1.6rem
    }
}

/* Top notification shown when dashboard is blocked */
.top-notice {
    position: fixed;
    top: calc(var(--header-h) + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2200;
    width: calc(100% - 40px);
    max-width: var(--max-w);
    display: flex;
    justify-content: center;
    pointer-events: auto;
}

.top-notice-inner {
    width: 100%;
    box-sizing: border-box;
    background: rgba(239, 68, 68, 0.25);
    /* red with 25% opacity */
    border: 2px solid #ef4444;
    /* red border */
    color: #b91c1c;
    /* darker red text */
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
    opacity: 0;
    transform: translateY(-10px);
    transition: transform .28s cubic-bezier(.2, .9, .2, 1), opacity .28s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.top-notice.visible .top-notice-inner {
    opacity: 1;
    transform: translateY(0)
}

/* close button with circular timer */
.top-notice-close {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.top-notice-close .notice-timer {
    display: block;
    width: 30px;
    height: 30px;
}

.top-notice-close .timer-bg {
    stroke: rgba(185, 28, 28, 0.12);
}

.top-notice-close .timer-progress {
    stroke: #ef4444;
    stroke-dasharray: 94;
    stroke-dashoffset: 94;
    transform: rotate(-90deg);
    transform-origin: 18px 18px;
}

.top-notice-close .close-x {
    position: absolute;
    font-size: 16px;
    line-height: 1;
    color: #7f1d1d;
    pointer-events: none
}

.top-notice-content {
    flex: 1;
    text-align: left;
    padding-right: 6px
}