/* ============================================
   ADMIN PANEL STYLES - Retro Gaming Website
   ============================================ */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #1a1a2e;
  color: #ecf0f1;
  min-height: 100vh;
}

/* ============================================
   LOGIN SCREEN
   ============================================ */

#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.login-box {
  background: #2c3e50;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 400px;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h1 {
  font-size: 28px;
  margin-bottom: 5px;
}

.login-header p {
  color: #95a5a6;
  font-size: 14px;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #bdc3c7;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: #34495e;
  border: 1px solid #4a6278;
  border-radius: 5px;
  color: #ecf0f1;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
}

.form-group input[type="color"] {
  height: 45px;
  padding: 5px;
  cursor: pointer;
}

.form-group input[type="file"] {
  padding: 10px;
  background: #34495e;
  border: 2px dashed #4a6278;
  border-radius: 5px;
  cursor: pointer;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
  background: linear-gradient(180deg, #3498db 0%, #2980b9 100%);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #5dade2 0%, #3498db 100%);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #7f8c8d;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #95a5a6;
}

.btn-danger {
  background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: linear-gradient(180deg, #ec7063 0%, #e74c3c 100%);
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

.error-message {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 15px;
  text-align: center;
}

/* ============================================
   ADMIN HEADER
   ============================================ */

.admin-header {
  background: #2c3e50;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #c0392b;
}

.admin-header h1 {
  font-size: 20px;
}

.header-right {
  display: flex;
  gap: 15px;
}

/* ============================================
   ADMIN NAVIGATION
   ============================================ */

.admin-nav {
  background: #34495e;
  padding: 0 30px;
  display: flex;
  gap: 5px;
  overflow-x: auto;
}

.nav-btn {
  background: transparent;
  border: none;
  color: #bdc3c7;
  padding: 15px 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.nav-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.nav-btn.active {
  color: #fff;
  border-bottom-color: #3498db;
  background: rgba(52, 152, 219, 0.1);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.admin-content {
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #34495e;
}

.section-header h2 {
  font-size: 22px;
}

/* ============================================
   FORM CONTAINER
   ============================================ */

.form-container {
  background: #2c3e50;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.form-container h3 {
  margin-bottom: 20px;
  color: #3498db;
}

/* ============================================
   DATA LIST
   ============================================ */

.data-list {
  background: #2c3e50;
  border-radius: 8px;
  overflow: hidden;
}

.data-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #34495e;
  transition: background 0.2s;
}

.data-item:last-child {
  border-bottom: none;
}

.data-item:hover {
  background: #34495e;
}

.data-item-content {
  flex: 1;
}

.data-item-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.data-item-meta {
  font-size: 12px;
  color: #95a5a6;
}

.data-item-actions {
  display: flex;
  gap: 10px;
}

.data-item-thumb {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
  background: #34495e;
}

.category-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  margin-right: 10px;
}

/* ============================================
   PICTURE OF THE DAY
   ============================================ */

.potd-preview {
  margin-top: 20px;
}

.potd-preview img {
  max-width: 300px;
  border-radius: 8px;
  border: 3px solid #34495e;
}

.potd-preview p {
  margin-top: 10px;
  color: #95a5a6;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .admin-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .header-right {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .admin-nav {
    padding: 0 15px;
  }
  
  .nav-btn {
    padding: 12px 15px;
    font-size: 12px;
  }
  
  .admin-content {
    padding: 20px 15px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-container {
  animation: fadeIn 0.3s ease;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px;
  color: #7f8c8d;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

