/* GOTHAM DARK THEME - Palantir Style */
:root {
  /* Dark Palantir Colors */
  --gotham-black: #0a0a0a;
  --gotham-dark-gray: #1a1a1a;
  --gotham-medium-gray: #2a2a2a;
  --gotham-light-gray: #3a3a3a;
  --gotham-blue: #2563eb;
  --gotham-light-blue: #3b82f6;
  --gotham-text-white: #ffffff;
  --gotham-text-gray: #9ca3af;
  --gotham-text-light-gray: #6b7280;
  --gotham-border: #374151;
  --gotham-success: #10b981;
  --gotham-warning: #f59e0b;
  --gotham-danger: #ef4444;
}

/* FORCE DARK BACKGROUND ON EVERYTHING */
* {
  box-sizing: border-box;
}

html {
  background: var(--gotham-black) !important;
}

body {
  background: var(--gotham-black) !important;
  color: var(--gotham-text-white) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* AGGRESSIVE BOOTSTRAP OVERRIDES */
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  background: transparent !important;
  color: var(--gotham-text-white) !important;
}

/* TEXT COLORS - FORCE DARK */
h1, h2, h3, h4, h5, h6 {
  color: var(--gotham-text-white) !important;
}

p, span, div, a {
  color: var(--gotham-text-gray) !important;
}

.text-primary {
  color: var(--gotham-blue) !important;
}

.text-secondary {
  color: var(--gotham-text-gray) !important;
}

.text-muted {
  color: var(--gotham-text-light-gray) !important;
}

.text-white {
  color: var(--gotham-text-white) !important;
}

.text-success {
  color: var(--gotham-success) !important;
}

.text-warning {
  color: var(--gotham-warning) !important;
}

.text-danger {
  color: var(--gotham-danger) !important;
}

/* BACKGROUNDS - FORCE DARK */
.bg-primary {
  background-color: var(--gotham-blue) !important;
}

.bg-secondary {
  background-color: var(--gotham-medium-gray) !important;
}

.bg-dark {
  background-color: var(--gotham-dark-gray) !important;
}

.bg-light {
  background-color: var(--gotham-medium-gray) !important;
}

.bg-white {
  background-color: var(--gotham-dark-gray) !important;
}

/* NAVIGATION - DARK */
.navbar {
  background-color: var(--gotham-dark-gray) !important;
  border-bottom: 1px solid var(--gotham-border);
}

.navbar-dark .navbar-brand,
.navbar-light .navbar-brand {
  color: var(--gotham-text-white) !important;
  font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link {
  color: var(--gotham-text-gray) !important;
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:hover {
  color: var(--gotham-blue) !important;
}

.navbar-toggler {
  border-color: var(--gotham-border) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* CARDS - DARK */
.card {
  background-color: var(--gotham-medium-gray) !important;
  border: 1px solid var(--gotham-border) !important;
  border-radius: 8px;
  color: var(--gotham-text-white) !important;
}

.card-header {
  background-color: var(--gotham-light-gray) !important;
  border-bottom: 1px solid var(--gotham-border) !important;
  color: var(--gotham-text-white) !important;
}

.card-body {
  background-color: var(--gotham-medium-gray) !important;
  color: var(--gotham-text-white) !important;
}

.card-title {
  color: var(--gotham-text-white) !important;
}

.card-text {
  color: var(--gotham-text-gray) !important;
}

/* BUTTONS - PALANTIR STYLE */
.btn-primary {
  background: linear-gradient(135deg, var(--gotham-blue) 0%, var(--gotham-light-blue) 100%) !important;
  border: none !important;
  color: white !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gotham-light-blue) 0%, var(--gotham-blue) 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline-primary {
  color: var(--gotham-blue) !important;
  border-color: var(--gotham-blue) !important;
  background: transparent !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-outline-primary:hover {
  background-color: var(--gotham-blue) !important;
  border-color: var(--gotham-blue) !important;
  color: white !important;
}

.btn-secondary {
  background-color: var(--gotham-light-gray) !important;
  border-color: var(--gotham-border) !important;
  color: var(--gotham-text-white) !important;
}

.btn-secondary:hover {
  background-color: var(--gotham-medium-gray) !important;
  color: var(--gotham-text-white) !important;
}

/* FORMS - DARK */
.form-control {
  background-color: var(--gotham-medium-gray) !important;
  border: 1px solid var(--gotham-border) !important;
  color: var(--gotham-text-white) !important;
}

.form-control:focus {
  background-color: var(--gotham-light-gray) !important;
  border-color: var(--gotham-blue) !important;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25) !important;
  color: var(--gotham-text-white) !important;
}

.form-control::placeholder {
  color: var(--gotham-text-light-gray) !important;
}

.form-label {
  color: var(--gotham-text-white) !important;
}

/* BADGES */
.badge {
  font-weight: 500;
}

.badge.bg-success {
  background-color: var(--gotham-success) !important;
}

.badge.bg-warning {
  background-color: var(--gotham-warning) !important;
}

.badge.bg-danger {
  background-color: var(--gotham-danger) !important;
}

/* CUSTOM GOTHAM COMPONENTS */
.gotham-hero {
  background: linear-gradient(135deg, var(--gotham-black) 0%, var(--gotham-dark-gray) 50%, var(--gotham-medium-gray) 100%) !important;
  position: relative;
  overflow: hidden;
  color: var(--gotham-text-white) !important;
}

.gotham-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.5;
}

.gotham-section {
  background-color: var(--gotham-dark-gray) !important;
  border-top: 1px solid var(--gotham-border);
  color: var(--gotham-text-white) !important;
}

.gotham-feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gotham-blue) 0%, var(--gotham-light-blue) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.gotham-stats {
  background-color: var(--gotham-light-gray) !important;
  border: 1px solid var(--gotham-border);
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--gotham-text-white) !important;
}

