/* ==========================================================================
   Resume Aligner - Modern Minimalist Bubble & Glassmorphism Design System
   ========================================================================== */

:root {
    /* Dark Mode (Default) Palette */
    --base: #0a0e27;
    --canvas: #111d3d;
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border: #1a2847;

    --glass-card: rgba(26, 40, 71, 0.4);
    --glass-card-hover: rgba(26, 40, 71, 0.65);

    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    
    --gradient-btn: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);

    /* Typography */
    --font-ui: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    --font-doc: 'Lora', Georgia, serif;

    /* Bubble Radius System */
    --radius-bubble-sm: 14px;
    --radius-bubble: 20px;
    --radius-bubble-lg: 28px;
    --radius-pill: 9999px;

    /* Shadows & Blurs */
    --backdrop-blur: blur(20px);
    --bubble-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.4);
    --glow-accent: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* Light Mode Overrides */
[data-theme="light"] {
    --base: #f1f5f9;
    --canvas: #ffffff;
    --accent: #0284c7;
    --accent-hover: #0369a1;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border: #cbd5e1;

    --glass-card: #f8fafc;
    --glass-card-hover: #f1f5f9;
    --bubble-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.08);
    --glow-accent: 0 0 15px rgba(2, 132, 199, 0.2);
}

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

body {
    background-color: var(--base);
    color: var(--text-primary);
    font-family: var(--font-ui);
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   FEATURE SELECTION LANDING OVERLAY
   ========================================================================== */
.feature-landing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 30%, var(--canvas) 0%, var(--base) 100%);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.landing-top-bar {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9001;
}

.feature-landing-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.landing-hero-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    animation: landingPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes landingPop {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.landing-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.landing-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.5;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    margin-top: 1.5rem;
}

.feature-card {
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: var(--radius-bubble-lg);
    padding: 2.25rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--glow-accent);
}

.feature-card-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-bubble-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card-icon.match-icon {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent);
}

.feature-card-icon.tailor-icon {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.feature-card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature-card-tags span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--base);
    border: 1px solid var(--border);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
}

/* Mode Switcher Pill */
.active-mode-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.35);
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
}

.switch-mode-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.switch-mode-btn:hover {
    background: var(--accent-hover);
}

/* Layout Wrapper */
.saas-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header Navbar */
.app-header {
    height: 64px;
    margin: 12px 16px 0 16px;
    padding: 0 1.5rem;
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: var(--radius-bubble);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 20;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: var(--glow-accent);
}

.brand-text {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.app-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.app-version {
    font-size: 0.68rem;
    color: var(--accent);
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--base);
    border: 1px solid var(--border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--base);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
}

/* Daily Lives Header Widget */
.daily-lives-widget {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--base);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.daily-lives-widget:hover {
    border-color: var(--accent);
}

.lives-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    font-weight: 700;
}

.lives-pill.match-pill {
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.lives-pill.tailor-pill {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.lives-pill.exhausted {
    background: rgba(244, 63, 94, 0.12) !important;
    color: var(--accent-rose) !important;
    border: 1px solid rgba(244, 63, 94, 0.3) !important;
}

.reset-timer-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.18rem 0.6rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-emerald);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Workspace Viewport */
.workspace-viewport {
    display: flex;
    flex: 1;
    gap: 16px;
    padding: 16px;
    overflow: hidden;
}

/* Control Panel (Left 42%) */
.control-panel {
    width: 42%;
    min-width: 420px;
    max-width: 520px;
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: var(--radius-bubble-lg);
    box-shadow: var(--bubble-shadow);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.control-panel::-webkit-scrollbar {
    width: 6px;
}

.control-panel::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-pill);
}

.panel-inner {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Bubble Panel Section Cards */
.panel-section {
    background: var(--glass-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-bubble);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.25s ease;
}

.panel-section:hover {
    background: var(--glass-card-hover);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-bubble {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-header h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Dropzone Bubble */
.bubble-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-bubble-sm);
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    background: var(--base);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.bubble-dropzone:hover {
    border-color: var(--accent);
    background: rgba(6, 182, 212, 0.05);
}

.dropzone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.dropzone-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.dropzone-text .primary-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dropzone-text .sub-text {
    font-size: 0.725rem;
    color: var(--text-secondary);
}

/* Active File Card Bubble */
.active-file-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-bubble-sm);
    margin-top: 0.5rem;
}

.file-card-icon {
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
}

.file-card-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.file-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-card-meta {
    font-size: 0.72rem;
    color: var(--accent-emerald);
}

