/* royal.css - Premium Royal Purple & Gold Theme for Malik 4K Admin Panel */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

body, #wrapper, #page-content-wrapper {
  background: radial-gradient(circle at 50% 50%, #1e0f35 0%, #0c0517 100%) !important;
  background-image: none !important;
  color: #eae6f0 !important;
  font-family: 'Outfit', sans-serif !important;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0c0517;
}
::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ffd700;
}

/* Sidebar Styling */
#sidebar-wrapper {
  background: rgba(15, 7, 26, 0.85) !important;
  backdrop-filter: blur(15px) !important;
  border-right: 1px solid rgba(212, 175, 55, 0.15) !important;
  transition: all 0.3s ease;
  z-index: 1000;
}

#sidebar-wrapper .sidebar-heading {
  color: #ffd700 !important;
  font-weight: 800 !important;
  font-size: 1.4rem !important;
  text-transform: uppercase;
  letter-spacing: 2px !important;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15) !important;
  padding: 1.5rem 1.25rem !important;
  text-align: center;
}

#sidebar-wrapper span {
  display: block;
  text-align: center;
  padding: 8px 0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  margin-bottom: 10px;
}

#sidebar-wrapper span a {
  color: rgba(212, 175, 55, 0.6) !important;
  text-decoration: none;
  transition: color 0.3s;
}

#sidebar-wrapper span a:hover {
  color: #ffd700 !important;
}

#sidebar-wrapper .list-group-item {
  background: transparent !important;
  color: #bfaecf !important;
  border: none !important;
  padding: 12px 24px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-weight: 500 !important;
  border-left: 4px solid transparent !important;
}

#sidebar-wrapper .list-group-item i {
  width: 20px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

#sidebar-wrapper .list-group-item:hover {
  background: rgba(212, 175, 55, 0.08) !important;
  color: #ffd700 !important;
  padding-left: 30px !important;
  border-left: 4px solid rgba(212, 175, 55, 0.5) !important;
}

#sidebar-wrapper .list-group-item:hover i {
  transform: scale(1.2);
}

/* Sidebar Active Item */
#sidebar-wrapper .list-group-item.active, 
#sidebar-wrapper .list-group-item[href*="<?php echo basename($_SERVER['SCRIPT_NAME']); ?>"] {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, transparent 100%) !important;
  color: #ffd700 !important;
  border-left: 4px solid #d4af37 !important;
  font-weight: 700 !important;
}

/* Navigation bar */
.navbar {
  background: rgba(12, 6, 20, 0.5) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1) !important;
  padding: 15px 20px !important;
}

#menu-toggle {
  background: rgba(212, 175, 55, 0.1) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.3s;
}

#menu-toggle:hover {
  background: rgba(212, 175, 55, 0.2) !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Card glassmorphism */
.card, .card.bg-primary {
  background: rgba(25, 12, 43, 0.45) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
  overflow: hidden;
  margin-bottom: 30px;
}

.card-header-warning, .card-header {
  background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%) !important;
  color: #0c0517 !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3) !important;
  padding: 15px 20px !important;
}

.card-header-warning h2 {
  font-weight: 700 !important;
  font-size: 1.5rem !important;
  letter-spacing: 1px;
  margin: 0 !important;
}

.card-body {
  padding: 25px !important;
}

.card-body h3 {
  color: #ffd700;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.3rem;
  border-left: 3px solid #d4af37;
  padding-left: 10px;
}

/* Inputs & Form styling */
.form-group label {
  color: #bfaecf;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-control, select.form-control {
  background: rgba(12, 6, 20, 0.7) !important;
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 12px 15px !important;
  height: auto !important;
  transition: all 0.3s ease !important;
}

.form-control:focus {
  background: rgba(12, 6, 20, 0.9) !important;
  border-color: #ffd700 !important;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3) !important;
  color: #fff !important;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
}

/* Buttons */
.btn {
  border-radius: 8px !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  letter-spacing: 0.5px;
}

.btn-primary, .btn-warning {
  background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%) !important;
  border: none !important;
  color: #0c0517 !important;
}

.btn-primary:hover, .btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4) !important;
  background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%) !important;
}

.btn-info {
  background: linear-gradient(135deg, #7c24e6 0%, #520ebd 100%) !important;
  border: none !important;
  color: #fff !important;
}

.btn-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 36, 230, 0.4) !important;
  background: linear-gradient(135deg, #913ff5 0%, #631bd4 100%) !important;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  border: none !important;
  color: #fff !important;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4) !important;
}

.btn-default {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

.btn-default:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Tables styling */
.table-responsive {
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  padding: 10px;
  background: rgba(12, 6, 20, 0.3);
}

.table {
  color: #eae6f0 !important;
  margin-bottom: 0 !important;
}

.table thead th {
  background: rgba(212, 175, 55, 0.08) !important;
  color: #ffd700 !important;
  border-bottom: 2px solid rgba(212, 175, 55, 0.25) !important;
  border-top: none !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 15px !important;
}

.table td {
  border-top: 1px solid rgba(212, 175, 55, 0.08) !important;
  padding: 15px !important;
  vertical-align: middle !important;
  background: transparent !important;
}

.table tbody tr {
  transition: background 0.3s;
}

.table tbody tr:hover {
  background: rgba(212, 175, 55, 0.04) !important;
}

/* Search bar table */
#search {
  margin-bottom: 15px;
  border-radius: 8px;
}

/* Custom Alert Messages */
.alert {
  background: rgba(25, 12, 43, 0.9) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
  border-radius: 8px !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.alert-success {
  border-left: 4px solid #10b981 !important;
}

.alert-danger {
  border-left: 4px solid #ef4444 !important;
}

/* Login Page Styling */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(25, 12, 43, 0.55) !important;
  backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
  border-radius: 20px !important;
  padding: 40px 30px !important;
}

.login-logo {
  max-width: 130px;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
  margin-bottom: 25px;
  transition: transform 0.5s ease;
}

.login-logo:hover {
  transform: rotate(5deg) scale(1.05);
}

/* Theme Thumbnails selection UI in themes.php */
.theme-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 20px;
  margin-top: 20px;
}

.theme-thumbnails div {
  background: rgba(25, 12, 43, 0.4) !important;
  border: 1px solid rgba(212, 175, 55, 0.1) !important;
  border-radius: 12px;
  padding: 15px;
  transition: all 0.3s ease !important;
}

.theme-thumbnails div:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
}

.theme-thumbnails div.selected-theme {
  border: 2px solid #d4af37 !important;
  background: rgba(212, 175, 55, 0.05) !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15) !important;
}

/* Modal styling */
.modal-content {
  background: rgba(25, 12, 43, 0.95) !important;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 16px !important;
  color: #fff !important;
}

.modal-header {
  border-bottom: 1px solid rgba(212, 175, 55, 0.15) !important;
}

.modal-header h2 {
  color: #ffd700;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0;
}

.modal-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.15) !important;
}
