:root {
  --primary-gradient: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
  --secondary-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --info-gradient: linear-gradient(135deg, #ff9800 0%, #ff6f00 100%);
  --card-shadow: 0 10px 40px rgba(0,0,0,0.1);
  --hover-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

* {
  font-family: 'Kanit', sans-serif;
}

body {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 25%, #ffffff 50%, #fff3e0 75%, #ffcc80 100%);
  min-height: 100vh;
  padding-bottom: 50px;
}

.navbar-custom {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-gradient-primary {
  background: var(--primary-gradient);
  border: none;
  color: white;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.btn-gradient-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.5);
  color: white;
}

.btn-gradient-success {
  background: var(--success-gradient);
  border: none;
  color: white;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.btn-gradient-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 152, 0, 0.5);
  color: white;
}

.btn-gradient-warning {
  background: var(--warning-gradient);
  border: none;
  color: #333;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(67, 233, 123, 0.4);
}

.btn-gradient-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(67, 233, 123, 0.5);
  color: #333;
}

.btn-gradient-info {
  background: var(--info-gradient);
  border: none;
  color: white;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(250, 112, 154, 0.4);
}

.btn-gradient-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(250, 112, 154, 0.5);
  color: white;
}

.main-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
}

.card-header-gradient {
  background: var(--primary-gradient);
  color: white;
  padding: 20px 30px;
}

.card-header-gradient h2 {
  margin: 0;
  font-weight: 600;
}

.search-box {
  background: white;
  border-radius: 50px;
  padding: 8px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.search-box:focus-within {
  border-color: #ff9800;
  box-shadow: 0 4px 25px rgba(255, 152, 0, 0.25);
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 1rem;
}

.table-container {
  overflow-x: auto;
}

.table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.table-modern thead th {
  background: #FF9F43;
  color: white;
  padding: 18px 20px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border: none;
}

.table-modern thead th:first-child {
  border-radius: 12px 0 0 12px;
}

.table-modern thead th:last-child {
  border-radius: 0 12px 12px 0;
}

.table-modern tbody tr {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.table-modern tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.table-modern tbody td {
  padding: 20px;
  vertical-align: middle;
  border: none;
}

.table-modern tbody td:first-child {
  border-radius: 12px 0 0 12px;
}

.table-modern tbody td:last-child {
  border-radius: 0 12px 12px 0;
}

.item-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.badge-mode {
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.8rem;
}

.badge-model {
  background: var(--primary-gradient);
  color: white;
}

.badge-video {
  background: var(--success-gradient);
  color: white;
}

.badge-video-alpha {
  background: var(--info-gradient);
  color: white;
}

.badge-model-video {
  background: var(--warning-gradient);
  color: #333;
}

.btn-action {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 3px;
  border: none;
  transition: all 0.3s ease;
}

.btn-action:hover {
  transform: translateY(-2px);
}

.btn-edit {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  color: #333;
}

.btn-delete {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
}

.btn-video {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  color: #333;
}

.btn-api {
  background: linear-gradient(135deg, #434343 0%, #000000 100%);
  color: white;
}

.btn-qr {
  background: linear-gradient(135deg, #c3cfe2 0%, #c3cfe2 100%);
  color: #333;
}

.btn-deeplink {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

.pagination-modern .form-select {
  border-radius: 50px;
  padding: 10px 20px;
  border: 2px solid #4facfe;
  font-weight: 500;
  color: #4facfe;
  cursor: pointer;
}

.pagination-modern .form-select:focus {
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.25);
}

.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  border: none;
  box-shadow: 0 6px 30px rgba(79, 172, 254, 0.5);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.1) rotate(90deg);
  color: white;
}

.modal-modern .modal-content {
  border-radius: 24px;
  border: none;
  overflow: hidden;
}

.modal-modern .modal-header {
  background: var(--primary-gradient);
  color: white;
  border: none;
}

.modal-modern .btn-close {
  filter: invert(1);
}

.bundle-status {
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
}

.bundle-uploaded {
  background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
  color: #2d5016;
}

.bundle-pending {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  color: #7c4a03;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.4rem;
  }
  
  .item-image {
    width: 80px;
    height: 80px;
  }

  .btn-action {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
}
