/**
 * mp3 Culture Congo — Espace artiste (basali)
 * Couche moderne par-dessus AdminLTE / Bootstrap existants.
 */

:root {
  --basali-primary: #1a3a5c;
  --basali-primary-light: #2d6a9f;
  --basali-accent: #3d8fd4;
  --basali-success: #10b981;
  --basali-warning: #f59e0b;
  --basali-danger: #ef4444;
  --basali-surface: #ffffff;
  --basali-bg: #eef2f7;
  --basali-text: #1e293b;
  --basali-muted: #64748b;
  --basali-radius: 12px;
  --basali-shadow: 0 4px 24px rgba(26, 58, 92, 0.08);
  --basali-shadow-hover: 0 12px 32px rgba(26, 58, 92, 0.14);
  --basali-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ── */
.basali-modern {
  font-family: 'Source Sans Pro', 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.basali-modern .wrapper,
.basali-modern .content-wrapper {
  background: var(--basali-bg);
}

.basali-modern .content-wrapper {
  animation: basaliFadeUp 0.45s ease-out both;
}

@keyframes basaliFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.basali-modern .box,
.basali-modern .info-box,
.basali-modern .small-box {
  border-radius: var(--basali-radius);
  box-shadow: var(--basali-shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform var(--basali-transition), box-shadow var(--basali-transition);
}

.basali-modern .box:hover {
  transform: translateY(-2px);
  box-shadow: var(--basali-shadow-hover);
}

.basali-modern .box-header {
  border-radius: var(--basali-radius) var(--basali-radius) 0 0;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 18px;
}

.basali-modern .box-title {
  font-weight: 700;
  color: var(--basali-text);
  letter-spacing: -0.01em;
}

.basali-modern .content-header {
  padding: 20px 15px 10px;
}

.basali-modern .content-header > h1.basali-hero-done {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.basali-modern .content-header > h1:not(.basali-hero-done) {
  background: linear-gradient(135deg, var(--basali-primary) 0%, var(--basali-accent) 100%);
  color: #fff;
  border-radius: var(--basali-radius);
  padding: 20px 24px;
  margin: 0 0 16px;
  box-shadow: var(--basali-shadow);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.basali-modern .content-header > h1:not(.basali-hero-done) > small {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  font-size: 14px;
  margin-top: 6px;
}

.basali-modern .breadcrumb {
  background: transparent;
  padding-left: 0;
}

/* ── Header / navbar ── */
.basali-modern .main-header .logo {
  background: linear-gradient(135deg, var(--basali-primary) 0%, var(--basali-primary-light) 100%) !important;
  transition: opacity var(--basali-transition);
}

.basali-modern .main-header .logo:hover {
  opacity: 0.92;
}

.basali-modern .main-header .navbar {
  background: linear-gradient(90deg, var(--basali-primary-light) 0%, var(--basali-accent) 100%) !important;
  box-shadow: 0 2px 12px rgba(26, 58, 92, 0.15);
}

.basali-modern .main-header .navbar .nav > li > a {
  transition: background var(--basali-transition);
}

.basali-modern .main-header .navbar .nav > li > a:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

.basali-modern .user-menu .user-header {
  background: linear-gradient(135deg, var(--basali-primary), var(--basali-accent)) !important;
}

.basali-modern .user-menu .user-header img,
.basali-modern .user-panel .image img,
.basali-modern .user-image {
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

/* ── Sidebar ── */
.basali-modern .main-sidebar {
  background: linear-gradient(180deg, #1e293b 0%, var(--basali-primary) 100%) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
}

.basali-modern .sidebar-menu > li.header {
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 16px 6px;
  background: transparent !important;
}

.basali-modern .sidebar-menu > li > a {
  border-radius: 8px;
  margin: 2px 10px;
  padding: 11px 14px;
  transition: all var(--basali-transition);
  border-left: 3px solid transparent;
}

.basali-modern .sidebar-menu > li > a:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-left-color: var(--basali-accent);
  transform: translateX(3px);
}

.basali-modern .sidebar-menu > li.active > a {
  background: rgba(61, 143, 212, 0.25) !important;
  border-left-color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.basali-modern .sidebar-menu > li > a > i {
  width: 22px;
  text-align: center;
  margin-right: 4px;
}

.basali-modern .user-panel {
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.basali-modern .user-panel > .info > p {
  font-weight: 600;
  font-size: 15px;
}

.basali-sidebar-logout {
  margin: 8px 10px 16px !important;
}

.basali-sidebar-logout > a {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fecaca !important;
  border-left-color: #ef4444 !important;
}

.basali-sidebar-logout > a:hover {
  background: rgba(239, 68, 68, 0.28) !important;
}

/* ── Forms & buttons ── */
.basali-modern .form-control {
  border-radius: 8px;
  border-color: #cbd5e1;
  box-shadow: none;
  transition: border-color var(--basali-transition), box-shadow var(--basali-transition);
  height: 40px;
}

.basali-modern .form-control:focus {
  border-color: var(--basali-accent);
  box-shadow: 0 0 0 3px rgba(61, 143, 212, 0.2);
}

.basali-modern .btn {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--basali-transition);
}

.basali-modern .btn-primary {
  background: linear-gradient(135deg, var(--basali-primary), var(--basali-primary-light));
  border: none;
  box-shadow: 0 4px 12px rgba(45, 106, 159, 0.35);
}

.basali-modern .btn-primary:hover,
.basali-modern .btn-primary:focus {
  background: linear-gradient(135deg, #153049, var(--basali-primary));
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(45, 106, 159, 0.45);
}

.basali-modern .btn-success {
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.basali-modern .btn-danger {
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.basali-modern .alert {
  border-radius: 10px;
  border: none;
  box-shadow: var(--basali-shadow);
}

.basali-modern .table {
  border-radius: 8px;
  overflow: hidden;
}

.basali-modern .table > thead > tr > th {
  background: #f8fafc;
  color: var(--basali-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #e2e8f0 !important;
}

.basali-modern .table > tbody > tr {
  transition: background var(--basali-transition);
}

.basali-modern .table > tbody > tr:hover {
  background: #f0f7ff !important;
}

.basali-modern .label {
  border-radius: 6px;
  font-weight: 600;
  padding: 4px 8px;
}

/* ── Footer ── */
.basali-modern .main-footer.basali-footer {
  background: var(--basali-surface);
  border-top: 1px solid #e2e8f0;
  color: var(--basali-muted);
  padding: 14px 20px;
}

.basali-footer-links a {
  color: var(--basali-primary-light);
  margin: 0 8px;
}

/* ── Page hero strip (optional) ── */
.basali-page-hero {
  background: linear-gradient(135deg, var(--basali-primary) 0%, var(--basali-accent) 100%);
  color: #fff;
  border-radius: var(--basali-radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--basali-shadow);
}

.basali-page-hero h2 {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 22px;
}

.basali-page-hero p {
  margin: 0;
  opacity: 0.9;
}

.basali-page-hero--auto {
  animation: basaliFadeUp 0.5s ease-out both;
}

.basali-page-hero h2 i {
  margin-right: 8px;
  opacity: 0.95;
}

/* ── Reveal on scroll ── */
.basali-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.basali-reveal.basali-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Profile & media ── */
.basali-modern .profile-user-img {
  border: 4px solid rgba(61, 143, 212, 0.35);
  box-shadow: 0 8px 24px rgba(26, 58, 92, 0.15);
  transition: transform var(--basali-transition), box-shadow var(--basali-transition);
}

.basali-modern .profile-user-img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(26, 58, 92, 0.22);
}

.basali-modern .box-primary > .box-header {
  background: linear-gradient(90deg, var(--basali-primary), var(--basali-primary-light));
  color: #fff;
}

.basali-modern .box-primary > .box-header .box-title {
  color: #fff;
}

.basali-modern .box-success > .box-header {
  background: linear-gradient(90deg, #059669, var(--basali-success));
  color: #fff;
}

.basali-modern .box-success > .box-header .box-title {
  color: #fff;
}

/* ── DataTables & Select2 ── */
.basali-modern .dataTables_wrapper .dataTables_filter input,
.basali-modern .dataTables_wrapper .dataTables_length select {
  border-radius: 8px;
  border-color: #cbd5e1;
}

.basali-modern .select2-container--default .select2-selection--single {
  border-radius: 8px;
  height: 40px;
  border-color: #cbd5e1;
}

.basali-modern .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 38px;
}

/* ── File inputs ── */
.basali-modern input[type="file"] {
  padding: 8px;
  background: #f8fafc;
  border-radius: 8px;
  border: 2px dashed #cbd5e1;
  transition: border-color var(--basali-transition), background var(--basali-transition);
}

.basali-modern input[type="file"]:hover,
.basali-modern input[type="file"]:focus {
  border-color: var(--basali-accent);
  background: #f0f7ff;
}

/* ── Type mp3 radio group ── */
.basali-mp3-type-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0 8px;
}

.basali-radio-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 10px 14px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-weight: 600;
  color: var(--basali-text);
  cursor: pointer;
  transition: all var(--basali-transition);
}

.basali-radio-option:hover {
  border-color: var(--basali-accent);
  background: #f0f7ff;
}

.basali-radio-option input[type="radio"] {
  margin: 0;
}

.basali-radio-option:has(.iradio_flat-green.checked),
.basali-radio-option:has(input[type="radio"]:checked) {
  border-color: var(--basali-primary-light);
  background: #eef6ff;
  box-shadow: 0 0 0 1px rgba(45, 106, 159, 0.15);
}

/* ── Inline audio player (liste tubes) ── */
.basali-audio-cell {
  min-width: 220px;
  vertical-align: middle !important;
}

.basali-track-player {
  width: 100%;
  max-width: 260px;
  height: 36px;
  vertical-align: middle;
}

.basali-modern .table .basali-track-player {
  border-radius: 20px;
  outline: none;
}

/* ── Loading button ── */
.basali-btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
}

.basali-btn-loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: basaliSpin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes basaliSpin {
  to { transform: rotate(360deg); }
}

/* ── Notification badge ── */
.basali-notif-pulse {
  animation: basaliPulse 2s ease-in-out infinite;
}

@keyframes basaliPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  50%       { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

/* ── Login page ── */
.basali-login-modern.login-page {
  background: linear-gradient(135deg, #1a3a5c 0%, #2d6a9f 50%, #3d8fd4 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.basali-login-modern.login-page::before,
.basali-login-modern.login-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  animation: basaliFloat 8s ease-in-out infinite;
}

.basali-login-modern.login-page::before {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}

.basali-login-modern.login-page::after {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -80px;
  animation-delay: -4s;
}

@keyframes basaliFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(10px, 15px) scale(1.05); }
}

.basali-login-modern .login-box {
  position: relative;
  z-index: 1;
  width: 420px;
  max-width: 92vw;
  animation: basaliFadeUp 0.6s ease-out both;
}

.basali-login-modern .login-logo a {
  color: #fff !important;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.basali-login-modern .login-box-body {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
}

.basali-login-modern .login-box-msg {
  font-size: 16px;
  color: var(--basali-text);
  font-weight: 600;
  margin-bottom: 20px;
}

.basali-login-modern .form-control {
  height: 44px;
  border-radius: 10px;
}

.basali-login-modern .btn-primary {
  height: 44px;
  font-size: 15px;
}

/* ── Stagger children ── */
.basali-modern .row > [class*="col-"] > .box {
  animation: basaliFadeUp 0.5s ease-out both;
}

.basali-modern .row > [class*="col-"]:nth-child(1) > .box { animation-delay: 0.05s; }
.basali-modern .row > [class*="col-"]:nth-child(2) > .box { animation-delay: 0.12s; }
.basali-modern .row > [class*="col-"]:nth-child(3) > .box { animation-delay: 0.19s; }

/* ── Responsive ── */
@media (max-width: 767px) {
  .basali-modern .content-header > h1 {
    font-size: 22px;
  }

  .basali-modern .sidebar-menu > li > a:hover {
    transform: none;
  }
}
