/* Global styles for the Ruhrburg Roleplay website */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #f5f5f5;
  background-color: #0a192f;
}

header {
  background-color: #0f3057;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  /* Logo container now holds an image. Remove textual styling. */
  display: flex;
  align-items: center;
}

header .logo img {
  height: 50px;
}

/* New styles for the RBINFO logo */
header .logo img.rbinfo-logo {
  height: 60px; /* Slightly larger for RBINFO */
  margin-right: 10px; /* Add some space if needed */
}

/* New styles for the Rundschau logo */
header .logo img.rundschau-logo {
  height: 55px; /* Slightly different size for Rundschau */
  border-radius: 5px; /* Optional: subtle rounded corners */
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

header nav a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

header nav a:hover,
header nav a.active {
  color: #00aaff;
}

/*
 * Dropdown-Menü für Verwaltungsoptionen
 *
 * Die Navigationsliste bleibt horizontal ausgerichtet. Für Einträge
 * mit der Klasse "dropdown" wird ein untergeordnetes Menü angezeigt,
 * sobald sich der Mauszeiger darüber befindet. Dieses Menü wird
 * absolut positioniert und erhält einen dunkleren Hintergrund. Die
 * Untereinträge werden untereinander angeordnet.
 */
header nav ul li.dropdown {
  position: relative;
}
header nav ul li .dropdown-content {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0d2a4a; /* Slightly darker than header for distinction */
  min-width: 180px;
  padding: 5px 0; /* Adjust padding */
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  list-style: none;
  border-top: 3px solid #00aaff; /* A small accent line at the top */
}
header nav ul li .dropdown-content li {
  display: block;
  margin: 0;
}
header nav ul li .dropdown-content a {
  display: block;
  padding: 10px 20px; /* More vertical padding for readability */
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  border-left: 3px solid transparent; /* Prepare for hover effect */
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-left-color 0.2s ease;
}
header nav ul li .dropdown-content a:hover {
  background-color: #0a1f38; /* Slightly lighter dark background on hover */
  color: #00aaff;
  border-left-color: #00aaff; /* Highlight with the accent color */
}
header nav ul li.dropdown:hover > .dropdown-content {
  display: flex;
}

/* Styles for the "Logged in as" dropdown button */
header nav ul li.dropdown.account .dropbtn {
  background-color: #00aaff; /* Highlight background */
  color: #0a192f; /* Darker text for contrast */
  padding: 10px 18px; /* Slightly more padding for a larger touch area */
  border-radius: 25px; /* More rounded, pill-like shape */
  font-weight: 600; /* Bolder text */
  text-decoration: none; /* Ensure no underline */
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.3s ease; /* Add box-shadow and transform to transition */
  display: flex; /* Allow icon and text to align */
  align-items: center;
  gap: 8px; /* Space between icon and text */
  box-shadow: 0 4px 10px rgba(0, 170, 255, 0.2); /* Subtle glow effect */
  cursor: pointer; /* Indicate it's clickable */
  position: relative; /* Needed for potential pseudo-elements */
  overflow: hidden; /* Hide anything that overflows during animation */
  white-space: nowrap; /* Prevent text from wrapping */
}

header nav ul li.dropdown.account .dropbtn:hover {
  background-color: #008fcc; /* Darker on hover */
  color: #ffffff; /* White text on hover for better contrast */
  transform: translateY(-2px); /* Slight lift effect */
  box-shadow: 0 6px 15px rgba(0, 170, 255, 0.4); /* More pronounced glow on hover */
}

/* Styling for the profile picture in the header */
.nav-profile-picture {
  width: 30px; /* Smaller size for the header */
  height: 30px;
  border-radius: 50%; /* Round image */
  object-fit: cover; /* Image content fills the circle */
  margin-right: 8px; /* Space to the text */
  border: 1px solid #00aaff; /* Small border in accent color */
  vertical-align: middle; /* For vertical alignment with text */
}

/* Font Awesome Icon placeholder in header if no profile picture is set */
.dropbtn .fas.fa-user-circle {
  font-size: 28px; /* Matching size to the image */
  margin-right: 8px;
  color: #c9c9c9; /* Slightly lighter gray for standard icon */
  vertical-align: middle;
}


/* Optional: Pfeil nach unten im Dropdown */
.user-menu-toggle .fa-caret-down {
  margin-left: auto; /* Sorgt dafür, dass der Pfeil am rechten Rand ist */
  transition: transform 0.3s ease;
}

.dropdown.account:hover .user-menu-toggle .fa-caret-down {
  transform: rotate(180deg); /* Pfeil dreht sich beim Öffnen des Dropdowns */
}


.container {
  width: 90%;
  margin: 0 auto;
}

/* Hero section styles */
/*
 * Hero section styles
 *
 * The hero uses a background image that covers the entire area. An
 * overlay layer darkens the image so that text remains legible. The
 * default background is set via inline style on the section tag by
 * slideshow.js or by the static attribute in index.html. The height
 * remains responsive on different screens.
 */
.hero {
  position: relative;
  color: #ffffff;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  z-index: 1;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 20px;
}

.cta-button {
  display: inline-block;
  background-color: #00aaff;
  color: #0a192f;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button.discord {
  margin-left: 10px;
  background-color: #7289da;
  color: #ffffff;
}

.cta-button.discord:hover {
  background-color: #5b6eae;
}

/* Container for grouping CTA buttons */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Dark overlay on the hero background */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  z-index: 0;
  /* Apply a slight blur effect to the backdrop so that text stands out against
     busy background images. This uses the backdrop-filter property which
     blurs only the content behind this element. */
  backdrop-filter: blur(4px);
}

