@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap";
/* [project]/app/globals.css [app-client] (css) */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a1f35;
  --bg-hover: #232942;
  --border: #2a3050;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-light: #8b5cf626;
  --success: #10b981;
  --success-light: #10b98126;
  --warning: #f59e0b;
  --warning-light: #f59e0b26;
  --danger: #ef4444;
  --danger-light: #ef444426;
  --info: #3b82f6;
  --info-light: #3b82f626;
  --sidebar-width: 260px;
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-family: Inter, -apple-system, sans-serif;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.login-page {
  background: linear-gradient(135deg, #0a0e1a 0%, #1a1040 50%, #0a0e1a 100%);
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  display: flex;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  width: 100%;
  max-width: 400px;
  padding: 3rem;
  box-shadow: 0 25px 60px #00000080;
}

.login-card h1 {
  background: linear-gradient(135deg, var(--accent), #c084fc);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  margin-bottom: .5rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.login-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: .9rem;
}

.login-card input {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  width: 100%;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  outline: none;
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  font-size: 1rem;
  transition: border-color .2s;
}

.login-card input:focus {
  border-color: var(--accent);
}

.login-card button {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  width: 100%;
  padding: .85rem;
  font-size: 1rem;
  font-weight: 600;
  transition: opacity .2s, transform .1s;
}

.login-card button:hover {
  opacity: .9;
}

.login-card button:active {
  transform: scale(.98);
}

.login-error {
  color: var(--danger);
  margin-top: .5rem;
  font-size: .85rem;
}

.admin-layout {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  z-index: 100;
  flex-direction: column;
  padding: 1.5rem 0;
  transition: transform .3s;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
}

.sidebar-logo {
  align-items: center;
  gap: .75rem;
  margin-bottom: 2rem;
  padding: 0 1.5rem;
  display: flex;
}

.sidebar-logo .logo-icon {
  background: linear-gradient(135deg, var(--accent), #c084fc);
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
}

.sidebar-logo h2 {
  background: linear-gradient(135deg, var(--accent), #c084fc);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  font-size: 1.15rem;
  font-weight: 700;
}

.sidebar-logo span {
  color: var(--text-muted);
  font-size: .7rem;
  display: block;
}

.sidebar-nav {
  flex: 1;
  padding: 0 .75rem;
}

.sidebar-nav a {
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  align-items: center;
  gap: .75rem;
  margin-bottom: .25rem;
  padding: .7rem 1rem;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  display: flex;
}

.sidebar-nav a:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.sidebar-nav a.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.sidebar-nav a .nav-icon {
  text-align: center;
  width: 24px;
  font-size: 1.2rem;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.sidebar-footer button {
  background: var(--danger-light);
  width: 100%;
  color: var(--danger);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid #ef44444d;
  padding: .6rem;
  font-size: .85rem;
  font-weight: 500;
  transition: all .2s;
}

.sidebar-footer button:hover {
  background: var(--danger);
  color: #fff;
}

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  padding: 2rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  margin-bottom: .3rem;
  font-size: 1.6rem;
  font-weight: 700;
}

.page-header p {
  color: var(--text-muted);
  font-size: .9rem;
}

.search-bar {
  gap: .75rem;
  margin-bottom: 2rem;
  display: flex;
}

.search-bar input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius);
  outline: none;
  flex: 1;
  padding: .85rem 1.25rem;
  font-size: 1rem;
  transition: border-color .2s;
}

.search-bar input:focus {
  border-color: var(--accent);
}

.search-bar button {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  padding: .85rem 1.5rem;
  font-size: .95rem;
  font-weight: 600;
  transition: opacity .2s;
}

.search-bar button:hover {
  opacity: .9;
}

.search-bar button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.source-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  display: grid;
}

.source-column {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.source-header {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  display: flex;
}

.source-header h3 {
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  font-weight: 600;
  display: flex;
}

.source-count {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 999px;
  padding: .2rem .5rem;
  font-size: .75rem;
  font-weight: 600;
}

.source-list {
  max-height: 600px;
  padding: .5rem;
  overflow-y: auto;
}

.movie-item {
  border-radius: var(--radius-sm);
  cursor: pointer;
  gap: .75rem;
  padding: .75rem;
  transition: background .2s;
  display: flex;
  position: relative;
}

.movie-item:hover {
  background: var(--bg-hover);
}

.movie-item img {
  object-fit: cover;
  background: var(--bg-secondary);
  border-radius: 6px;
  flex-shrink: 0;
  width: 55px;
  height: 80px;
}

.movie-info {
  flex: 1;
  min-width: 0;
}

.movie-info h4 {
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: .25rem;
  font-size: .85rem;
  font-weight: 600;
  overflow: hidden;
}

.movie-info .meta {
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: .35rem;
  font-size: .75rem;
  display: flex;
}

.movie-info .meta span {
  background: var(--bg-secondary);
  border-radius: 4px;
  padding: .15rem .4rem;
}

.badge {
  border-radius: 6px;
  align-items: center;
  gap: .3rem;
  padding: .25rem .6rem;
  font-size: .75rem;
  font-weight: 600;
  display: inline-flex;
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-light);
  color: var(--danger);
}

.badge-info {
  background: var(--info-light);
  color: var(--info);
}

.badge-accent {
  background: var(--accent-light);
  color: var(--accent);
}

.btn {
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  transition: all .2s;
  display: inline-flex;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover {
  opacity: .85;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-danger:hover {
  opacity: .85;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: none;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: .35rem .7rem;
  font-size: .78rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.stat-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  display: grid;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.stat-card .stat-icon {
  margin-bottom: .5rem;
  font-size: 1.5rem;
}

.stat-card .stat-value {
  margin-bottom: .2rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-card .stat-label {
  color: var(--text-muted);
  font-size: .8rem;
}

.table-container {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: .88rem;
}

th {
  text-align: left;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  padding: .75rem 1rem;
  font-size: .8rem;
  font-weight: 600;
}

td {
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  padding: .75rem 1rem;
}

tr:hover td {
  background: var(--bg-hover);
}

.modal-overlay {
  z-index: 1000;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #0009;
  justify-content: center;
  align-items: center;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90%;
  max-width: 550px;
  max-height: 85vh;
  padding: 2rem;
  overflow-y: auto;
}

.modal h2 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.modal label {
  color: var(--text-secondary);
  margin-bottom: .3rem;
  font-size: .85rem;
  font-weight: 500;
  display: block;
}

.modal input, .modal select {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  width: 100%;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  outline: none;
  margin-bottom: 1rem;
  padding: .7rem .9rem;
  font-size: .9rem;
}

.modal input:focus, .modal select:focus {
  border-color: var(--accent);
}

.modal-actions {
  justify-content: flex-end;
  gap: .75rem;
  margin-top: 1rem;
  display: flex;
}

.section-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
  padding: .75rem;
  display: flex;
}

.section-item img {
  object-fit: cover;
  border-radius: 4px;
  width: 45px;
  height: 65px;
}

.section-item .item-info {
  flex: 1;
  min-width: 0;
}

.section-item .item-info h4 {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .85rem;
  font-weight: 500;
  overflow: hidden;
}

.section-item .item-info p {
  color: var(--text-muted);
  font-size: .75rem;
}

.section-item .remove-btn {
  color: var(--danger);
  cursor: pointer;
  background: none;
  border: none;
  padding: .3rem;
  font-size: 1.1rem;
}

.section-item .remove-btn:hover {
  opacity: .7;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}

.empty-state .empty-icon {
  opacity: .4;
  margin-bottom: 1rem;
  font-size: 3rem;
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: .5rem;
  font-size: 1rem;
}

.empty-state p {
  font-size: .85rem;
}

.toast {
  border-radius: var(--radius-sm);
  z-index: 9999;
  padding: .85rem 1.5rem;
  font-size: .9rem;
  font-weight: 500;
  animation: .3s ease-out slideIn;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  box-shadow: 0 8px 30px #0006;
}

.toast-success {
  background: var(--success);
  color: #fff;
}

.toast-error {
  background: var(--danger);
  color: #fff;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spinner {
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: .7s linear infinite spin;
  display: inline-block;
}

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

@media (max-width: 1024px) {
  .source-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .main-content {
    margin-left: 0;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }
}

/*# sourceMappingURL=app_globals_0jn8.0u.css.map*/