/* ========== Global Styles ========== */
html, body, #content, .section-container, 
.card-thumbnail, .card-landscape, .card-portrait, .card-placeholder,
.modal-content, .dropdown-menu-dark, .navbar, .bg-dark {
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font: bold 1em Verdana, sans-serif;
}

body, html {
  height: 100%;
  font-family: Verdana, sans-serif !important;
  color: white;
  background: #121212 url('../img_cpc/startseite/CPC_loggin_BG_2400x800_New_V01.jpg') no-repeat center center fixed;
  background-size: cover;
}

a, a:link, a:visited {
  color: #ffffff;
  text-decoration: none;
}

a:hover {
  color: #6b8e23;
}

/* ========== Container & Content ========== */
#content {
  background-color: rgba(0, 0, 0, 0.85);
  padding: 20px;
  border-radius: 8px;
}

.section-container {
  margin: 20px auto;
  padding: 20px;
  max-width: 80%;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Zentrierter flex-Container */
.container-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ========== Card Styles ========== */
.card-thumbnail {
  width: 90px;
  height: 130px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin: 10px;
  cursor: move;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Für Land- und Portraitkarten */
.card-landscape {
  width: 120px;
  height: 80px;
}

.card-portrait {
  width: 80px;
  height: 120px;
}

/* Platzhalter für neue Karten */
.card-placeholder {
  width: 90px;
  height: 130px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.card-placeholder:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ========== Battlegrid Layout ========== */
.battlegrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 8px;
}

/* ========== Buttons ========== */
.button-custom {
  display: inline-block;
  width: 100px;
  height: 35px;
  background-color: #333;
  color: #fff;
  font-weight: bold;
  text-align: center;
  line-height: 35px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.button-custom:hover {
  background-color: #555;
}

.button-custom.bootstrap-style {
  width: 176px;
}

/* ========== Navbar & Dropdown ========== */
.bg-dark {
  background-color: #343a40 !important;
}

.navbar, .dropdown-menu-dark {
  background-color: #343a40;
}

.dropdown-menu-dark {
  border: none;
}

.dropdown-item:hover {
  background-color: #495057;
}

/* ========== Modals ========== */
.modal-content {
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 8px;
}

.modal-header, .modal-footer {
  border-color: #555;
}

.close {
  color: #fff;
}

.close:hover {
  color: #ff4444;
}

/* Upload Modal Spezifikationen */
#uploadModal .modal-content {
  background-color: #333;
  border-radius: 8px;
}

#uploadModal .alert-info {
  font-size: 0.9rem;
  color: #cfe2ff;
  background-color: #084298;
  border-color: #084298;
}

/* ========== Text Utilities ========== */
.text-muted {
  color: #adb5bd !important;
}

.text-white {
  color: #fff !important;
}

/* ========== Tabellen und Forms ========== */
table {
  font-family: Verdana, sans-serif;
  font-size: 11px;
  color: white;
}

/* Diverse Globale Textklassen */
.norm, .norm1, .normg, .norm2, .norm2r, .normres, .normres1, .normb, .normc, .normr, .normbr, .normbc {
  color: #ffffff;
  font-size: 11px;
}

.ueber1, .name, .nick {
  font-weight: bold;
  font-size: 13px;
}

/* Taskleiste */
.taskleiste, .divtask, .divlink {
  cursor: pointer;
}

.divlink:hover {
  color: #6b8e23;
  text-decoration: underline;
}

/* Clearfix */
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* Standard (Dark Mode) */
body.dark-mode .dropdown-menu-dark {
  background-color: #343a40;
  border: none;
}

body.dark-mode .dropdown-item:hover {
  background-color: #495057;
}


/* ========== Light Mode ========== */
body.light-mode {
  background: #f0f0f0;
  color: #111;
}

body.light-mode #content,
body.light-mode .section-container,
body.light-mode .card-container {
  background-color: rgba(255, 255, 255, 0.8);
  color: #111;
}

body.light-mode .card-thumbnail,
body.light-mode .card-landscape,
body.light-mode .card-portrait,
body.light-mode .card-placeholder {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid #ddd;
}

body.light-mode .card-placeholder:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .modal-content {
  background-color: #fff;
  color: #111;
}

body.light-mode .modal-header,
body.light-mode .modal-footer {
  border-color: #ccc;
}

body.light-mode .bg-dark {
  background-color: #f8f9fa !important;
}

body.light-mode .text-white {
  color: #111 !important;
}

body.light-mode a,
body.light-mode a:hover {
  color: #0066cc;
}

body.light-mode .dropdown-item:hover {
  background-color: #e9ecef;
}

body.light-mode .dropdown-menu-dark {
  background-color: #f8f9fa;
  color: #111;
  border: none;
}

body.light-mode .dropdown-item {
  color: #111;
}

body.light-mode .dropdown-item:hover {
  background-color: #e9ecef;
  color: #000;
}