/*
 * Slider controls for the hero background
 *
 * The slider controls are absolutely positioned within the hero section and only
 * become visible when there is more than one image in the slideshow. Each
 * control is a button styled to look like a circular arrow. The container
 * itself uses pointer-events: none so it does not intercept clicks on the
 * hero content, while the buttons override this with pointer-events: auto to
 * remain clickable.
 */
.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  padding: 0 20px;
}
.slider-controls button {
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.slider-controls button:hover {
  background-color: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}
.cta-button:hover {
  background-color: #008fcc;
}

.city-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.city-silhouette svg {
  width: 100%;
  height: 100%;
}

/* Features section styles */
.features {
  padding: 60px 0;
  background-color: #071c33;
}

.features h3 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  width: 90%;
  margin: 0 auto;
}

.feature {
  background-color: #0f3057;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature .icon {
  margin-bottom: 15px;
}

.feature h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.feature p {
  font-size: 0.95rem;
}

/* About section */
.about {
  padding: 60px 0;
  background-color: #0a192f;
}

.about h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

.about p {
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Footer styles */
footer {
  background-color: #0f3057;
  padding: 20px 0;
  text-align: center;
}

footer p {
  font-size: 0.8rem;
}

/* Zusätzliche Styles für manage_users.php und Modals */

/* Tabelle und Formulare in manage_users.php */
.admin-container {
    max-width: 1200px;
    margin: 40px auto;
    background-color: #071c33;
    padding: 20px;
    border-radius: 8px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
th, td {
    padding: 8px;
    border-bottom: 1px solid #123456;
    text-align: left;
    vertical-align: middle;
}
form.inline {
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}
input[type="password"],
input[type="text"], /* Added for consistency, although not directly used in modals for now */
select {
    padding: 10px; /* Increased padding */
    border-radius: 5px; /* Slightly more rounded */
    border: none;
    margin-right: 5px;
    background-color: #0d2a4a; /* Darker background */
    color: #ffffff;
    width: auto; /* Allow input fields to size naturally within flex/grid contexts */
}
input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    accent-color: #00aaff; /* Colors the checkbox itself */
}
label {
    display: inline-block;
    margin-right: 10px;
    font-size: 0.95em; /* Slightly larger font */
    white-space: nowrap;
    color: #e0e0e0; /* Slightly lighter label color */
}
button {
    padding: 8px 15px; /* More padding */
    background-color: #00aaff;
    color: #0a192f;
    border: none;
    border-radius: 5px; /* Slightly more rounded */
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin: 2px;
    font-weight: 600; /* Bolder text */
}
button:hover {
    background-color: #008fcc;
    transform: translateY(-1px); /* Slight lift */
}
button:active {
    transform: translateY(0); /* Press effect */
}
.message {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #1a4f36; /* Soft green background */
    color: #e0ffe0; /* Light green text */
    border-radius: 5px;
}
.error-message {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #4f1a1a; /* Soft red background */
    color: #ffe0e0; /* Light red text */
    border-radius: 5px;
}

/* Styles for all Modals */
.modal {
    display: none; /* <-- Ändere dies zurück auf none! */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    /* Die folgenden Zeilen bleiben, damit das Modal beim Öffnen zentriert wird */
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: #0f3057;
    padding: 30px;
    border: 1px solid #00aaff;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6); /* More pronounced shadow */
    text-align: center;
    position: relative;
    transform: scale(0.95); /* Initial scale for animation */
    opacity: 0; /* Initial opacity for animation */
    animation: fadeInScale 0.3s forwards ease-out;
}

@keyframes fadeInScale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h3 {
    margin-top: 0;
    color: #ffffff;
    margin-bottom: 25px; /* More space */
    font-size: 1.8rem; /* Larger heading */
}

.modal-content input[type="password"],
.modal-content select,
.modal-content input[type="text"],
.modal-content input[type="file"] { /* Apply to file input as well */
    width: calc(100% - 20px); /* Account for padding */
    padding: 12px; /* More padding */
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #123456;
    color: #ffffff;
    box-sizing: border-box;
    border: 1px solid #1f4f82; /* Subtle border */
}
/* Focus effect for modal inputs */
.modal-content input[type="password"]:focus,
.modal-content select:focus,
.modal-content input[type="text"]:focus,
.modal-content input[type="file"]:focus {
    outline: none;
    border-color: #00aaff; /* Highlight border on focus */
    box-shadow: 0 0 0 2px rgba(0, 170, 255, 0.5); /* Glow effect on focus */
}


.modal-content .current-profile-picture {
    width: 100px; /* Larger image in modal */
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00aaff; /* Thicker border */
    margin-bottom: 20px; /* More space */
    display: block; /* For centering */
    margin-left: auto;
    margin-right: auto;
}

.modal-content label {
    display: flex; /* Use flex for checkbox and text alignment */
    align-items: center;
    text-align: left;
    margin-bottom: 10px;
    color: #ffffff;
}
.modal-content label input[type="checkbox"] {
    margin-right: 10px;
    width: 20px; /* Larger checkbox */
    height: 20px;
    min-width: 20px; /* Prevent shrinking */
    min-height: 20px; /* Prevent shrinking */
    cursor: pointer;
}

.modal-content button {
    margin: 5px 10px; /* Adjusted margin */
    min-width: 120px; /* Ensure buttons have a minimum width */
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px; /* Adjusted position */
    right: 20px;
    font-size: 32px; /* Larger close button */
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.close-button:hover,
.close-button:focus {
    color: #ffffff;
    transform: rotate(90deg); /* Little spin on hover */
    text-decoration: none;
}

/* Styles for profile picture thumbnail in the table */
.profile-picture-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 8px;
    border: 1px solid #00aaff;
}

/* Icon placeholder in the manage_users table if no image is present */
.profile-picture-thumbnail.fas {
    font-size: 40px; /* Same size as the image */
    color: #00aaff; /* Accent color for the icon */
    vertical-align: middle;
}