/* ========== GLOBAL DARK THEME ========== */
/* Ljusare mörk bakgrund för hela webbplatsen - mindre bländande men ändå bekväm */

html, body {
    height: 100%;
    margin: 0;
    /* Ljusare mörk bakgrund */
    background-color: #2a2a2a;
    color: #e8e8e8;
}

body {
    display: flex;
    flex-direction: column;
    /* Ljusare gradient med mer variation */
    background: linear-gradient(135deg, #2a2a2a 0%, #3d3d3d 50%, #2a2a2a 100%);
    min-height: 100vh;
}

main {
    flex: 1;
    /* Säkerställ att main också har transparent bakgrund */
    background: transparent;
}

.hero {
    background: linear-gradient(120deg, #1c1c1c, #2f2f2f);
}

section {
    scroll-margin-top: 100px;
    /* Transparent bakgrund så gradient syns igenom */
    background: transparent;
    color: #f0f0f0;
}

/* ========== DARK THEME OVERRIDES ========== */

/* Mörka bakgrunder för alla ljusa Bootstrap-klasser - ljusare variant */
.bg-light {
    background: linear-gradient(145deg, #3d3d3d 0%, #2f2f2f 100%) !important;
    color: #e8e8e8 !important;
}

.bg-white {
    background: linear-gradient(145deg, #2a2a2a 0%, #3d3d3d 100%) !important;
    color: #e8e8e8 !important;
}

.bg-body-tertiary {
    background: linear-gradient(145deg, #3d3d3d 0%, #2a2a2a 100%) !important;
    color: #e8e8e8 !important;
}

/* Cards - ljusare mörk styling */
.card {
    background: linear-gradient(145deg, #3d3d3d 0%, #4a4a4a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #e8e8e8 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.card-header {
    background: rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f0f0f0 !important;
}

.card-body {
    color: #f0f0f0 !important;
}

/* Text färger för bättre kontrast - ljusare bakgrund */
.text-dark {
    color: #e8e8e8 !important;
}


.text-body {
    color: #e8e8e8 !important;
}

.text-body-secondary {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Navigation - ljusare mörk tema */
.navbar {
    background: rgba(42, 42, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar-light .navbar-nav .nav-link,
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
}



/* Footer - ljusare mörk tema */
footer {
    background: linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 100%) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Containers */
.container,
.container-fluid {
    background: transparent;
}

/* Lists */
.list-group-item {
    background-color: rgba(45, 45, 45, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f0f0f0 !important;
}

/* Tables */
.table {
    color: #f0f0f0 !important;
    --bs-table-bg: transparent;
}

.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-striped > tbody > tr:nth-of-type(odd) > th {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Modal - mörk tema */
.modal-content {
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f0f0f0 !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ========== ORIGINAL STYLES (PRESERVED) ========== */

a.btn {
    transition: all 0.3s ease;
}

a.btn:hover {
    transform: translateY(-2px);
}

form .form-control {
    border-radius: 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background-color: #3d3d3d;
    color: #e8e8e8;
}

form .form-control:focus {
    border-color: #00ffe1;
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 225, 0.25);
    background-color: #2e2e2e;
    color: #fff;
}

form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* ========== HOMEPAGE STYLES ========== */

/* Hero logo animation */
.hero-logo {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Text gradient utility */
.text-gradient {
  background: linear-gradient(to right, #00ffe1, #7af0ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hover lift effect for cards */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 255, 225, 0.15);
}

/* Alert info styling - mörk tema */
.alert-info {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 255, 225, 0.1) 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 0.75rem;
  color: #00ffe1;
}

/* Primary button */
.btn-primary {

  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
 
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}

/* ========== ACCESSIBILITY ========== */

/* Förbättra kontrast för läsbarhet */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Links */


a:hover {
    color: #7af0ff !important;
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent !important;
}



/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hover-lift:hover {
    transform: none !important;
  }
  
  .hero-logo {
    animation: none !important;
  }
}