/* --- VARIABLES & DESIGN SYSTEM (BÍBLIA OFICIAL V2.0) --- */
:root {
    --color-bg: #0a0a0a;
    --color-bg-gradient: radial-gradient(circle at 50% 50%, #151525 0%, #0a0a0a 100%);
    --color-card-bg: rgba(18, 18, 32, 0.7);
    --color-card-hover: rgba(28, 28, 48, 0.85);
    
    /* Paleta Oficial BANDA DIGITAL RAPMUSIC */
    --color-primary: #D4AF37; /* Dourado (Slogan, Bob & Luna) */
    --color-primary-glow: rgba(212, 175, 55, 0.35);
    --color-secondary: #00AEEF; /* Azul Elétrico (JP, Transmissões) */
    --color-secondary-glow: rgba(0, 174, 239, 0.35);
    --color-text: #F4F4F4; /* Branco Oficial */
    --color-text-muted: #9aa0a6;
    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-hover: rgba(255, 255, 255, 0.12);
    
    /* Neutrals and Accent helpers */
    --color-cyan: #00AEEF;
    --color-gold: #D4AF37;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--color-bg);
    background-image: var(--color-bg-gradient);
    color: var(--color-text);
    font-family: var(--font-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Decorative background glows */
.glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 174, 239, 0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: -2;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.12;
    pointer-events: none;
    z-index: -1;
}
.glow-sphere.gold {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -100px;
    left: -100px;
    animation: float-slow 20s infinite alternate;
}
.glow-sphere.blue {
    width: 500px;
    height: 500px;
    background: var(--color-secondary);
    bottom: -150px;
    right: -150px;
    animation: float-slow 25s infinite alternate-reverse;
}

@keyframes float-slow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.15); }
}

/* --- TYPOGRAPHY & UTILITIES --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 2rem;
    background: linear-gradient(90deg, #ffffff 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

p.subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.text-warning { color: var(--color-warning) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-muted { color: var(--color-text-muted) !important; }

/* --- GLASSMOPRHIC CARDS --- */
.card {
    background: var(--color-card-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}
.card:hover {
    border-color: var(--color-border-hover);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

/* --- APP HEADER --- */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary-glow);
    object-fit: cover;
}

.logo-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.12em;
    background: linear-gradient(90deg, #ffffff, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-vortex {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 0.72rem;
    font-family: var(--font-display);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
    animation: pulse-border 2.5s infinite alternate;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.1); }
    100% { box-shadow: 0 0 12px rgba(212, 175, 55, 0.3); }
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.status-indicator.online {
    background-color: var(--color-success);
    box-shadow: 0 0 10px var(--color-success);
}

/* --- APP LAYOUT --- */
.app-layout {
    display: flex;
    min-height: calc(100vh - 75px);
    width: 100%;
}

/* --- SIDEBAR NAVIGATION --- */
.app-nav {
    width: 280px;
    background: rgba(5, 5, 5, 0.6);
    border-right: 1px solid var(--color-border);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.nav-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.95rem;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 0.4rem;
    transition: var(--transition);
}
.nav-btn svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}
.nav-btn:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.03);
}
.nav-btn.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, transparent 100%);
    border-left: 3px solid var(--color-primary);
    box-shadow: inset 5px 0 15px -5px rgba(212, 175, 55, 0.12);
}
.nav-btn.active svg {
    color: var(--color-primary);
    filter: drop-shadow(0 0 5px var(--color-primary));
}

/* Stats panel in navigation */
.stats-panel {
    padding: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.3);
}
.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.stat-item:last-child {
    margin-bottom: 0;
}
.stat-label {
    color: var(--color-text-muted);
}
.stat-value {
    font-weight: 600;
    font-family: var(--font-display);
}

