/* Minimal custom styles on top of Bootstrap for better spacing and responsiveness */
:root { --am-gap: 1rem; }
body { padding-bottom: 100px; } /* Space for persistent player */
.card { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.navbar-brand { font-weight: 600; }
.table td, .table th { vertical-align: middle; }
.btn + .btn, .btn + button, button + .btn { margin-left: .5rem; }
.form-control-sm { height: 32px; padding: .25rem .5rem; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: var(--am-gap); }
/* Horizontal card thumbnail on the left */
.thumb-left {
  width: 120px;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: .25rem;
}

.card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Persistent Audio Player */
.persistent-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(13, 110, 253, 0.3);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15), 0 -1px 4px rgba(0, 0, 0, 0.05);
  z-index: 1050;
  padding: 15px 20px;
  transition: all 0.3s ease;
}

.player-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
  flex-wrap: wrap;
}

.player-info {
  flex: 1;
  min-width: 200px;
}

.player-title {
  font-weight: 600;
  margin-bottom: 2px;
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.player-meta {
  color: #555;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.player-progress {
  min-width: 150px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.player-progress:hover {
  opacity: 0.8;
}

.player-time {
  font-size: 0.9rem;
  white-space: nowrap;
  color: #444;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

.persistent-player .btn {
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.persistent-player .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .persistent-player {
    padding: 10px;
  }
  
  .player-content {
    gap: 10px;
  }
  
  .player-progress {
    width: 100%;
    min-width: unset;
  }
  
  .player-controls {
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-width: 576px) {
  .thumb-left { width: 96px; height: 96px; }
  .navbar .btn { margin-top: .5rem; }
}

/* Smooth Navigation Loading Indicator */
.smooth-nav-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.smooth-nav-loading .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Auto-play notification animation */
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  10% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}

/* Custom navbar background for frontend only */
.navbar-light {
  background-color: #00f0a8 !important;
  position: sticky;
  top: 0;
  z-index: 1040;
  margin-bottom: 0 !important;
}

/* Admin navbar styling */
.navbar-dark {
  position: sticky;
  top: 0;
  z-index: 1040;
}

.Ug-flag {
  position: sticky;
  top: 48px;
  padding: 10px 0;
  z-index: 1030;
  width: 100%;
  margin: 0;
  color: #FFF;
  font-family: Verdana!important;
  background: -webkit-linear-gradient(black, yellow, red); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(black, yellow, red); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(black, yellow, red); /* For Firefox 3.6 to 15 */
  background: linear-gradient(black, yellow, red);
}

.Ug-flag h4 {
  margin: 0;
  padding: 0;
}

.Ug-flag + .container-fluid {
  margin-top: 1.5rem;
}

/* Reduced font sizes for navigation buttons and brand */
.navbar .btn {
  font-size: 0.875rem;
}

.navbar-brand {
  font-size: 1rem !important;
}
