/* === GLOBAL === */
:root {
  --primary-color: #ff3366;
  --link-color: #f1f1f1;
  --hover-color: var(--primary-color);
  --nav-color: #1f1f1f;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background: #121212;
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, color 0.3s ease;
}

body.light {
  background: #f7f7f7;
  color: #111;
  --primary-color: #d92b5f;
  --link-color: #111;
  --nav-color: #f0f0f0;
}

/* === BEAT CONTAINER === */
.media-item {
  background: #1a1a1a;
  border: 1px solid #2c2c2c;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.5rem;
  transition: background 0.3s ease;
}

body.light .media-item {
  background: #f0f0f0;
  border-color: #ddd;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

main.content {
  padding-left: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* === AUDIO PLAYER === */
.audio-player {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.play-btn {
  font-size: 1.5rem;
  border: none;
  background: var(--primary-color);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.play-btn:hover {
  background: #d92b5f;
}

.track-info {
  flex: 1;
}

.track-title {
  font-weight: bold;
  font-size: 1rem;
}

.time-info {
  font-size: 0.8rem;
  margin: 0.3rem 0;
  color: #ccc;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #444;
  border-radius: 4px;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0%;
  background: var(--primary-color);
  transition: width 0.2s;
}

/* === HEADER === */
.main-header {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1rem 2rem;
  padding-top: calc(1rem + env(safe-area-inset-top));
  position: sticky;
  top: 0;
  z-index: 2000;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-shadow: 0 0 8px var(--primary-color);
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
}

body.light .logo {
  color: var(--primary-color);
  text-shadow: none;
}

.user-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

#themeToggle {
  background: none;
  border: 2px solid currentColor;
  border-radius: 1.2rem;
  padding: 0.3rem 0.8rem;
  color: inherit;
  cursor: pointer;
  font-size: 1.1rem;
}

/* === USER DROPDOWN === */

.user-menu.open .user-dropdown {
  display: block;
  opacity: 1;
}
.user-menu {
  position: relative;
  display: inline-block;
}

.user-btn {
  background: none;
  border: none;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.user-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.user-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    min-width: 180px;
    padding: 0.5rem 0;
    z-index: 999;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
  }

body.light .user-dropdown {
  background: rgba(255,255,255,0.95);
}

.user-dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--primary-color);
  text-decoration: none;
}

  .user-dropdown a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
  }

  .navbar {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    overflow: visible;
    padding: 0 1rem;
  }

  .nav-container {
    position: relative;
  }

  /* === Navigation Styles === */
  .nav {
    display: flex;
    gap: 1rem;

    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
  }


.nav li {
  position: relative;
}

.nav a {
  text-decoration: none;
  color: var(--link-color, #f1f1f1);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
  font-size: 0.95rem;
}

.nav a:hover {
  background-color: var(--hover-color);
  color: #fff;
}

/* === Dropdown Menü === */

.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--nav-color, #1f1f1f);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 200px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1000;
  flex-direction: column;
}

.dropdown.open .dropdown-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.dropdown:hover .dropdown-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--link-color, #f1f1f1);
  text-decoration: none;
  transition: background-color 0.2s;
}

.dropdown-menu li a:hover {
  background-color: var(--hover-color);
  color: #fff;
  border-radius: 4px;
}

/* === Mobile Menü Toggle === */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

  .menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: var(--link-color);
    border-radius: 5px;
  }

@media (max-width: 768px) {
  .main-header {
    padding-left: 0;
    padding-right: 0;
  }

  .header-row {
    padding: 0 1rem;
  }

  .navbar-container {
    padding: 0;
    position: static;
  }

  .nav-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--nav-color, #1f1f1f);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 8px 8px;
    z-index: 999;
    padding: 0.5rem 0;
  }

  .nav-container.active {
    display: block;
  }

  .nav {
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
  }

  .nav li {
    width: 100%;
  }

  .nav a {
    width: 100%;
  }

  .menu-toggle {
    display: flex;
    margin-right: auto;
    margin-top: 0.5rem;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding: 0;
    transform: none;
    opacity: 1;
    display: none;
    flex-direction: column;
    width: 100%;
    min-width: 100%;
  }

  .dropdown.open .dropdown-menu {
    display: flex;
  }
}
/* === RESPONSIVE === */
@media (max-width: 768px) {
  .navbar {
    display: flex;
    justify-content: center;
  }

  main.content {
    padding: 1rem;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}

/* === TABLES === */
.user-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
}

.user-table thead {
  background-color: #3a3a3a;
  color: #fff;
}

.user-table th,
.user-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #333;
}

.user-table tbody tr:nth-child(even) {
  background: #242424;
}

.user-table .profile-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0,0,0,0.4);
}

.user-table .actions {
  display: flex;
  gap: 0.5rem;
}

body.light .user-table {
  background: #fff;
}

body.light .user-table thead {
  background: #e0e0e0;
  color: #111;
}

body.light .user-table th,
body.light .user-table td {
  border-bottom: 1px solid #ccc;
}

body.light .user-table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

/* === USER CARDS === */
.user-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.user-card {
  background: #1a1a1a;
  border: 1px solid #2c2c2c;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.user-card .user-details {
  flex: 1;
}

.user-card .profile-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 5px rgba(0,0,0,0.4);

  border: 2px solid #2c2c2c;
}

.user-card .actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

body.light .user-card {
  background: #f0f0f0;
  border-color: #ddd;
}
body.light .user-card .profile-img {
  border-color: #ccc;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.btn.edit {
  background-color: #2196f3;
  color: #fff;
}

.btn.edit:hover {
  background-color: #1976d2;
}

.btn.delete {
  background-color: #f44336;
  color: #fff;
}

.btn.delete:hover {
  background-color: #d32f2f;
}

/* === FOOTER === */
.main-footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  color: #ccc;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
}

body.light .main-footer {
  background: rgba(255, 255, 255, 0.6);
  color: #333;
  border-top: 1px solid rgba(0,0,0,0.1);
}
