:root {
  --dark-bg: #12161d;
  --card-bg: rgba(30, 41, 59, 0.96);
  --border-color: #334155;
  --primary-orange: #ffb86b;
  --primary-coral: #ff6b5b;
  --text-light: #ffffff;
  --text-muted: #94a3b8;
  --text-secondary: #e2e8f0;
  --header-gradient: linear-gradient(90deg, #1e293b 60%, #334155 100%);
  --btn-gradient: linear-gradient(90deg, #ff6b5b 0%, #ffb86b 100%);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: var(--header-gradient);
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 60px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #fff;
  padding: 4px;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-orange);
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 4px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a:hover,
nav a:focus {
  background: #64748b;
}

nav a.active {
  background: var(--primary-coral);
}

/* Main Content */
.container {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.page-header h2 {
  font-size: 2.2rem;
  color: var(--primary-orange);
  font-weight: 700;
}

/* Buttons */
.btn {
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--btn-gradient);
  color: var(--text-light);
  box-shadow: 0 4px 12px rgba(255, 107, 91, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(90deg, var(--primary-orange) 0%, var(--primary-coral) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 107, 91, 0.3);
}

/* Dashboard Cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.dashboard-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(30, 41, 59, 0.18);
  border: 1.5px solid var(--border-color);
  backdrop-filter: blur(2px);
  transition: transform 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-card-header h2 {
  font-size: 1.5rem;
  color: var(--primary-orange);
}

.dashboard-card-header i {
  font-size: 1.5rem;
  color: var(--primary-coral);
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.action-card {
  background: rgba(255, 184, 107, 0.1);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgba(255, 184, 107, 0.3);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #4dabf7, #339af0);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.action-card:hover::before {
  transform: scaleX(1);
}

.action-card:hover {
  background: rgba(255, 184, 107, 0.2);
  transform: translateY(-5px);
  border-color: var(--primary-orange);
}

.action-card i {
  font-size: 2.5rem;
  color: var(--primary-orange);
  margin-bottom: 15px;
  transition: var(--transition);
}

.action-card:hover i {
  color: var(--primary-coral);
  transform: scale(1.1);
}

.action-card h3 {
  margin: 0;
  color: var(--primary-orange);
  font-size: 1.1rem;
  transition: color 0.3s;
}

.action-card:hover h3 {
  color: var(--text-light);
}

.action-card p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.action-card:hover p {
  color: var(--text-secondary);
}

/* Form Elements */
.form-container {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(30, 41, 59, 0.2);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.form-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(19, 26, 37, 0.4);
  border-radius: 8px;
  border-left: 3px solid var(--primary-orange);
}

.form-section h3 {
  font-size: 1.25rem;
  color: var(--primary-orange);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: rgba(19, 26, 37, 0.8);
  color: var(--text-light);
  font-size: 1rem;
  transition: var(--transition);
  line-height: 1.5;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(255, 184, 107, 0.2);
  background: rgba(19, 26, 37, 0.9);
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffb86b'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  accent-color: var(--primary-orange);
  cursor: pointer;
}

.form-check-label {
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.file-upload {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.file-upload-input {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload-label {
  display: block;
  padding: 1.5rem;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  text-align: center;
  background: rgba(19, 26, 37, 0.6);
  cursor: pointer;
  transition: var(--transition);
}

.file-upload-label:hover {
  border-color: var(--primary-orange);
  background: rgba(19, 26, 37, 0.8);
}

.file-upload-label i {
  font-size: 2rem;
  color: var(--primary-orange);
  margin-bottom: 0.75rem;
  display: block;
}

.file-upload-label p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.file-upload-preview {
  margin-top: 1rem;
  display: none;
}

.file-upload-preview img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.form-control.is-valid {
  border-color: #28a745;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.form-control.is-invalid~.invalid-feedback {
  display: block;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.status-options {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.status-option {
  flex: 1;
  text-align: center;
  padding: 1.25rem;
  border-radius: 6px;
  background: rgba(19, 26, 37, 0.6);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.status-option:hover {
  background: rgba(255, 184, 107, 0.1);
  border-color: var(--primary-orange);
}

.status-option.active {
  background: rgba(255, 184, 107, 0.2);
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 2px rgba(255, 184, 107, 0.3);
}

.status-option i {
  font-size: 1.5rem;
  color: var(--primary-orange);
  margin-bottom: 0.75rem;
}

.status-option-label {
  display: block;
  font-weight: 500;
  color: var(--text-secondary);
}

.status-option.active .status-option-label {
  color: var(--primary-orange);
}

.tags-input-container {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem;
  background: rgba(19, 26, 37, 0.8);
  min-height: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tags-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-light);
  padding: 0.5rem;
  min-width: 120px;
}

.tags-input:focus {
  outline: none;
}

.tag {
  background: linear-gradient(90deg, var(--primary-coral) 0%, var(--primary-orange) 100%);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tag-remove {
  cursor: pointer;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
}

/* Notification Cards */
.notification-container {
  max-width: 800px;
  margin: 0 auto;
}

.notification-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(30, 41, 59, 0.18);
  border: 1.5px solid var(--border-color);
  margin-bottom: 30px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 20px;
}

.notification-card:hover {
  transform: translateY(-5px);
}

.notification-icon {
  font-size: 3rem;
  min-width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-success .notification-icon {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
  border: 2px solid var(--success-color);
}

.notification-error .notification-icon {
  background: rgba(220, 53, 69, 0.1);
  color: var(--error-color);
  border: 2px solid var(--error-color);
}

.notification-info .notification-icon {
  background: rgba(23, 162, 184, 0.1);
  color: var(--info-color);
  border: 2px solid var(--info-color);
}

.notification-warning .notification-icon {
  background: rgba(255, 193, 7, 0.1);
  color: var(--warning-color);
  border: 2px solid var(--warning-color);
}

.notification-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.notification-success h3 {
  color: var(--success-color);
}

.notification-error h3 {
  color: var(--error-color);
}

.notification-info h3 {
  color: var(--info-color);
}

.notification-warning h3 {
  color: var(--warning-color);
}

.notification-content p {
  color: var(--text-muted);
  margin-bottom: 15px;
}

.notification-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}



/* Shopee Ad Space - Simplificada */
.shopee-ad-container {
  margin: 30px auto;
  max-width: 600px;
  padding: 0 20px;
}

.shopee-ad {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 10px 25px rgba(30, 41, 59, 0.2);
  border: 1.5px solid var(--border-color);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  position: relative;
}

.shopee-ad:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(30, 41, 59, 0.3);
}

.shopee-ad-content {
  display: flex;
  flex-direction: column;
}

/* Container da imagem */
.shopee-image-container {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(45deg, rgba(238, 77, 45, 0.1), rgba(255, 107, 107, 0.1));
}

.shopee-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: rgba(30, 41, 59, 0.5);
}



/* Imagem real (inicialmente oculta) */
.shopee-real-image {
  width: 100%;
  height: 100%;
}

/* Conteúdo textual */
.shopee-text-content {
  padding: 20px;
  text-align: center;
  background: rgba(30, 41, 59, 0.8);
}

.shopee-ad-title {
  font-size: 1.8rem;
  color: var(--shopee-primary);
  margin-bottom: 15px;
  font-weight: 700;
}

.shopee-ad-cta {
  display: inline-block;
  background: var(--shopee-gradient);
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(238, 77, 45, 0.3);
}

.shopee-ad-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(238, 77, 45, 0.4);
  background: linear-gradient(90deg, #ff6b6b 0%, #ee4d2d 100%);
}


/* Footer */
.site-footer {
  background: #1e293b;
  color: var(--text-light);
  padding: 32px 0 18px;
  text-align: center;
  border-top: 2px solid var(--primary-coral);
  margin-top: 48px;
}

.footer-links a {
  color: var(--primary-coral);
  background: #fff;
  padding: 8px 18px;
  border-radius: 22px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.08);
  border: 1.5px solid var(--primary-orange);
  transition: var(--transition);
}

.footer-links a:hover {
  background: var(--primary-orange);
  color: #fff;
  border-color: var(--primary-coral);
  box-shadow: 0 4px 16px rgba(255, 107, 91, 0.13);
}

/* Responsive Design */
@media (max-width: 992px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }

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

  .form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .status-options {
    flex-direction: column;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .shopee-ad-title {
    font-size: 1.5rem;
  }

  .shopee-image-container {
    height: 220px;
  }
 
}

@media (max-width: 576px) {
  .page-header {
    flex-direction: column;
    gap: 15px;
  }  

  .shopee-image-container {
    height: 180px;
  }
}