:root {
    --bg-color: #111115;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent: #4a90e2;
    --accent-hover: #357abd;
    --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 40px;
    /* Space for global header if fixed */
}

/* Header */
.app-header {
    text-align: center;
    margin-bottom: 30px;
}

.app-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.app-header p {
    color: var(--text-secondary);
}

/* Upload Section */
.upload-section {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

input[type="file"] {
    display: none;
}

.custom-file-upload {
    border: 1px dashed var(--accent);
    display: inline-block;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 12px;
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.custom-file-upload:hover {
    background: rgba(74, 144, 226, 0.1);
}

/* Controls */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.hidden {
    display: none !important;
}


.action-buttons {
    display: flex;
    gap: 10px;
}

.view-toggles button,
.action-btn,
#focus-nav button {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.view-toggles button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.action-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.action-btn.primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.action-btn.secondary {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
}

.action-btn.secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.action-btn:hover,
#focus-nav button:hover {
    background: var(--card-border);
}

/* Question Cards */
.question-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.5;
    font-weight: 500;
}

textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 8px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    box-sizing: border-box;
    /* Fixes padding width issues */
}

textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Placeholder */
.placeholder-msg {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 50px;
}

/* Focused View Specifics */
.questions-focus-view .question-card {
    display: none;
    /* Hide all by default in focus mode */
}

.questions-focus-view .question-card.active-card {
    display: block;
    /* Show only active */
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.focus-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    position: sticky;
    bottom: 20px;
    background: rgba(17, 17, 21, 0.8);
    backdrop-filter: blur(5px);
    padding: 10px;
    border-radius: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--card-border);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .view-toggles {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .question-text {
        font-size: 1rem;
    }
}