@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Playfair+Display:ital,wght@0,600;1,400&display=swap');

:root {
    --bg-dark: #070b12;
    --bg-panel: rgba(15, 23, 42, 0.65);
    --border-color: rgba(0, 240, 255, 0.15);
    --border-hover: rgba(0, 240, 255, 0.4);
    --primary: #00f0ff;
    --primary-glow: rgba(0, 240, 255, 0.25);
    --secondary: #ff007f;
    --warning: #ffb700;
    --warning-glow: rgba(255, 183, 0, 0.2);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-mono: 'Courier New', monospace;
    --shadow-neon: 0 0 15px rgba(0, 240, 255, 0.2);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 10% 20%, rgba(0, 240, 255, 0.05) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(255, 0, 127, 0.04) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Home / Lobby Styling */
.lobby-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

.title-glow {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 30%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 10px;
}

.main-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    width: 100%;
}

@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

.glass-card {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px 0 rgba(0, 240, 255, 0.08);
}

.banner-promo {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 350px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1);
    transition: transform 0.8s ease;
}

.banner-promo:hover .banner-img {
    transform: scale(1.03);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
}

.badge-free {
    background: var(--secondary);
    color: white;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 8px;
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #0077ff);
    color: #070b12;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--secondary), var(--danger));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
}

.error-msg {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 15px;
    background: rgba(239, 68, 68, 0.1);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Disclaimer Footer */
footer {
    width: 100%;
    margin-top: auto;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.disclaimer {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
}

/* Dashboard Escritório Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Menu */
.sidebar {
    width: 280px;
    background: rgba(10, 15, 26, 0.9);
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.logo-container {
    margin-bottom: 40px;
    text-align: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.menu-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-weight: 600;
}

.menu-list {
    list-style: none;
    margin-bottom: 30px;
}

.menu-item {
    margin-bottom: 10px;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-link:hover, .menu-link.active {
    background: rgba(0, 240, 255, 0.05);
    color: var(--primary);
    border-left-color: var(--primary);
}

.menu-link i {
    margin-right: 12px;
}

.profile-card {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
}

.profile-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-xp {
    font-size: 0.8rem;
    color: var(--primary);
}

/* Main Hub Content */
.main-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.case-info h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

/* 5 Icons Hub Panel */
.hubs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .hubs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .hubs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hub-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hub-btn i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.hub-btn span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hub-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
    transform: translateY(-4px);
}

.hub-btn:hover i {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.hub-btn:hover span {
    color: white;
}

.hub-btn.active {
    background: rgba(0, 240, 255, 0.08);
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
}

.hub-btn.active i {
    color: var(--primary);
}

.hub-btn.active span {
    color: white;
}

/* Desk / Workspace Screen Area */
.screen-panel {
    flex: 1;
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.screen-panel.active {
    display: block;
}

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

/* Notebook / Notas Splits Screen */
.notebook-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    background: #141b26;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 480px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

/* Spiral Divider */
.notebook-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 100%;
    background: linear-gradient(90deg, #090e15, #222b3b, #090e15);
    box-shadow: inset 0 0 10px black;
    z-index: 10;
}

.notebook-page {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.notebook-page.left {
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    background-image: linear-gradient(rgba(0, 240, 255, 0.01) 1px, transparent 1px);
    background-size: 100% 24px;
}

.notebook-page.right {
    background-image: linear-gradient(rgba(255, 0, 127, 0.01) 1px, transparent 1px);
    background-size: 100% 24px;
}

.notebook-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

/* Checklist items */
.checklist-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.checklist-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checklist-checkbox:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checklist-checkbox:checked::after {
    content: '✔';
    color: #070b12;
    font-size: 0.8rem;
    font-weight: 800;
}

.checklist-item.checked span {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* Text area notes */
.notes-textarea {
    width: 100%;
    flex: 1;
    background: transparent;
    border: none;
    resize: none;
    color: #f1f5f9;
    font-family: var(--font-mono);
    line-height: 24px;
    font-size: 1rem;
}

.notes-textarea:focus {
    outline: none;
}

.save-indicator {
    align-self: flex-end;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Mapa Panel styles */
.map-view-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.map-viewport {
    background: #0f1622;
    border-radius: 12px;
    height: 400px;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
    overflow: hidden;
}

.map-point {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--secondary);
    border: 3px solid white;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.8);
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-point:hover {
    transform: translate(-50%, -50%) scale(1.3);
    background-color: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.map-details {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.map-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Lab Panel styles */
.lab-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.inventory-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    align-content: flex-start;
}

.inventory-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inventory-item i {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.inventory-item.selected, .inventory-item:hover {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.05);
}

.inventory-item.selected i {
    color: var(--primary);
}

.lab-workspace {
    background: #0f1622;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 30px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.lab-results {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    line-height: 1.6;
}

/* Delegacia styles */
.station-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
}

.station-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
}

.riddle-container {
    background: rgba(255, 183, 0, 0.05);
    border-left: 4px solid var(--warning);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Witness / Testemunhas styles */
.witness-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.witness-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.witness-card-small {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.witness-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #334155;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.witness-card-small.active, .witness-card-small:hover {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.03);
}

.witness-dialogue {
    background: #0f1622;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 30px;
    min-height: 350px;
}

.witness-quote {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--secondary);
}

/* General Layout helpers */
.accent-text {
    color: var(--primary);
}

.bold-title {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}
