*{
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

body{
 background-color: #f4f4f4;
 overflow-x: hidden;
 text-align: center;
}

/* Presne stredové odkazy */
.navbar-center {
    position: absolute !important; 
    left: 50% !important;
    transform: translateX(-50%) !important;
}
/* Pozadie rozbaleného hamburger menu */
.navbar-collapse {
    background-color: #212529 !important; /* bg-dark */
}

.sidebar-sticky {
    position: sticky;
    top: 56px;
    padding: 20px;
}

.sidebar-title {
    margin-bottom: 25px;
    font-weight: bold;
    letter-spacing: 1px;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-heading {
    font-size: 18px;
    text-transform: uppercase;
    color: #adb5bd;
    margin-bottom: 10px;
    display: block;
    font-weight: bold;
}

.sidebar .nav-link {
    color: #dee2e6;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sidebar .nav-link i {
    margin-right: 8px;
}

.sidebar .nav-link:hover {
    background-color: #343a40;
    color: #fff;
}
:root {
    --sidebar-width: 260px;
    --sidebar-collapsed: 25px;
    --navbar-height: 56px;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    height: calc(100vh - 56px);
    width: 260px;
    background-color: #212529;
    z-index: 1050;
    overflow: hidden;
}

/* zatvorený */
.sidebar.closed {
    width: 25px;
}
.sidebar-sticky{
  top:0;
}
/* TOGGLE – VNÚTRI SIDEBARU */
.sidebar-toggle {
    position: absolute;
    top: 10px;
    right: 0;
    width: 25px;
    height: 50px;
    background-color: #198754;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px 0 0 6px;
    z-index: 1100;
}


/* ZATVORENÝ SIDEBAR */
.sidebar.closed .sidebar-content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* ===== MAIN ===== */
#mainContent {
    margin-left: var(--sidebar-width);
    padding: 20px;
}

/* MAIN keď sidebar zatvorený */
.sidebar.closed ~ #mainContent {
    margin-left: var(--sidebar-collapsed);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .sidebar {
        transform: translateX(0);
    }

    .sidebar.open {
        width: 100%;
    }

    .sidebar.closed {
        width: var(--sidebar-collapsed);
    }

    /* skry main pri otvorenom sidebare */
    .sidebar.open ~ #mainContent {
        display: none;
    }

    .sidebar.closed ~ #mainContent {
        margin-left: var(--sidebar-collapsed);
        display: block;
    }
}



/* Lepší spacing na mobile */
@media (max-width: 991.98px) {
    .navbar-center{
        position: static !important;
        left: auto !important;
        transform: none !important;
    }
    .navbar-nav {
        padding: 1rem 0 !important;
    }

    .navbar-collapse form {
        padding: 0 1rem 1rem !important;
    }
}
h2{
  margin-top: 50px;
}

table {
  width: 80%;
  margin: 20px auto;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
}
th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
th {
  background-color: #333;
  color: white;
}
tr:hover {
  background-color: #f1f1f1;
  cursor: pointer;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background-color: #f5f5f5;
  padding: 30px;
  width: 60%;
  max-width: 700px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: left;
  color: black;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}
.modal-header::before, .modal-header::after{
  display: block;
  content: none;
}
.modal-header h2 {
  margin: 0;
  font-size: 30px;
  font-weight: bold;
}
.close {
  font-size: 25px;
  font-weight: bold;
  cursor: pointer;
  color: black;
}
.close:hover {
  color: red;
}
.modal-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 10px;
}
.modal-body div {
  width: 48%;
  margin-bottom: 10px;
}
.modal-body strong {
  display: block;
  font-size: 16px;
  margin-bottom: 3px;
}
.ban-reason {
  width: 100%;
  background: #eee;
  padding: 20px 10px;
  border-radius: 5px;
  font-size: 16px;
}
.expired, .unbanned {
  color: rgb(0, 146, 7);
  font-weight: bold;
}
.active {
  color: red;
  font-weight: bold;
}
.unban{
  width: 100%;
}
.unban button {
  width: 100%;
  padding: 10px 5px;
  outline: 0;
  border: 0;
  background-color: #333;
  color: #fff;
  margin-top: 10px;
  border-radius: 5px;
  font-size: 20px;
  font-weight: bold;
}
.unban button:hover{
  background-color: #4d4c4c;
}

@media (max-width: 768px) {
  .modal-content {
    width: 90%; /* Zmenši šírku modalu na 90% obrazovky pri malých obrazovkách */
    padding: 20px; /* Zmenši padding pre menšie obrazovky */
  }

  .modal-body div {
    width: 100%; /* Zobraziť každý riadok na celú šírku */
  }

  .modal-header h2 {
    font-size: 24px; /* Zmenši nadpis */
  }

  .close {
    font-size: 20px; /* Zmenši veľkosť písma pre zavretie */
  }

  .ban-reason {
    padding: 15px 10px; /* Zmenši padding pre menšie obrazovky */
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 95%; /* Ešte menšia šírka pre veľmi malé obrazovky */
    padding: 15px; /* Menší padding */
  }

  .modal-header h2 {
    font-size: 20px; /* Ešte menší nadpis */
  }

  .close {
    font-size: 18px; /* Zmenši ikonu zavretia */
  }

  .modal-body div {
    width: 100%; /* Na najmenších obrazovkách všetky divy budú na celú šírku */
  }
}

/* Všetky tlačidlá */
.edit-btn, .delete-btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Hover efekty */
.edit-btn:hover {
    background-color: #e69500; /* tmavší oranžový */
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    color: #fff;
}

.delete-btn:hover {
    background-color: #c82333; /* tmavšia červená */
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    color: #fff;
}

/* Ikonky */
.edit-btn i, .delete-btn i {
    margin-right: 4px;
}
