/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY GLOBAL */
body {
  font-family: 'Poppins', sans-serif;
  color: #fff;

  background: linear-gradient(180deg, #011e10 0%, #000 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 100vh;
  background: #000;
  border-right: 1px solid #d4af37;
  padding-top: 30px;
}

.sidebar h2 {
  text-align: center;
  color: #d4af37;
  font-family: 'Cinzel', serif;
  margin-bottom: 20px;
}

.sidebar a {
  display: block;
  padding: 14px 20px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #111;
  transition: 0.3s;
}

.sidebar a:hover {
  background: #d4af37;
  color: #011e10;
}

/* CONTENT */
.content {
  margin-left: 220px;
  padding: 40px;
}

/* HEADINGS */
h1 {
  font-family: 'Cinzel', serif;
  color: #d4af37;
  margin-bottom: 30px;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  border: 1px solid #d4af37;
  padding: 25px;
  background: rgba(0,0,0,0.6);
  text-align: center;
  transition: 0.3s;
}

.card:hover {
  box-shadow: 0 0 20px #d4af37;
  transform: translateY(-5px);
}

/* BUTTON */
.btn,
button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  border: 1px solid #d4af37;
  color: #d4af37;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.btn:hover,
button:hover {
  background: #d4af37;
  color: #011e10;
  box-shadow: 0 0 15px #d4af37;
}

/* INPUTS (DARK MODE FIX) */
input, select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background: #111;
  border: 1px solid #d4af37;
  color: #fff;
}

/* FILE INPUT CLEAN */
.file-input {
  position: relative;
  border: 1px solid #d4af37;
  padding: 12px;
  cursor: pointer;
  text-align: center;
}

.file-input input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* CHECKBOX GROUP */
.checkbox-group {
  margin-top: 15px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d4af37;
  font-size: 14px;
  cursor: pointer;
}

/* Checkbox selbst */
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #d4af37; /* Gold */
  cursor: pointer;
}

/* INPUT DESIGN */
input, select, textarea {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  margin-bottom: 15px;
  background: #0a0a0a;
  border: 1px solid #d4af37;
  color: #fff;
}

input:focus {
  outline: none;
  box-shadow: 0 0 10px #d4af37;
}

/* BUTTON DESIGN */
button, .btn {
  background: transparent;
  border: 1px solid #d4af37;
  color: #d4af37;
  padding: 10px 20px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover, .btn:hover {
  background: #d4af37;
  color: #011e10;
  box-shadow: 0 0 15px #d4af37;
}

/* TOAST */
#toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #111;
  color: #fff;
  padding: 15px 25px;
  border-left: 4px solid #d4af37;
  opacity: 0;
  transform: translateX(100%);
  transition: 0.4s;
  z-index: 9999;
}

#toast.show {
  opacity: 1;
  transform: translateX(0);
}

#toast.success { border-color: #00ff88; }
#toast.error { border-color: red; }

/* PASSWORD RULES */
.pw-rules {
  list-style: none;
  padding: 0;
  font-size: 14px;
}

.pw-rules li {
  margin-bottom: 5px;
  color: red;
}

/* Tabelle */
table {
    width: 100%;
    border-collapse: collapse;
    background: #0f3a2c;
}

th {
    background: #011e10;
    padding: 10px;
}

td {
    padding: 8px;
    border-bottom: 1px solid #1f3d33;
}

tr:hover {
    background: #12382b;
}

.grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap:20px;
}

.card {
  position:relative;
  overflow:hidden;
  border-radius:15px;
}

.card img, .card video {
  width:100%;
  height:250px;
  object-fit:cover;
}

.blur {
  filter:blur(20px);
}

.premium-overlay {
  position:absolute;
  bottom:0;
  width:100%;
  background:rgba(0,0,0,0.7);
  text-align:center;
  padding:10px;
  color:#d4af37;
}

.card-actions {
  position:absolute;
  top:10px;
  right:10px;
  opacity:0;
}

.card:hover .card-actions {
  opacity:1;
}

.folder-card {
  border:1px solid #d4af37;
  padding:15px;
  margin-bottom:10px;
}

#lightbox {
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:black;
  justify-content:center;
  align-items:center;
}

#lightbox img, #lightbox video {
  max-width:90%;
  max-height:90%;
}

/* FOLDER CARD */
.folder-card {
  border: 1px solid #d4af37;
  padding: 20px;
  margin-bottom: 30px;
  background: rgba(0,0,0,0.7);
  max-width: 400px;
}

/* MEDIA GRID */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* MEDIA CARD */
.media-card {
  position: relative;
  border: 1px solid #d4af37;
  background: #000;
  overflow: hidden;
  transition: 0.3s;
}

.media-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px #d4af37;
}

/* IMAGE / VIDEO */
.media-card img,
.media-card video {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* FILE BOX */
.file-box {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* ACTIONS */
.media-actions {
  padding: 10px;
  text-align: center;
}

/* PREMIUM */
.blur {
  filter: blur(10px);
}

.premium-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background: gold;
  color: black;
  padding: 5px 10px;
  font-weight: bold;
}

/* LIGHTBOX CURSOR */
.media-card img:hover,
.media-card video:hover {
  cursor: zoom-in;
}

/* SMOOTH LOOK */
#lightbox {
  backdrop-filter: blur(5px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.toast {
    padding:15px;
    margin-bottom:15px;
    border-radius:8px;
    font-weight:bold;
}

.toast.success {
    background:#0f3a2c;
    border-left:4px solid #00ff88;
}

.toast.error {
    background:#3a0f0f;
    border-left:4px solid red;
}