/* Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f7fb;
    color: #1a1a1a;
}

/* Soft geometric background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(42,144,184,0.12), transparent 55%),
        radial-gradient(circle at bottom left, rgba(180,225,240,0.18), transparent 55%);
    z-index: -1;
}

/* Centered container (login) */
.center-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* Card */
.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 32px 28px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    max-width: 420px;
    width: 100%;
}

/* Clinote wordmark */
.brand-title {
    font-size: 26px;
    font-weight: 700;
    color: #1f2933;
    margin-bottom: 8px;
}

.card-title {
    font-size: 22px;
    font-weight: 600;
    margin: 8px 0 4px;
}

.card-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
}

/* Hero image (login page only) */
.hero-img {
    width: 100%;
    max-width: 210px;
    max-height: 160px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    object-fit: contain;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 400px) {
    .hero-img {
        max-width: 260px;
        max-height: 240px;
        margin: 0 auto;
    }
}

/* ---------------- CLEAN HERO (FRONTPAGE) ---------------- */

.hero {
    text-align: center;
    padding: 10px 0 20px;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1rem;
    color: #5f6b7a;
    max-width: 640px;
    margin: 0 auto 24px;
    line-height: 1.55;
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.hero-note {
    font-size: 0.8rem;
    color: #5f6b7a;
    max-width: 520px;
    margin: 0 auto 28px;
}

/* HERO VIDEO */
.hero-video {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.hero-video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* CENTER PLAY BUTTON */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    border-left: 14px solid white;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}

/* Bottom control bar */
.video-controls {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    pointer-events: none;
}

/* Shared button base */
.btn-play,
.btn-pause,
.btn-stop {
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.45);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s ease;
}

.btn-play:hover,
.btn-pause:hover,
.btn-stop:hover {
    background: rgba(0,0,0,0.65);
}

/* Play icon */
.btn-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
    border-left: 10px solid white;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}

/* Pause icon */
.btn-pause::before,
.btn-pause::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 3px;
    height: 12px;
    background: white;
    transform: translateY(-50%);
}

.btn-pause::before {
    left: 11px;
}

.btn-pause::after {
    right: 11px;
}

/* Stop icon */
.btn-stop::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 2px;
}

/* MOBILE — smaller, lighter buttons */
@media (max-width: 1024px) {

    .btn-play,
    .btn-pause,
    .btn-stop {
        width: 20px;
        height: 20px;
        background: rgba(0,0,0,0.25);
    }

    .btn-play::before {
        border-left: 6px solid white;
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
    }

    .btn-pause::before,
    .btn-pause::after {
        width: 2px;
        height: 7px;
    }

    .btn-stop::before {
        width: 6px;
        height: 6px;
    }

    .play-button {
        width: 40px;
        height: 40px;
    }

    .play-button::before {
        border-left: 10px solid white;
        border-top: 7px solid transparent;
        border-bottom: 7px solid transparent;
    }

    /* Slight transparency for bottom controls */
    .video-controls {
        opacity: 0.5;
        transition: opacity 0.4s ease;
    }

    /* When user taps the video, controls appear briefly */
    .hero-video:active .video-controls {
        opacity: 1;
    }
}


.login-card {
    text-align: left;
}

/* Dashboard layout */
.dashboard-shell {
    max-width: 1120px;
    margin: 32px auto;
    padding: 0 24px 32px;
}

.dashboard-header {
    margin-bottom: 20px;
}

.dashboard-greeting {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dashboard-subtitle {
    font-size: 14px;
    color: #6b7280;
}

/* Two-column card */
.dashboard-main {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    height: 100%;
}

/* Tip */
.tip-box {
    background: #e8f4f8;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: #1f2933;
    margin-bottom: 18px;
}

/* Status list */
.status-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.status-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    font-size: 14px;
}

.status-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    color: #4b5563;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    margin-right: 8px;
    background: #d1d5db;
}

.status-dot.done {
    background: #16a34a;
}

.status-dot.active {
    background: #2a90b8;
}

.status-label {
    flex: 1;
}

/* Download area */
.download-area {
    margin-top: 14px;
}

/* Small helper text */
.helper-text {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}

/* Uploading screen */
.upload-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.upload-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 26px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.upload-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.upload-subtitle {
    font-size: 13px;
    color: #6b7280;
}

/* Simple spinner */
.spinner {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 3px solid #d1d5db;
    border-top-color: #2a90b8;
    margin: 16px auto 10px;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Demo link */
.demo-link {
    margin-top: 32px;
    text-align: center;
    font-size: 0.95rem;
    color: #6b7280;
}

.demo-link a {
    color: #2a90b8;
    text-decoration: none;
}

.demo-link a:hover {
    text-decoration: underline;
}