.gotham-stats:hover {
  transform: translateY(-3px);
}

.gotham-stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gotham-blue) !important;
  display: block;
}

.gotham-stats-label {
  color: var(--gotham-text-gray) !important;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

.gotham-footer {
  background-color: var(--gotham-black) !important;
  border-top: 1px solid var(--gotham-border);
  color: var(--gotham-text-gray) !important;
}

/* ANIMATIONS */
.fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(50px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* FORCE DARK ON ALL BOOTSTRAP COMPONENTS */
.alert {
  background-color: var(--gotham-medium-gray) !important;
  border-color: var(--gotham-border) !important;
  color: var(--gotham-text-white) !important;
}

.dropdown-menu {
  background-color: var(--gotham-medium-gray) !important;
  border-color: var(--gotham-border) !important;
}

.dropdown-item {
  color: var(--gotham-text-gray) !important;
}

.dropdown-item:hover {
  background-color: var(--gotham-light-gray) !important;
  color: var(--gotham-text-white) !important;
}

.dropdown-divider {
  border-color: var(--gotham-border) !important;
}

/* RESPONSIVE */
/* User Dropdown Specific Styles */
.dropdown-menu.bg-dark {
    background-color: var(--gotham-medium-gray) !important;
    border: 1px solid var(--gotham-border) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    min-width: 250px;
}

.dropdown-menu.bg-dark .dropdown-item {
    color: var(--gotham-text-white) !important;
    padding: 8px 16px;
    transition: all 0.2s ease !important;
}

.dropdown-menu.bg-dark .dropdown-item:hover,
.dropdown-menu.bg-dark .dropdown-item:focus {
    background-color: var(--gotham-light-gray) !important;
    color: var(--gotham-text-white) !important;
}

.dropdown-menu.bg-dark .dropdown-item.text-danger {
    color: var(--gotham-danger) !important;
}

.dropdown-menu.bg-dark .dropdown-item.text-danger:hover {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: var(--gotham-danger) !important;
}

.dropdown-menu.bg-dark .dropdown-header {
    color: var(--gotham-text-white) !important;
    font-weight: 600;
    border-bottom: 1px solid var(--gotham-border);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.dropdown-menu.bg-dark .dropdown-divider {
    border-color: var(--gotham-border) !important;
    margin: 8px 0;
}

@media (max-width: 768px) {
  .gotham-feature-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .gotham-stats-number {
    font-size: 2rem;
  }
} 