:root {
    --primary-color: #FFFF00;
    --secondary-color: #000000;
    --success-color: #10b981;
    --warning-color: #FFFF00;
    --danger-color: #ef4444;
    --purple-color: #000000;
    --text-color-primary: #FFFF00;
}

.bg-dark {
    background-color: #000000 !important;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    min-height: 100vh;
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #FFFF00);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #7c3aed);
}

/* Custom colors */
.text-purple {
    color: var(--purple-color) !important;
}

.text-muted {
    color: #f7d935 !important;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 76px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    color: #cccccc;
    padding: 0.75rem 1rem;
    margin: 0.125rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: #fffbea;
    border: 1px solid #ffd700;
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border: none;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Custom progress bar */
.progress-bar {
    transition: width 0.3s ease;
}

/* File grid */
.file-item {
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-item:hover {
    transform: scale(1.02);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Search input */
#searchInput {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

#searchInput:focus {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
    }
    
    main {
        margin-left: 0 !important;
    }
}

/* Custom scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.text-primary {
    color: #ffcc00 !important; /* amarelo vivo */
}

.bg-primary {
    background-color: #ffcc00 !important;
}

.btn-primary {
    background-color: #ffcc00 !important;
    border-color: #ffcc00 !important;
    color: #000 !important;
}

.btn-primary:hover {
    background-color: #e6b800 !important;
    border-color: #e6b800 !important;
}

/* Força override da aba ativa */
.nav-pills .nav-link.active {
    background-color: #ffcc00 !important;
    color: #000 !important;
    font-weight: bold;
}

/* Corrige ícone dentro da aba ativa */
.nav-pills .nav-link.active i {
    color: #000 !important;
}

/* Corrige abas inativas */
.nav-pills .nav-link {
    color: #ffcc00 !important;
}

.nav-pills .nav-link i {
    color: #ffcc00 !important;
}

/* Hover opcional */
.nav-pills .nav-link:hover,
.nav-pills .nav-link:hover i {
    color: #e6b800 !important;
}

.btn-outline-primary {
    color: #ffcc00 !important;
    border-color: #ffcc00 !important;
}

.btn-outline-primary:hover {
    background-color: #ffcc00 !important;
    color: #000 !important;
    border-color: #e6b800 !important;
}

.sidebar .nav-link {
  color: #a5a5a5 !important;
}



/* ---------- Dark Theme Enhancements (Upload) ---------- */

/* Form controls (input, select, textarea) */
.form-control,
.form-select {
  background-color: #111 !important;
  color: #fff !important;
  border: 1px solid #444 !important;
}

.form-control::placeholder,
.form-select option {
  color: #ccc !important;
}

.form-control:focus,
.form-select:focus {
  border-color: #ffcc00 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 204, 0, 0.25) !important;
  background-color: #111 !important;
  color: #fff !important;
}

/* Labels, legends, headings */
label,
legend,
h1, h2, h3, h4, h5, h6 {
  color: #f7d935 !important;
}

/* Drag & Drop Area */
.upload-dropzone {
  border: 2px dashed #ffcc00;
  padding: 30px;
  text-align: center;
  background-color: #000;
  color: #ffcc00;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.upload-dropzone:hover {
  background-color: #111;
}

/* Disabled / Readonly inputs */
.form-control[readonly],
.form-control:disabled {
  background-color: #1a1a1a !important;
  color: #bbb !important;
  border-color: #333 !important;
}

/* Primary Button (Upload) */
.btn-primary {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  transform: scale(1.02);
}

/* Tooltip / help text if needed */
.form-text {
  color: #aaa;
  font-size: 0.85rem;
}

/* Optional: border radius and spacing adjustment */
.form-control,
.form-select {
  border-radius: 0.5rem;
}

/* Remove fundo branco do sidebar */
.sidebar,
.bg-white,
.bg-light {
    background-color: #0d0d0d !important; /* tom preto mais profundo */
}

/* Ajusta os textos escuros */
.text-dark {
    color: #ffcc00 !important;
}

/* Corrige os badges e contadores */
.badge.bg-light {
    background-color: #1a1a1a !important;
    color: #ffcc00 !important;
    border: 1px solid #333;
}

/* Container de armazenamento (cards laterais) */
.sidebar .bg-light {
    background-color: #1a1a1a !important;
    color: #ffcc00 !important;
}

.sidebar .bg-light .text-muted,
.sidebar .bg-light .fw-medium {
    color: #f7d935 !important;
}

/* H6 títulos de seções */
.sidebar h6,
.sidebar h6.text-muted {
    color: #ffcc00 !important;
}

/* Progresso de armazenamento */
.sidebar .progress {
    background-color: #333;
}

.sidebar .progress-bar {
    background-color: #ffcc00;
}

/* Ícones */
.sidebar .nav-link i {
    color: #ffcc00 !important;
}

/* Hover dos links no sidebar */
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: #1f1f1f !important;
    color: #ffcc00 !important;
    border: 1px solid #ffcc00;
}

/* Contorno da área ativa */
.sidebar .nav-link.active {
    font-weight: bold;
}

/* Corrige dropdown escuro */
.dropdown-menu {
    background-color: #1a1a1a !important;
    color: #ffcc00 !important;
    border: 1px solid #333;
}

.dropdown-item {
    color: #ffcc00 !important;
}

.dropdown-item:hover {
    background-color: #333 !important;
    color: #fff !important;
}

/* Cards Escuros */
.card {
  background-color: #111 !important;
  color: #fff !important;
  border: none !important;
}

/* Cabeçalhos dos Cards */
.card-header {
  background-color: #111 !important;
  border-bottom: 1px solid #333 !important;
  color: #ffcc00 !important;
}

/* Campo de busca */
.input-group-text {
  background-color: #111 !important;
  color: #ffcc00 !important;
  border: 1px solid #444 !important;
}

.form-control {
  background-color: #111 !important;
  color: #fff !important;
  border: 1px solid #444 !important;
}

.form-control::placeholder {
  color: #aaa !important;
}

/* Badges de nível */
.badge {
  background-color: #ffcc00 !important;
  color: #000 !important;
  font-weight: bold;
  border-radius: 0.5rem;
}

/* Tabs */
.nav-pills .nav-link {
  background-color: transparent !important;
  color: #ffcc00 !important;
}

.nav-pills .nav-link.active {
  background-color: #ffcc00 !important;
  color: #000 !important;
}

/* Ícones e textos */
.text-muted {
  color: #ccc !important;
}


.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: #ffcc00;
  font-family: 'Inter', sans-serif;
}

.loader-content {
  text-align: center;
}

.loader-icon {
  width: 40px;
  height: 40px;
  border: 4px solid #ffcc00;
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}