.color-0,
.color-7,
.color-r { color: #FFFFFF; }

.color-1 { color: #FCCBC7; }
.color-2 { color: #B2EFB8; }
.color-3 { color: #FFF7B3; }
.color-4 { color: #B5DAFF; }
.color-5 { color: #ADE4FF; }
.color-6 { color: #E1A4E9; }
.color-8 { color: #FFB99E; }
.color-9 { color: #E0E0E0; }

.ccolor-white   { color: #FFFFFF; }
.ccolor-red     { color: #F44336; }
.ccolor-green   { color: #4CAF50; }
.ccolor-blue    { color: #2196F3; }
.ccolor-yellow  { color: #FFEB3B; }
.ccolor-purple  { color: #9C27B0; }
.ccolor-cyan    { color: #00BCD4; }
.ccolor-magenta { color: #E91E63; }
.ccolor-orange  { color: #FF9800; }
.ccolor-black   { color: #000000; }

html {
  background-color: #212529;
  overflow-y: scroll;
}

body {
  margin: 0;
  padding-top: 85px;
  background-color: #212529;
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  user-select: text;
}

a, button {
  cursor: pointer;
  text-decoration: none;
}

/* ---- NAVBAR ---- */
.navbar,
.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(18, 15, 25, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar::before,
.navbar::after {
  content: none !important;
  display: none !important;
}

.navbar-brand {
  font-weight: 600;
  color: #c9b8ff !important;
}

.nav-link {
  color: #b5b5b5 !important;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #c7a5ff !important;
  text-shadow: 0 0 8px rgba(199, 165, 255, 0.6);
}

/* --- NAVBAR TOGGLER --- */
.navbar-toggler {
  background: linear-gradient(90deg, #7D5FFF, #B085FF);
  border: none !important;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  transition: all 0.2s ease-in-out;
}

.navbar-toggler:hover {
  background: linear-gradient(90deg, #8d73ff, #d6a2e8);
  box-shadow: 0 0 10px rgba(180, 150, 255, 0.45);
}

.navbar-toggler:active {
  background: linear-gradient(90deg, #6e4ee8, #a46aff);
  box-shadow: inset 0 0 6px rgba(130, 90, 255, 0.5);
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
  width: 1.3rem;
  height: 1.3rem;
}

.navbar-toggler:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(190, 150, 255, 0.6);
}

/* --- NAVBAR COLLAPSE --- */
.navbar-collapse {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.75rem 1rem;
  transition: none !important;
  height: auto !important;
  overflow: visible !important;
}

.collapsing {
  transition: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ---- BUTTONS ---- */
.btn, .btn-sm, .btn-lg {
  user-select: none;
  transition: all 0.15s ease-in-out;
  color: #fff !important;
  border-radius: 6px;
  border: 1px solid transparent;
  outline: none !important;
  font-weight: 500;
}

/* Filled buttons */
.btn-primary,
.btn-warning,
.btn-secondary {
  border: none;
  background: linear-gradient(90deg, #7D5FFF, #B085FF);
}

.btn-primary:hover,
.btn-warning:hover,
.btn-secondary:hover {
  background: linear-gradient(90deg, #8d73ff, #d6a2e8);
  box-shadow: 0 0 12px rgba(180, 150, 255, 0.45);
}

.btn-primary:active,
.btn-warning:active,
.btn-secondary:active {
  background: linear-gradient(90deg, #6e4ee8, #a46aff) !important;
  box-shadow: inset 0 0 6px rgba(130, 90, 255, 0.5);
}

/* Outline buttons */
.btn-outline-light {
  border: 1px solid rgba(170, 130, 255, 0.4);
  background: transparent;
  color: #eee7ff !important;
}

.btn-outline-light:hover {
  background: rgba(160, 120, 255, 0.15);
  border-color: rgba(190, 150, 255, 0.6);
  color: #fff !important;
  box-shadow: 0 0 12px rgba(160, 120, 255, 0.35);
}

.btn-outline-light:active,
.btn-outline-light.active {
  background: rgba(160, 120, 255, 0.25) !important;
  border-color: rgba(190, 150, 255, 0.8) !important;
  box-shadow: 0 0 12px rgba(170, 130, 255, 0.45) inset;
}

.btn-outline-light:focus {
  border-color: rgba(190, 150, 255, 0.9) !important;
  background: rgba(160, 120, 255, 0.12);
  box-shadow: 0 0 8px rgba(180, 140, 255, 0.4);
}

/* ---- CARDS ---- */
.card {
  background: #2B3035;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(180, 140, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 0 18px rgba(160, 120, 255, 0.05);
  transition: all 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(190, 150, 255, 0.2);
  box-shadow: 0 0 25px rgba(170, 130, 255, 0.2);
}

.card-body {
  color: #d8d0f0;
  position: relative;
}

.card-title {
  color: #d4baff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.card-text {
  color: #cbbfe8;
  font-size: 0.95rem;
}

.card img[alt="Server Icon"] {
  border-radius: 10px;
  border: 1px solid rgba(190, 150, 255, 0.25);
  background: rgba(255, 255, 255, 0.03);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(180,140,255,0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

/* ---- PROGRESS BAR ---- */
.progress {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.progress-bar {
  background: linear-gradient(90deg, #7D5FFF 0%, #D6A2E8 100%);
  box-shadow: 0 0 10px rgba(180, 140, 255, 0.5);
  transition: width 0.5s ease;
}

/* ---- FOOTER ---- */
footer {
  background-color: #2B3035;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #d6c9f7;
  padding: 2rem 0;
  text-align: center;
}

footer a {
  color: #b692ff;
  text-decoration: none;
}

footer a:hover {
  color: #d6a2e8;
  text-shadow: 0 0 8px rgba(180, 140, 255, 0.5);
}

/* ---- SELECTION ---- */
::selection {
  background: rgba(180, 140, 255, 0.4);
  color: #fff;
}

/* ---- HERO SECTION ---- */
section.text-center {
  background: linear-gradient(rgba(20, 10, 30, 0.75), rgba(10, 5, 20, 0.9)),
              url('../images/background.webp') center/cover no-repeat;
  color: #fff;
  text-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
  padding: 6rem 1rem;
}

section h1 {
  font-weight: 700;
  color: #c8b0ff;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

section p.lead {
  color: #e8dfff;
  max-width: 650px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

/* ---- DATATABLES ---- */
.dataTables_wrapper {
  background-color: #1e1f23;
  color: #ddd;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-family: "Inter", sans-serif;
}

table.dataTable {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 0.5rem !important;
  background: transparent !important;
}

table.dataTable thead th {
  background: transparent;
  color: #aaa;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
}

table.dataTable tbody tr {
  background-color: #2b2c31;
  border-radius: 0.75rem;
  box-shadow: 0 0 0 1px #2f3035, 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}

table.dataTable tbody tr:hover {
  background-color: #34363d;
  transform: scale(1.01);
}

table.dataTable tbody tr td {
  border-top: none !important;
  border-bottom: none !important;
  vertical-align: middle;
}

table.dataTable tbody td:first-child {
  font-weight: 600;
  text-align: center;
  border-left: 4px solid #7D5FFF;
  border-radius: 0.5rem 0 0 0.5rem;
  padding-left: 0.75rem;
}

table.dataTable tbody td:nth-child(2) {
  font-weight: 500;
  font-size: 1rem;
}

.dataTables_filter input {
  background-color: #2b2c31;
  color: #eee;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  width: 250px;
  outline: none;
}

.dataTables_filter input:focus {
  background-color: #34363d;
  border: 1px solid #4f8bff;
  box-shadow: 0 0 0 0.2rem rgba(79, 139, 255, 0.25);
}

.dataTables_length select {
  background-color: #2b2c31;
  color: #eee;
  border: none;
  border-radius: 0.5rem;
  padding: 0.25rem 1.5rem 0.25rem 0.5rem;
  width: auto !important;
  min-width: 70px;
  background-position: right 0.5rem center;
}

.dataTables_info,
.dataTables_paginate {
  color: #aaa !important;
}

.dataTables_paginate .paginate_button {
  color: #aaa !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0.5rem !important;
  margin: 0 0.15rem;
}

.dataTables_paginate .paginate_button.current {
  background: #4f8bff !important;
  color: #fff !important;
}

.dataTables_paginate .paginate_button:hover {
  background: #4f8bff33 !important;
}

.active > .page-link,
.page-link.active {
  background-image: linear-gradient(90deg, #7D5FFF, #8085FF) !important;
  border-color: #7D5FFF !important;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991.98px) {
  body { padding-top: 60px; }
}

@media (max-width: 575.98px) {
  body { padding-top: 60px; }
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow-x: hidden; /* ez szünteti meg a felesleges scrollbart */
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .custom-navbar .d-flex {
    width: 100%;
    justify-content: space-between;
    text-align: left !important;
    margin-top: 1rem;
  }
}