.status-pill {
    font-size: 0.7rem;
    background-color: var(--accent-emerald);
    color: #042f2e;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
}

.delete-resume-btn {
    background: rgba(244, 63, 94, 0.15);
    border: none;
    color: var(--accent-rose);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.delete-resume-btn:hover {
    background: var(--accent-rose);
    color: white;
}

/* Forms & Inputs */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

input[type="text"], input[type="url"], textarea {
    width: 100%;
    background: var(--base);
    border: 1px solid var(--border);
    border-radius: var(--radius-bubble-sm);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

input[type="text"]:focus, input[type="url"]:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.25);
}

textarea {
    resize: vertical;
}

/* Input Icon Group */
.social-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.social-input-group input {
    padding-left: 2.5rem;
}

.social-input-icon {
    position: absolute;
    left: 0.85rem;
    display: flex;
    align-items: center;
    color: var(--accent);
    pointer-events: none;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-pill);
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    box-shadow: var(--glow-accent);
}

.btn-secondary {
    background: var(--base);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--glass-card-hover);
}

.btn:active:not(:disabled) {
    transform: scale(0.98);
}

.full-width {
    width: 100%;
}

.cta-btn {
    padding: 0.9rem 1.6rem;
    font-size: 0.9rem;
}

/* Advanced Settings Bubble Details */
.advanced-settings {
    background: var(--base);
    border: 1px solid var(--border);
    border-radius: var(--radius-bubble-sm);
    padding: 0.65rem 1rem;
    margin-bottom: 1rem;
}