.nav-footer {
    margin-top: auto;
    padding: 1rem 0.5rem 0 0.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
}
.nav-footer p {
    font-weight: 600;
    color: var(--color-text);
}
.vortex-quote {
    display: block;
    color: var(--color-primary);
    font-style: italic;
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

/* --- MAIN CONTENT AREA --- */
.app-content {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(100vh - 75px);
}

/* Tab pane behavior */
.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}
.tab-pane.active {
    display: block;
}

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

.section-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}
.btn-block {
    display: flex;
    width: 100%;
}
.btn-primary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn-primary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-border-hover);
}
.btn-accent {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 4px 15px var(--color-primary-glow);
}
.btn-accent:hover {
    background: #e5c158;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}
.btn-outline-accent {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.btn-outline-accent:hover {
    background: rgba(212, 175, 55, 0.1);
}
.btn-outline-warning {
    background: transparent;
    border-color: var(--color-warning);
    color: var(--color-warning);
}
.btn-outline-warning:hover {
    background: rgba(245, 158, 11, 0.1);
}
.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}
.btn-xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}
.btn-close {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.btn-close:hover {
    color: var(--color-text);
}

/* --- FORMS & INPUTS --- */
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}
textarea.form-control {
    resize: vertical;
}
.form-row {
    display: flex;
    gap: 1rem;
}
.col-6 {
    width: 50%;
}

/* --- ALERTS --- */
.alert-box {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border: 1px solid transparent;
}
.warning-alert {
    background: rgba(245, 158, 11, 0.07);
    border-color: rgba(245, 158, 11, 0.25);
    color: #fff;
}
.alert-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-warning);
}
.alert-content h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.alert-content p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}
.hidden {
    display: none !important;
}

/* --- TAB 1: FILE INSPECTOR LAYOUT --- */
.file-inspector-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
}

.panel-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}
.panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.panel-body {
    padding: 1rem;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 550px;
}

/* Folder List */
.folder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
    transition: var(--transition);
}
.folder-item svg {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    color: var(--color-primary);
}
.folder-item-title {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}
.folder-item:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--color-text);
}
.folder-item.active {
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.25);
}
.folder-item.active svg {
    color: var(--color-primary);
    filter: drop-shadow(0 0 3px var(--color-primary));
}

.badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-muted);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.folder-item.active .badge {
    background: var(--color-primary);
    color: #000;
}

/* File Filter & Search */
.file-search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.file-search-bar input {
    flex-grow: 1;
}
.file-search-bar select {
    width: 160px;
}

/* File Table */
.table-responsive {
    overflow-x: auto;
}
.file-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.file-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--color-text-muted);
    font-family: var(--font-display);
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}
.file-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
}
.file-table tbody tr {
    transition: var(--transition);
}
.file-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.015);
}

.file-name-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}
.file-icon {
    width: 16px;
    height: 16px;
}
.file-icon.video { color: var(--color-secondary); }
.file-icon.audio { color: var(--color-primary); }
.file-icon.image { color: var(--color-success); }
.file-icon.text { color: var(--color-text-muted); }

/* File Type Badges */
.type-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.type-badge.video { background: rgba(0, 174, 239, 0.12); color: var(--color-secondary); border: 1px solid rgba(0, 174, 239, 0.2); }
.type-badge.audio { background: rgba(212, 175, 55, 0.12); color: var(--color-primary); border: 1px solid rgba(212, 175, 55, 0.2); }
.type-badge.image { background: rgba(16, 185, 129, 0.12); color: var(--color-success); border: 1px solid rgba(16, 185, 129, 0.2); }
.type-badge.text { background: rgba(255, 255, 255, 0.05); color: var(--color-text-muted); border: 1px solid rgba(255, 255, 255, 0.1); }

