/* === Base === */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  background: url('https://beatbounty.org/images/backgroundImg.png') no-repeat center center fixed;
  background-color: #0e0021;
  background-size: cover;
  color: #e0dfff;
}


/* === Responsive Typography === */
@media (min-width: 768px) {
  html { font-size: 16px; }
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  color: #e0dfff;
  font-weight: 600;
}

p, span, li, td, th {
  color: #dcd8f7;
  opacity: 0.85;
}

.text-glow {
  text-shadow: 0 0 8px rgba(142, 45, 226, 0.5);
}

.text-white { color: #ffffff !important; }
.text-light { color: #ccc !important; }

/* === Layout === */
#layout-wrapper,
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.container,
.custom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === Focus States === */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #8e2de2;
}

/* === Dashboard Cards === */
.dashboard-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 12px rgba(142, 45, 226, 0.15);
}

/* === Tables === */
.dashboard-table {
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 0.75rem;
  overflow: hidden;
}

thead th {
  background-color: rgba(255, 255, 255, 0.06);
  border: 4px solid black;
  border-radius: 12px;
  color: #000;
  padding: 12px 16px;
}

.table tbody td {
  background-color: rgba(255, 255, 255, 0.02);
  border: 4px solid black;
  border-radius: 12px;
  color: #dcd8f7;
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 8px rgba(142, 45, 226, 0.2);
}

