html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Admin Theme: simple, colorful, clean */
:root {
  --color-primary: #1E88E5;
  --color-secondary: #43A047;
  --color-accent: #FF7043;
  --color-bg: #F7F9FC;
  --color-text: #222222;
}

body.theme-admin {
  background-color: var(--color-bg);
  color: var(--color-text);
}

.bg-gradient-primary {
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.navbar.theme-admin, .navbar.bg-gradient-primary {
  border-bottom: none;
}

.navbar-dark .navbar-brand, .navbar-dark .nav-link {
  color: #ffffff !important;
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.table thead {
  background-color: rgba(30,136,229,0.08);
}

.table th, .table td {
  padding: 0.5rem 0.75rem;
}


.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(67,160,71,0.04);
}

.card {
  border: none;
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.05);
  border-radius: .75rem;
}

h2 {
  font-weight: 600;
  letter-spacing: .2px;
}

.link-primary {
  color: var(--color-primary);
}

/* Statistics Cards */
.stat-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
}

/* Stat Card Variants */
.stat-card-accounts .stat-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.stat-card-accounts .stat-value {
  color: #667eea;
}

.stat-card-countries .stat-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.stat-card-countries .stat-value {
  color: #f5576c;
}

.stat-card-ministries .stat-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.stat-card-ministries .stat-value {
  color: #4facfe;
}

.stat-card-followers .stat-icon {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
}

.stat-card-followers .stat-value {
  color: #43e97b;
}

.stat-card-posts .stat-icon {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
}

.stat-card-posts .stat-value {
  color: #fa709a;
}

.stat-card-likes .stat-icon {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
}

.stat-card-likes .stat-value {
  color: #ff6b6b;
}

/* Platform Badges */
.platform-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.platform-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: white;
}

.platform-facebook {
  background: #1877f2;
  color: white;
}

.platform-x {
  background: #000000;
  color: white;
}

.platform-youtube {
  background: #ff0000;
  color: white;
}

/* Table Enhancements */
.table-responsive {
  border-radius: 0.5rem;
}

.table thead th {
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: #495057;
}

.table tbody tr:hover {
  background-color: rgba(30,136,229,0.03);
}

.card-title {
  font-weight: 600;
  color: var(--color-text);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stat-value {
    font-size: 1.5rem;
  }
  
  .stat-icon {
    width: 48px;
    height: 48px;
  }
  
  .stat-icon svg {
    width: 24px;
    height: 24px;
  }
}