/* Duplicates view in overlay */
.duplicates-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.duplicate-group {
    background: rgba(245, 158, 11, 0.03);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 8px;
    padding: 1rem;
}
.duplicate-group-header {
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-warning);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.duplicate-group-items {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.duplicate-group-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.duplicate-group-item:last-child {
    border-bottom: none;
}
.duplicate-group-item-path {
    font-family: monospace;
    color: #ddd;
}

/* --- BIBLE LAYOUT --- */
.bible-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.bible-hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    height: 300px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-end;
}
.bible-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.bible-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.4) 60%, transparent 100%);
    z-index: 2;
}
.bible-hero-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    width: 100%;
}
.bible-hero-content h3 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.bible-hero-content p {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-style: italic;
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.bible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}
.bible-card {
    display: flex;
    flex-direction: column;
}
.bible-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}
.bible-icon {
    font-size: 1.5rem;
}
.bible-card-header h4 {
    font-size: 1.1rem;
    font-family: var(--font-display);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.bible-card-body {
    flex-grow: 1;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}
.bible-card-body strong {
    color: #fff;
}
.bible-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.bible-tags span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.color-swatch {
    padding: 0.75rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 70px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
}
.color-swatch .hex {
    font-family: monospace;
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
}

.bible-list {
    list-style: none;
}
.bible-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.25rem;
}
.bible-list li::before {
    content: "▪";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    top: -1px;
}
.lore-quote {
    font-style: italic;
    border-left: 3px solid var(--color-primary);
    padding-left: 1rem;
    margin: 0.5rem 0;
    color: #ddd;
    line-height: 1.5;
}
.font-sm {
    font-size: 0.88rem;
}

/* --- TAB 2: BAND MEMBERS --- */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.member-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.member-image-container {
    height: 280px;
    position: relative;
    overflow: hidden;
}
.member-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.member-card:hover .member-image-container img {
    transform: scale(1.04);
}

.member-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 1rem;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, transparent 100%);
}
.member-role {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

/* Member color tags based on V1.0 details */
.member-card[data-member="jp"] { border-top: 4px solid var(--color-secondary); }
.member-card[data-member="jp"] .member-role { background: rgba(0, 174, 239, 0.15); color: var(--color-secondary); }
.member-card[data-member="jp"]:hover { box-shadow: 0 0 25px rgba(0, 174, 239, 0.2); }

.member-card[data-member="bob"] { border-top: 4px solid var(--color-primary); }
.member-card[data-member="bob"] .member-role { background: rgba(212, 175, 55, 0.15); color: var(--color-primary); }
.member-card[data-member="bob"]:hover { box-shadow: 0 0 25px rgba(212, 175, 55, 0.2); }

.member-card[data-member="luna"] { border-top: 4px solid var(--color-primary); }
.member-card[data-member="luna"] .member-role { background: rgba(212, 175, 55, 0.15); color: var(--color-primary); }
.member-card[data-member="luna"]:hover { box-shadow: 0 0 25px rgba(212, 175, 55, 0.2); }

.member-card[data-member="vortex"] { border-top: 4px solid rgba(255, 255, 255, 0.4); }
.member-card[data-member="vortex"] .member-role { background: rgba(255, 255, 255, 0.08); color: #fff; }
.member-card[data-member="vortex"]:hover { box-shadow: 0 0 25px rgba(255, 255, 255, 0.15); }

.member-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.member-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
}
.member-stats-row {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}
.member-stats-row strong {
    color: #fff;
}
.member-bio {
    font-size: 0.86rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.member-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.spec-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
    border-radius: 4px;
    font-weight: 500;
}
.vocal-profile {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.78rem;
    margin-bottom: 1.25rem;
    border-left: 2px solid var(--color-primary);
}
.vocal-profile strong {
    display: block;
    color: #fff;
    margin-bottom: 0.25rem;
}
.vocal-tags {
    color: var(--color-text-muted);
    font-style: italic;
    word-break: break-all;
    font-family: monospace;
}

/* --- TAB 3: SUNO STUDIO LAYOUT --- */
.suno-studio-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 1.5rem;
}

