
/* =========================================
   FINDIT LIBERIA 2.0
   Administration Dashboard Styling
   ========================================= */

:root {
  --admin-green: #087b45;
  --admin-dark-green: #075b35;
  --admin-light-green: #e9f6ee;
  --admin-white: #ffffff;
  --admin-background: #f4f7f5;
  --admin-text: #25352c;
  --admin-muted: #68766e;
  --admin-border: #dce6df;
  --admin-danger: #c0392b;
  --admin-radius: 12px;
  --admin-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--admin-background);
  color: var(--admin-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

[hidden] {
  display: none !important;
}

/* Header */

.admin-header {
  background: var(--admin-green);
  color: var(--admin-white);
  padding: 20px;
}

.admin-header-content {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.admin-header h1 {
  margin: 0;
  font-size: 25px;
  letter-spacing: 0.5px;
}

.admin-header p {
  margin: 3px 0 0;
  opacity: 0.9;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header-actions a,
.admin-header-actions button {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid var(--admin-white);
  border-radius: 7px;
  background: transparent;
  color: var(--admin-white);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

.admin-header-actions a:hover,
.admin-header-actions button:hover {
  background: var(--admin-dark-green);
}

/* Main layout */

.admin-container {
  width: 100%;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.admin-welcome {
  margin-bottom: 25px;
}

.admin-welcome h2 {
  margin-bottom: 5px;
  color: var(--admin-dark-green);
}

.admin-welcome p {
  margin-top: 0;
  color: var(--admin-muted);
}

.admin-section {
  margin-bottom: 25px;
  padding: 24px;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  background: var(--admin-white);
  box-shadow: var(--admin-shadow);
}

.admin-section h2 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--admin-dark-green);
  font-size: 21px;
}

.admin-section h3 {
  margin-top: 25px;
  color: var(--admin-dark-green);
}

.admin-section > p {
  color: var(--admin-muted);
}

/* Dashboard statistics */

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.admin-stat {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: var(--admin-light-green);
}

.admin-stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--admin-muted);
  font-size: 14px;
}

.admin-stat strong {
  display: block;
  color: var(--admin-dark-green);
  font-size: 30px;
}

/* Forms and controls */

.admin-section input,
.admin-section select,
.admin-section textarea {
  display: block;
  width: 100%;
  min-height: 45px;
  margin: 8px 0 16px;
  padding: 11px 12px;
  border: 1px solid var(--admin-border);
  border-radius: 7px;
  background: var(--admin-white);
  color: var(--admin-text);
  font: inherit;
}

.admin-section textarea {
  min-height: 100px;
  resize: vertical;
}

.admin-section label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
}

.admin-section input:focus,
.admin-section select:focus,
.admin-section textarea:focus {
  outline: 2px solid var(--admin-green);
  outline-offset: 1px;
  border-color: var(--admin-green);
}

.admin-section button {
  min-height: 42px;
  padding: 10px 16px;
  border: none;
  border-radius: 7px;
  background: var(--admin-green);
  color: var(--admin-white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.admin-section button:hover {
  background: var(--admin-dark-green);
}

.admin-section button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-section button.danger-button {
  background: var(--admin-danger);
}

/* Search and filters */

.admin-toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  align-items: center;
}

.admin-toolbar input,
.admin-toolbar select {
  margin-bottom: 12px;
}

/* Lists and management cards */

.admin-card,
.suggestion-card,
.promotion-card,
.management-card {
  margin: 12px 0;
  padding: 17px;
  border: 1px solid var(--admin-border);
  border-radius: 9px;
  background: var(--admin-white);
}

.admin-card h3,
.suggestion-card h3,
.promotion-card h3,
.management-card h3 {
  margin: 0 0 8px;
  color: var(--admin-dark-green);
}

.admin-card p,
.suggestion-card p,
.promotion-card p,
.management-card p {
  margin: 6px 0;
  color: var(--admin-muted);
}

.admin-card button,
.suggestion-card button,
.promotion-card button,
.management-card button {
  margin: 8px 6px 0 0;
}

/* Promotion summary */

.promotion-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.promotion-summary p {
  margin: 0;
  padding: 15px;
  border-radius: 8px;
  background: var(--admin-light-green);
}

/* Messages */

#adminMessage {
  margin: 20px 0;
  padding: 12px;
  border-radius: 7px;
  color: var(--admin-dark-green);
  overflow-wrap: anywhere;
}

#adminLoading,
#adminAccessDenied {
  margin: 40px auto;
  padding: 25px;
  border-radius: var(--admin-radius);
  background: var(--admin-white);
  text-align: center;
}

#adminAccessDenied a {
  color: var(--admin-green);
  font-weight: 600;
}

/* Footer */

.admin-footer {
  padding: 20px;
  background: var(--admin-dark-green);
  color: var(--admin-white);
  text-align: center;
}

.admin-footer p {
  margin: 0;
}

/* Tablet */

@media (max-width: 800px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-header-content {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Mobile */

@media (max-width: 520px) {
  .admin-container {
    margin: 18px auto;
    padding: 0 12px;
  }

  .admin-header {
    padding: 16px 12px;
  }

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

  .admin-header-actions {
    width: 100%;
  }

  .admin-header-actions a,
  .admin-header-actions button {
    flex: 1;
    text-align: center;
  }

  .admin-section {
    padding: 16px;
  }

  .admin-section h2 {
    font-size: 19px;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .admin-stat {
    padding: 13px;
  }

  .admin-stat strong {
    font-size: 25px;
  }

  .admin-toolbar,
  .promotion-summary {
    grid-template-columns: 1fr;
  }
}
/* Make JOIN FINDIT stand out in the navigation */
#registerNavButton.btn-primary {
  background: #176b3a !important;
  color: #ffffff !important;
  border: 2px solid #176b3a !important;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  min-height: 44px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  box-shadow: 0 3px 8px rgba(16, 83, 45, 0.25);
}

#registerNavButton.btn-primary:hover,
#registerNavButton.btn-primary:focus {
  background: #10532d !important;
  color: #ffffff !important;
  border-color: #10532d !important;
}