.settings-summary {
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-content {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.field-hint {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Document Canvas Viewport (Right 58%) */
.document-preview-viewport {
    flex: 1;
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: var(--radius-bubble-lg);
    box-shadow: var(--bubble-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Canvas Toolbar */
.canvas-toolbar {
    height: 60px;
    padding: 0 1.5rem;
    background: var(--base);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Canvas Tab Buttons */
.canvas-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.canvas-tab-btn.active {
    background: var(--canvas);
    border-color: var(--accent);
    color: var(--accent);
}

/* Scores Animated Card Widget */
.scores-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.match-score-bubble {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
}

.score-original {
    background: var(--canvas);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.score-tailored {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: var(--accent);
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.78rem;
}

.btn-action {
    background: var(--accent);
    color: #ffffff;
}

.btn-action:hover:not(:disabled) {
    background: var(--accent-hover);
}

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

.btn-secondary-action:hover:not(:disabled) {
    background: var(--glass-card-hover);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* Custom Styled Glassmorphic Confirmation & Alert Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 14, 39, 0.75);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeInOverlay 0.25s ease-out;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-bubble-card {
    width: 90%;
    max-width: 420px;
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: var(--radius-bubble-lg);
    padding: 2rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
    from { transform: scale(0.9) translateY(12px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-icon-badge {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon-badge.danger, .modal-icon-badge.error {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: var(--accent-rose);
}

.modal-icon-badge.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
}

.modal-icon-badge.info {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent);
}

.modal-bubble-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-bubble-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
}

.modal-actions .btn {
    flex: 1;
}

.btn-danger {
    background: var(--accent-rose);
    color: #ffffff;
}

.btn-danger:hover {
    background: #e11d48;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.35);
}

/* Document Paper Container */
.document-paper-container {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.document-paper-container::-webkit-scrollbar {
    width: 8px;
}

.document-paper-container::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-pill);
}

/* FEATURE 1: MATCH ANALYSIS CARD UI */
.match-analysis-card {
    width: 100%;
    max-width: 800px;
    background: var(--canvas);
    border: 1px solid var(--border);
    border-radius: var(--radius-bubble);
    padding: 2.2rem;
    box-shadow: var(--bubble-shadow);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInPaper 0.4s ease-out;
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-score-gauge {
    display: flex;
    flex-direction: column;
}

.gauge-value {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
}

.gauge-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.keywords-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-pill);
    background: var(--base);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-emerald);
}

.match-progress-track {
    width: 100%;
    height: 12px;
    background: var(--base);
    border-radius: var(--radius-pill);
    overflow: hidden;
    border: 1px solid var(--border);
}

.match-progress-bar {
    height: 100%;
    background: var(--gradient-btn);
    border-radius: var(--radius-pill);
    transition: width 1s ease-out;
    box-shadow: var(--glow-accent);
}

/* Skills Breakdown Grid */
.skills-breakdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.skills-column h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.skills-badges-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
}

.skill-badge.matched {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
}

.skill-badge.missing {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: var(--accent-rose);
}

/* Recommendations Card */
.recommendations-box {
    background: var(--base);
    border: 1px solid var(--border);
    border-radius: var(--radius-bubble-sm);
    padding: 1.25rem 1.5rem;
}

.recommendations-box h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendations-box ul {
    margin-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.6;
}

.recommendations-box li {
    margin-bottom: 0.4rem;
}

/* Document Paper Sheet */
.document-paper {
    width: 100%;
    max-width: 800px;
    min-height: 1000px;
    background: #ffffff;
    color: #1e293b;
    padding: 3.5rem 4rem;
    border-radius: var(--radius-bubble-sm);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    animation: fadeInPaper 0.4s ease-out;
}

@keyframes fadeInPaper {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.document-typography {
    font-family: var(--font-doc);
    line-height: 1.65;
    font-size: 0.95rem;
}

.document-typography h1 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.6rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-ui);
    text-align: center;
}

.document-typography h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0284c7;
    margin-top: 1.6rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 0.3rem;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.document-typography h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 1.1rem;
    margin-bottom: 0.3rem;
    font-family: var(--font-ui);
}

.document-typography p {
    margin-bottom: 0.8rem;
}

.document-typography ul {
    margin-left: 1.4rem;
    margin-bottom: 1rem;
}

.document-typography li {
    margin-bottom: 0.4rem;
}

.document-typography strong {
    color: #0f172a;
}

/* Strategic Insight Card */
.analysis-note-card {
    background: #f0fdf4;
    border-left: 4px solid var(--accent-emerald);
    border-radius: var(--radius-bubble-sm);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.analysis-note-card h4 {
    margin: 0 0 0.5rem 0;
    color: #065f46;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
}

.analysis-note-card p {
    margin: 0;
    font-size: 0.88rem;
    color: #047857;
    line-height: 1.6;
    font-family: var(--font-ui);
}

/* Empty State Bubble */
.paper-empty-state {
    text-align: center;
    max-width: 420px;
    margin-top: 5rem;
    padding: 3rem 2rem;
    background: var(--glass-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-bubble-lg);
    box-shadow: var(--bubble-shadow);
}

.empty-icon-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.paper-empty-state h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.paper-empty-state p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Shimmer Skeleton Loader */
.shimmer-container {
    width: 100%;
    max-width: 800px;
    height: 850px;
    background: #ffffff;
    padding: 3.5rem 4rem;
    border-radius: var(--radius-bubble-sm);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.shimmer-line {
    background: linear-gradient(90deg, #e2e8f0 25%, #cbd5e1 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
    border-radius: var(--radius-pill);
}

.title-line { height: 36px; width: 55%; margin: 0 auto; }
.subtitle-line { height: 18px; width: 40%; margin: 0 auto; }
.section-line { height: 24px; width: 35%; margin-top: 1rem; }
.body-line { height: 14px; width: 100%; }
.body-line.short { width: 70%; }
.shimmer-spacer { height: 1.5rem; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Floating Toast System */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}

.toast-bubble {
    pointer-events: auto;
    min-width: 300px;
    max-width: 420px;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-bubble);
    background: var(--canvas);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    animation: bubbleSlideIn 0.35s ease-out forwards;
}

.toast-bubble.fade-out {
    animation: bubbleFadeOut 0.35s ease-in forwards;
}

@keyframes bubbleSlideIn {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes bubbleFadeOut {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-10px); opacity: 0; }
}

.toast-bubble-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-bubble-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.toast-bubble-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.toast-bubble-msg {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* Enhanced Toast Variants */
.toast-success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.35);
}
.toast-success .toast-bubble-icon {
    background: rgba(16, 185, 129, 0.18);
    color: var(--accent-emerald);
}
.toast-success .toast-bubble-title {
    color: var(--accent-emerald);
}

.toast-error {
    background: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.35);
}
.toast-error .toast-bubble-icon {
    background: rgba(244, 63, 94, 0.18);
    color: var(--accent-rose);
}
.toast-error .toast-bubble-title {
    color: var(--accent-rose);
}

.toast-info {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.35);
}
.toast-info .toast-bubble-icon {
    background: rgba(6, 182, 212, 0.18);
    color: var(--accent);
}
.toast-info .toast-bubble-title {
    color: var(--accent);
}

/* Social Link Badge inside Output */
.social-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    background: #f1f5f9;
    color: #0284c7;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-ui);
    transition: all 0.2s ease;
    margin: 0 0.2rem;
    border: 1px solid #e2e8f0;
}

.social-link-badge:hover {
    background: #0284c7;
    color: #ffffff;
}

.hidden {
    display: none !important;
}