.prompt-display-area {
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed var(--color-primary);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
}
.prompt-text {
    font-family: monospace;
    font-size: 1rem;
    line-height: 1.5;
    color: #fff;
    word-break: break-word;
    min-height: 60px;
}
.prompt-length-counter {
    position: absolute;
    bottom: 0.5rem;
    right: 0.75rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}
.prompt-length-counter span.error {
    color: var(--color-danger);
    font-weight: 700;
}

.lyrics-tags-helper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.lyrics-tags-helper .btn {
    border-radius: 4px;
}
.lyrics-input {
    font-family: monospace;
    font-size: 0.88rem;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.3);
}

/* --- TAB 4: YOUTUBE SEO HUB LAYOUT --- */
.seo-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.5rem;
}

.seo-out-card .card-body {
    padding: 1rem;
}

.output-preview-text {
    font-family: monospace;
    font-size: 0.9rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--color-secondary);
    word-break: break-all;
}

.output-preview-pre {
    font-family: monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #eee;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--color-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

/* --- TAB 5: KANBAN TRACKER --- */
.track-inline-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: start;
}

.kanban-column {
    background: rgba(5, 5, 5, 0.4);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.75rem;
}
.column-header h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.column-header .count {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.column-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.column-header .dot.idea { background-color: rgba(255,255,255,0.4); box-shadow: 0 0 5px rgba(255,255,255,0.4); }
.column-header .dot.suno { background-color: var(--color-primary); box-shadow: 0 0 5px var(--color-primary); }
.column-header .dot.master { background-color: var(--color-warning); box-shadow: 0 0 5px var(--color-warning); }
.column-header .dot.video { background-color: var(--color-secondary); box-shadow: 0 0 5px var(--color-secondary); }
.column-header .dot.published { background-color: var(--color-success); box-shadow: 0 0 5px var(--color-success); }

.column-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
    min-height: 400px;
}

/* Kanban Cards */
.kanban-card {
    background: rgba(18, 18, 32, 0.85);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem;
    transition: var(--transition);
    position: relative;
}
.kanban-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.kanban-card h5 {
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.4rem;
    word-break: break-word;
}
.kanban-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}
.kanban-card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
}
.kanban-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 0.4rem;
}
.kanban-card-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}
.kanban-card-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.kanban-card-btn.move-next {
    color: var(--color-secondary);
}
.kanban-card-btn.move-prev {
    color: var(--color-text-muted);
}
.kanban-card-btn.delete {
    color: var(--color-danger);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1200px) {
    .app-layout {
        flex-direction: column;
    }
    .app-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
    .app-content {
        max-height: none;
    }
    .file-inspector-layout,
    .suno-studio-grid,
    .seo-grid,
    .bible-grid {
        grid-template-columns: 1fr;
    }
    .kanban-board {
        grid-template-columns: 1fr;
    }
    .kanban-column {
        min-height: 0;
    }
    .column-cards {
        min-height: 0;
    }
}