/* === Buttons === */
.button-glow {
  background-color: transparent;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.button-glow:hover {
  color: #00c3ffc1;
  background-color: #00c3ffc1;
  box-shadow: 0 0 12px #00c3ffc1, 0 0 20px #00c3ffc1;
}

.button-blue    { border: 2px solid #00c3ffc1; color: #00c3ffc1; }
.button-yellow  { border: 2px solid #ffc107;   color: #ffc107;   }
.button-red     { border: 2px solid #ff4d4d;   color: #ff4d4d;   }
.button-gray    { border: 2px solid #ccc;      color: #ccc;      }

.btn-gradient {
  background: linear-gradient(to right, #8e2de2, #4a00e0);
  border: none;
  color: white;
}

.btn-outline-light {
  border-color: #aaa;
  color: #e0dfff;
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-cosmic {
  color: #fff;
  background-color: #6e42c1be;
  border: none;
  transition: background-color 0.2s ease;
}

.btn-cosmic:hover {
  background-color: #5b34a8;
}

.btn-cosmic-purple,
.btn-cosmic-cyan,
.btn-cosmic-rose {
  color: #ffffff;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
  border: none;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cosmic-purple {
  background: linear-gradient(to right, #5e35b1, #311b92);
}

.btn-cosmic-cyan {
  background: linear-gradient(to right, #00acc1, #006064);
}

.btn-cosmic-rose {
  background: linear-gradient(to right, #c2185b, #880e4f);
}

/* Hover Effects */
.btn-cosmic-purple:hover,
.btn-cosmic-cyan:hover,
.btn-cosmic-rose:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
  opacity: 0.95;
}


.btn-cosmic-purple:hover,
.btn-cosmic-cyan:hover,
.btn-cosmic-rose:hover {
  opacity: 0.88;
}

.btn-action {
  background-color: rgba(255, 255, 255, 0.08);
  color: #e0dfff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.btn-action:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.btn-outline-dark {
  --bs-btn-color: #fff;
  --bs-btn-border-color: #5a32a3ba;
  --bs-btn-hover-bg: #5a32a3ba;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #5a32a3ba;
  --bs-btn-active-color: #fff;
  --bs-btn-active-border-color: #5a32a3ba;
}

/* === Forms === */
input,
textarea,
select,
.form-control,
.form-select {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0dfff;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input:disabled,
.form-control:disabled,
.form-select:disabled {
  background-color: rgba(255, 255, 255, 0.03);
  color: #888;
  opacity: 0.6;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-control:focus,
.form-select:focus {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.07);
  border-color: #8e2de2;
  box-shadow: 0 0 0 0.2rem rgba(142, 45, 226, 0.3);
}

.form-select {
  appearance: none;
  background-image: none;
}

/* === Footer === */
.glass-footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 -2px 15px rgba(142, 45, 226, 0.1);
}

.glass-footer a {
  color: #ccc;
  text-decoration: underline;
}

.glass-footer a:hover {
  color: #cdbdfc;
}

/* === Panels & Cards === */
.glass-panel,
.song-card {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(200px); 
  border: 1px solid #6f42c1;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(142, 45, 226, 0.15);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  color: #e0dfff;
}

.song-card:hover {
  transform: scale(1.01);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.card-body.d-flex.justify-content-between.align-items-center {
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
}

/* === Feedback === */
.list-group {
  background-color: transparent;
  border: none;
}

.list-group-item {
  background-color: rgba(255, 255, 255, 0.04);
  color: #e0dfff;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(4px);
  transition: background-color 0.3s ease;
}

.list-group-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.list-group-item small,
.list-group-item .text-muted {
  color: rgba(255, 255, 255, 0.4);
}

.list-group-item strong,
.list-group-item b {
  color: #fff;
  font-weight: 600;
}

.list-group-item .badge {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ccc;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  margin-right: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.list-group-item .feedback-comment {
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

/* === Rating Bar === */
.progress {
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  height: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.5rem;
}

.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 0.75rem;
  white-space: nowrap;
  background-color: #6f42c1;
  transition: width 0.4s ease;
  border-radius: 12px;
}

.bg-purple {
  background-color: #7C4DFF;
}

/* === Custom Checkboxes === */
.form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0; /* remove default Bootstrap offset */
  vertical-align: middle;
  flex-shrink: 0;
}

.form-check-input:checked {
  background-color: #6c5ce7;
  border-color: #a29bfe;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
}

.form-check-label {
  margin-left: 0.5rem;
  line-height: 1.2;
  font-size: 1rem;
}

.form-check {
  display: flex;
  align-items: center;
}

/* Scrollbars for genre and language lists */
#genreList,
#languageList {
  scrollbar-width: thin;
  scrollbar-color: #6c5ce7 #1a1a2e;
}

#genreList::-webkit-scrollbar,
#languageList::-webkit-scrollbar {
  width: 8px;
}

#genreList::-webkit-scrollbar-thumb,
#languageList::-webkit-scrollbar-thumb {
  background-color: #6c5ce7;
  border-radius: 4px;
}

#genreList::-webkit-scrollbar-track,
#languageList::-webkit-scrollbar-track {
  background: #1a1a2e;
}

/* === Subscription Cards === */
.card {
  border-radius: 1rem;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.03);
  color: #e0dfff;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(142, 45, 226, 0.2);
}

.card-header {
  font-size: 1.25rem;
  padding: 1rem;
  text-transform: uppercase;
  border-bottom: none;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffffff;
}

.card ul li {
  font-size: 1rem;
  padding: 0.35rem 0;
  color: #ccc;
}

/* === Plan Buttons === */
.btn-subscribe {
  width: 100%;
  font-weight: 600;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-subscribe:disabled {
  background-color: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ccc;
  cursor: not-allowed;
}

.btn-subscribe-primary {
  background: linear-gradient(to right, #2196f3, #1a237e);
  color: #fff;
  border: none;
}

.btn-subscribe-primary:hover {
  background: linear-gradient(to right, #1976d2, #0d164d);
}

.btn-subscribe-success {
  background: linear-gradient(to right, #43a047, #1b5e20);
  color: #fff;
  border: none;
}

.btn-subscribe-success:hover {
  background: linear-gradient(to right, #2e7d32, #104415);
}

/* Shared card style (already added if using previous cards) */
.card,
.glass-panel {
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.03);
  color: #e0dfff;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.card:hover,
.glass-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(142, 45, 226, 0.2);
}

.card-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffffff;
}

/* Reuse list and button styles */
ul li {
  font-size: 1rem;
  padding: 0.35rem 0;
  color: #ccc;
}

.btn-subscribe {
  width: 100%;
  font-weight: 600;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-subscribe:disabled {
  background-color: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ccc;
  cursor: not-allowed;
}

.btn-subscribe-purple {
  background: linear-gradient(to right, #8e2de2, #4a00e0);
  color: #fff;
  border: none;
}

.btn-subscribe-purple:hover {
  background: linear-gradient(to right, #6a1cbf, #330087);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}
