:root {
    --bg-color: #0f1115;
    --surface-color: #1a1d24;
    --border-color: #2d313a;
    --text-primary: #f8f9fa;
    --text-secondary: #a0aec0;
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
    /* Prvent scroll on body */
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

.header {
    background-color: var(--bg-color);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.user-info h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #fff, #a0aec0);
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.1rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-download:hover {
    background-color: var(--primary-hover);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-container {
    flex: 1;
    background-color: var(--surface-color);
    position: relative;
    width: 100%;
    height: 100%;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.pdf-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 3rem;
    text-align: center;
    background: var(--surface-color);
}

.pdf-fallback p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

@media (max-width: 640px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .user-info h1 {
        font-size: 1.25rem;
    }

    .subtitle {
        display: none;
    }

    .btn-download {
        padding: 0.4rem 0.6rem;
    }

    .btn-download span {
        display: none;
        /* Hide download text on mobile so only icon shows */
    }
}