/* --- AI INTEGRATION STYLES --- */
.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.img-preview {
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.custom-file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px dashed var(--color-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    color: var(--color-text-muted);
}
.custom-file-upload:hover {
    border-color: var(--color-primary);
    color: #fff;
    background: rgba(212, 175, 55, 0.02);
}

.lyrics-input {
    font-size: 0.95rem;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* --- UTILITY CLASSES FOR RESOLVING INLINE STYLES --- */
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 2rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 2rem !important; }
.mb-075 { margin-bottom: 0.75rem !important; }
.mr-1 { margin-right: 0.5rem !important; }
.mr-2 { margin-right: 1rem !important; }

.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-1 { flex: 1 !important; }
.align-end { align-items: flex-end !important; }
.justify-between { justify-content: space-between !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 10px !important; }
.m-auto { margin: auto !important; }
.m-0 { margin: 0 !important; }
.p-0 { padding: 0 !important; }
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.text-center { text-align: center !important; }
.text-decoration-none { text-decoration: none !important; }
.display-block { display: block !important; }
.font-sm-08 { font-size: 0.8rem !important; }
.font-sm-09 { font-size: 0.9rem !important; }
.uppercase { text-transform: uppercase !important; }
.font-weight-600 { font-weight: 600 !important; }

.border-0 { border: 0 !important; }
.border-top-hr { border-top: 1px solid var(--color-border) !important; }
.divider-margin { margin: 1.5rem 0 !important; }

/* Custom utility styles */
.min-h-420 { min-height: 420px !important; }
.height-38 { height: 38px !important; }
.height-48 { height: 48px !important; }
.white-space-nowrap { white-space: nowrap !important; }
.bg-transcribed { background: rgba(0, 0, 0, 0.4) !important; }
.bg-lyrics-script { background: rgba(0, 0, 0, 0.5) !important; }
.bg-whisper-placeholder { background: rgba(0, 0, 0, 0.3) !important; }
.border-whisper { border: 1px solid var(--color-border) !important; }
.color-white { color: #fff !important; }
.resize-none { resize: none !important; }
.font-inherit { font-family: inherit !important; }
.border-color-gold-25 { border-color: rgba(212,175,55,0.25) !important; }
.radius-4 { border-radius: 4px !important; }

/* Swatches classes */
.swatch-black { background-color: #0A0A0A !important; border: 1px solid #333 !important; }
.swatch-gold { background-color: #D4AF37 !important; color: #000 !important; }
.swatch-blue { background-color: #00AEEF !important; color: #000 !important; }
.swatch-white { background-color: #F4F4F4 !important; color: #000 !important; }

/* ==========================================
   --- TAB: ANALYTICS & DESEMPENHO ---
   ========================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    transition: var(--transition);
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: var(--color-border-hover);
}

.kpi-icon {
    font-size: 1.75rem;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
}

.kpi-icon.gold { border-color: rgba(212, 175, 55, 0.4); box-shadow: 0 0 10px rgba(212, 175, 55, 0.1); }
.kpi-icon.blue { border-color: rgba(0, 174, 239, 0.4); box-shadow: 0 0 10px rgba(0, 174, 239, 0.1); }
.kpi-icon.purple { border-color: rgba(192, 132, 252, 0.4); box-shadow: 0 0 10px rgba(192, 132, 252, 0.1); }
.kpi-icon.green { border-color: rgba(34, 197, 94, 0.4); box-shadow: 0 0 10px rgba(34, 197, 94, 0.1); }

.kpi-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.kpi-title {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.kpi-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-display);
    margin: 0;
}

.kpi-trend {
    font-size: 0.75rem;
    font-weight: 500;
}

.kpi-trend.positive { color: var(--color-success); }
.kpi-trend.negative { color: var(--color-danger); }

/* SVG Chart Layout */
.chart-header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-header-left h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #fff;
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.svg-chart-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    overflow: visible;
}

.chart-tooltip {
    position: absolute;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #fff;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    transform: translate(-50%, -100%) scale(0.95);
}

.chart-tooltip.visible {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
}

.chart-tooltip-date {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text-muted);
    font-size: 0.72rem;
}

.chart-tooltip-value {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Analytics Layout Details */
.analytics-details-layout {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.flex-grow-2 { flex-grow: 2; flex-basis: 0; }
.flex-grow-1 { flex-grow: 1; flex-basis: 0; }

.member-shares-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
    justify-content: center;
}

.member-share-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.member-share-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.member-share-name {
    font-weight: 600;
    color: #fff;
}

.member-share-percent {
    color: var(--color-text-muted);
    font-family: monospace;
}

.member-share-progress-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.member-share-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease-in-out;
}

/* Specific colors */
.progress-jp { background-color: var(--color-secondary); box-shadow: 0 0 8px rgba(0, 174, 239, 0.5); }
.progress-bob { background-color: var(--color-primary); box-shadow: 0 0 8px rgba(212, 175, 55, 0.5); }
.progress-luna { background-color: #c084fc; box-shadow: 0 0 8px rgba(192, 132, 252, 0.5); }
.progress-vortex { background-color: #94a3b8; box-shadow: 0 0 8px rgba(148, 163, 184, 0.5); }

@media (max-width: 992px) {
    .analytics-details-layout {
        flex-direction: column;
    }
}

/* Sub-tabs for VØRTEX Studio */
.active-subtab {
    background-color: var(--color-accent) !important;
    color: #fff !important;
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 10px rgba(0, 174, 239, 0.4);
}
.subtab-pane.hidden {
    display: none !important;
}


/* Variveis de Cores da Identidade RAPMUSIC */
:root {
  --rm-black: #0a0a0a;
  --rm-blue: #00BFFF;
  --rm-gold: #FFD700;
  --rm-white: #e0e0e0;
  --rm-dark-grey: #1a1a1a;
}

.rapmusic-dashboard {
  font-family: 'Courier New', Courier, monospace;
  background-color: var(--rm-black);
  color: var(--rm-white);
  padding: 20px;
}

.section-title {
  color: var(--rm-gold);
  border-bottom: 2px solid var(--rm-blue);
  padding-bottom: 5px;
  margin-top: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- CARDS E HOVER EFFECTS --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.member-card {
  background-color: var(--rm-dark-grey);
  border: 1px solid #333;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.member-card:hover {
  border-color: var(--rm-blue);
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
  transform: translateY(-5px);
}

.vortex-card:hover {
  border-color: var(--rm-gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.member-card h3 {
  margin: 0 0 10px 0;
  color: var(--rm-white);
}

.member-card .role {
  color: var(--rm-blue);
  font-size: 0.9em;
  margin-bottom: 15px;
}

.prompt-alert {
  background-color: rgba(255, 215, 0, 0.1);
  border-left: 3px solid var(--rm-gold);
  padding: 10px;
  font-size: 0.8em;
  margin-bottom: 15px;
}

.play-btn {
  background: transparent;
  color: var(--rm-white);
  border: 1px solid var(--rm-white);
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.2s;
  width: 100%;
}

.play-btn:hover {
  background: var(--rm-blue);
  color: var(--rm-black);
  border-color: var(--rm-blue);
}

/* --- TERMINAL VRTEX --- */
.vortex-terminal {
  background-color: #000;
  border: 1px solid var(--rm-blue);
  padding: 15px;
  border-radius: 5px;
  height: 200px;
  display: flex;
  flex-direction: column;
}

#terminal-history {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 10px;
  font-size: 0.9em;
}

#terminal-history p { margin: 5px 0; }
.highlight { color: var(--rm-gold); }
.vortex-msg { color: var(--rm-blue); }

.terminal-input-line {
  display: flex;
  align-items: center;
}

.terminal-input-line .prompt {
  color: var(--rm-gold);
  margin-right: 10px;
  font-weight: bold;
}

#cmd-input {
  background: transparent;
  border: none;
  color: var(--rm-white);
  font-family: inherit;
  width: 100%;
  outline: none;
}

/* --- BIBLIOTECA E FILTRO --- */
.library-module { margin-top: 20px; }

#search-bar {
  width: 100%;
  padding: 10px;
  background-color: var(--rm-dark-grey);
  border: 1px solid var(--rm-blue);
  color: var(--rm-white);
  margin-bottom: 15px;
  border-radius: 4px;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.file-item {
  background-color: var(--rm-dark-grey);
  padding: 10px;
  margin-bottom: 5px;
  border-left: 3px solid #333;
  transition: 0.2s;
}

.file-item:hover { border-left-color: var(--rm-gold); }

.tag {
  font-size: 0.7em;
  padding: 2px 5px;
  border-radius: 3px;
  margin-right: 10px;
  font-weight: bold;
}
.tag-audio { background: #2c3e50; color: #3498db; }
.tag-video { background: #4a2311; color: #e67e22; }
.tag-doc { background: #1e3a29; color: #2ecc71; }
