/* ============================================
   Seguidores.io - Panel Auth & Dashboard Styles
   Primary Color: #f13759
   ============================================ */

/* ---------- Auth Pages ---------- */
.accountbg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a0a12 0%, #3d0f1f 40%, #7a1530 70%, #f13759 100%);
  z-index: -1;
}

.accountbg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(241, 55, 89, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 138, 0.1) 0%, transparent 50%);
}

.wrapper-page {
  max-width: 420px;
  margin: 0 auto;
  padding: 60px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.card-block { padding: 0; }

.card .logo-section {
  text-align: center;
  padding: 30px 30px 0;
}

.card .logo-section .logo-text {
  font-size: 28px;
  font-weight: 800;
  color: #1e1e3c;
  text-decoration: none;
}

.card .logo-section .logo-text span {
  color: #f13759;
}

.card .form-section {
  padding: 30px;
}

.card .form-section h4 {
  font-size: 20px;
  color: #1e1e3c;
  margin-bottom: 6px;
}

.card .form-section .subtitle {
  color: #8a8a8a;
  font-size: 14px;
  margin-bottom: 25px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #333;
  background: #fafafa;
  transition: all 0.3s;
  outline: none;
}

.form-control:focus {
  border-color: #f13759;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(241, 55, 89, 0.1);
}

.form-control::placeholder { color: #aaa; }

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #f13759;
}

.form-check label {
  font-size: 14px;
  color: #666;
}

.forgot-link {
  float: right;
  font-size: 13px;
  color: #f13759;
}

.forgot-link:hover { text-decoration: underline; }

.btn-auth {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #c41040 0%, #f13759 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(241, 55, 89, 0.4);
}

.divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
  color: #ccc;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e8e8;
}

.divider span { padding: 0 15px; }

.social-login {
  display: flex;
  gap: 10px;
}

.social-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  transition: all 0.3s;
}

.social-btn:hover {
  border-color: #f13759;
  background: #fff5f7;
}

.social-btn.google { color: #ea4335; }
.social-btn.facebook { color: #1877f2; }
.social-btn.twitter { color: #1da1f2; }

.auth-footer {
  text-align: center;
  margin-top: 25px;
}

.auth-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.auth-footer a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.auth-footer a:hover { color: #ff6b8a; }

.auth-footer .copyright {
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

/* ---------- Alerts ---------- */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-danger {
  background: #fff2f2;
  color: #dc3545;
  border: 1px solid #ffd6d6;
}

.alert-success {
  background: #f0fff4;
  color: #28a745;
  border: 1px solid #c3e6cb;
}

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h5 {
  font-size: 18px;
  color: #1e1e3c;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.modal-body {
  padding: 25px;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- Dashboard ---------- */
.dashboard-body {
  background: #f4f5f7;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: #1a0a12;
  z-index: 100;
  overflow-y: auto;
  transition: width 0.3s;
}

.sidebar-header {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header .logo-text {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.sidebar-header .logo-text span { color: #f13759; }

.sidebar-menu { padding: 15px 0; }

.sidebar-menu .menu-label {
  padding: 10px 25px 5px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 25px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #f13759;
}

.sidebar-menu a .menu-icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
}

.top-header {
  position: fixed;
  top: 0;
  left: 250px;
  right: 0;
  height: 64px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  z-index: 99;
}

.top-header .header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #555;
}

.top-header .page-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e1e3c;
}

.top-header .header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.balance-badge {
  background: linear-gradient(135deg, #c41040, #f13759);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
}

.user-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c41040, #f13759);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.main-content {
  margin-left: 250px;
  padding: 84px 25px 25px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
}

.stat-card .stat-icon.blue { background: linear-gradient(135deg, #c41040, #f13759); }
.stat-card .stat-icon.green { background: linear-gradient(135deg, #11998e, #38ef7d); }
.stat-card .stat-icon.orange { background: linear-gradient(135deg, #f09433, #e6683c); }
.stat-card .stat-icon.red { background: linear-gradient(135deg, #dc2743, #bc1888); }

.stat-card .stat-info h3 {
  font-size: 24px;
  color: #1e1e3c;
  margin-bottom: 2px;
}

.stat-card .stat-info p {
  font-size: 13px;
  color: #8a8a8a;
}

.dash-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin-bottom: 25px;
}

.dash-card .card-header {
  padding: 20px 25px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-card .card-header h5 {
  font-size: 16px;
  color: #1e1e3c;
}

.dash-card .card-body { padding: 25px; }

.order-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.order-form select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.order-info {
  background: #fff5f7;
  border: 1px solid #fde0e6;
  border-radius: 10px;
  padding: 20px;
  margin-top: 15px;
}

.order-info .info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #fde0e6;
}

.order-info .info-row:last-child {
  border-bottom: none;
  font-weight: 700;
  color: #1e1e3c;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th {
  padding: 12px 15px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8a8a8a;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid #f0f0f0;
}

.orders-table td {
  padding: 14px 15px;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
}

.orders-table tr:hover td { background: #fffbfc; }

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}

.status-badge.pending { background: #fff8e1; color: #f57c00; }
.status-badge.completed { background: #e8f5e9; color: #2e7d32; }
.status-badge.processing { background: #e3f2fd; color: #1565c0; }
.status-badge.cancelled { background: #fce4ec; color: #c62828; }

@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .top-header { left: 0; }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .order-form .form-row { grid-template-columns: 1fr; }
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}

#preloader.loaded {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e8e8e8;
  border-top-color: #f13759;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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