/* Modern Admin Theme - inspired by ENIGMA2 vote.html */

:root {
  --primary-color: #ffb84d;
  --primary-light: #ffd18a;
  --primary-dark: #ff8a00;
  --accent-gold: #ffd89a;
  --header-offset: 104px;
  --bg-dark: #1a1a1a;
  --bg-darker: #0f0f0f;
  --text-light: #f6e6d0;
  --text-lighter: #f8dfbd;
  --border-light: rgba(255, 210, 140, 0.22);
  --border-lighter: rgba(255, 210, 140, 0.16);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-light);
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2420 100%);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-gold);
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  color: var(--text-light);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.95), rgba(26, 26, 26, 0.95));
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  margin: 0;
  flex: 0 0 auto;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-menu {
  margin-left: auto;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(255, 184, 77, 0.28);
  border-radius: 12px;
  background: rgba(255, 184, 77, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(255, 184, 77, 0.14);
  border-color: rgba(255, 184, 77, 0.5);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary-light);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle.is-active {
  background: rgba(255, 184, 77, 0.15);
  border-color: rgba(255, 209, 138, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 184, 77, 0.08);
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-menu li.active a,
.nav-menu a:hover {
  background: rgba(255, 184, 77, 0.1);
  color: var(--accent-gold);
}

/* Bootstrap-like utility classes still used in templates */
.d-flex {
  display: flex !important;
}

.align-items-center {
  align-items: center !important;
}

.mr-auto {
  margin-right: auto !important;
}

.d-none {
  display: none !important;
}

@media (min-width: 992px) {
  .d-lg-block {
    display: block !important;
  }
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2420 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader:before {
  content: "";
  position: relative;
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 184, 77, 0.3);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/*--------------------------------------------------------------
# Main Content
--------------------------------------------------------------*/
main {
  margin-top: 0;
  flex: 0 0 auto;
  min-height: 0;
}

#page-content {
  flex: 0 0 auto;
  padding-top: 1.25rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main .container {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Cards
--------------------------------------------------------------*/
.box,
.card {
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 184, 77, 0.05);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.box-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-lighter);
}

.box-header h2 {
  color: var(--primary-light);
  margin: 0;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select,
.form-control,
.custom-select {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--primary-light) !important;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus,
.form-control:focus,
.custom-select:focus {
  outline: none;
  border-color: var(--primary-light);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 184, 77, 0.1);
}

input[type="text"]:disabled,
input[type="email"]:disabled,
textarea:disabled,
select:disabled,
.form-control:disabled,
.custom-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
  color: var(--accent-gold);
  opacity: 0.8;
}

select option {
  color: var(--primary-light);
  background: var(--bg-dark);
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn,
.btn-learn-more,
button,
input[type="submit"] {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 184, 77, 0.2);
}

.btn:hover,
.btn-learn-more:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 184, 77, 0.4);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn:active,
.btn-learn-more:active,
button:active,
input[type="submit"]:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 184, 77, 0.2);
  color: var(--primary-light);
  border: 1px solid var(--primary-light);
}

.btn-secondary:hover {
  background: rgba(255, 184, 77, 0.3);
}

.btn-warning {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
}

.btn-warning:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
}

/*--------------------------------------------------------------
# Tables
--------------------------------------------------------------*/
.table-responsive {
  overflow-x: auto;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

thead {
  background: rgba(255, 184, 77, 0.08);
  border-bottom: 2px solid var(--border-light);
}

th {
  padding: 1rem;
  text-align: left;
  color: var(--primary-light);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-lighter);
  color: var(--text-light);
}

tbody tr:hover {
  background: rgba(255, 184, 77, 0.05);
}

tbody tr:last-child td {
  border-bottom: none;
}

/*--------------------------------------------------------------
# Alerts & Messages
--------------------------------------------------------------*/
.alert {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}

.alert-danger {
  background: rgba(220, 20, 20, 0.1);
  border-color: #dc1414;
  color: #ff6b6b;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
  color: #86efac;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
  color: #93c5fd;
}

.alert-warning {
  background: rgba(255, 184, 77, 0.1);
  border-color: var(--primary-color);
  color: var(--accent-gold);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.bg-success {
  background: rgba(34, 197, 94, 0.18);
  color: #9ff0b6;
}

.bg-danger {
  background: rgba(220, 38, 38, 0.18);
  color: #ff9b9b;
}

.bg-warning {
  background: rgba(255, 184, 77, 0.18);
  color: var(--accent-gold);
}

.bg-secondary {
  background: rgba(148, 163, 184, 0.18);
  color: #d7dee7;
}

.text-dark {
  color: #1a1a1a;
}

/*--------------------------------------------------------------
# Styled Alert Modal
--------------------------------------------------------------*/
#styledAlertModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
}

#styledAlertModal.show {
  display: flex;
}

.styledAlertContent {
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.98), rgba(15, 15, 15, 0.98));
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

#styledAlertTitle {
  color: var(--primary-light);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

#styledAlertMessage {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

#styledAlertModal button {
  width: 100%;
  text-transform: uppercase;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.95), rgba(26, 26, 26, 0.95));
  border-top: 1px solid var(--border-light);
  color: var(--text-light);
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 15px;
  flex-shrink: 0;
}

.copyright {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0;
}

.copyright-text {
  grid-column: 2;
  text-align: center;
}

.copyright a {
  color: var(--primary-light);
}

.copyright .email {
  grid-column: 3;
  justify-self: end;
  margin-bottom: 0;
}

.copyright .email a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-right: 0;
}

.copyright .email a:hover {
  background: transparent;
}

/*--------------------------------------------------------------
# Back to Top
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 2rem;
  bottom: 2rem;
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 184, 77, 0.4);
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
.flex {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 768px) {
  :root {
    --header-offset: 88px;
  }

  #header {
    padding: 0.75rem 0;
  }

  #header .container {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }

  .logo {
    text-align: left;
  }

  .nav-menu {
    width: 100%;
    margin-left: 0;
    display: none;
  }

  .nav-menu.is-open {
    display: block;
    padding-top: 0.35rem;
  }

  .nav-toggle {
    display: inline-flex;
    border-color: rgba(255, 209, 138, 0.4);
    background: rgba(255, 184, 77, 0.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  }

  .logo a {
    font-size: 1.4rem;
  }

  .nav-menu ul {
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    align-items: stretch;
    padding-top: 0.25rem;
  }

  .nav-menu a {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 209, 138, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }
  
  .nav-menu li.active a,
  .nav-menu a:hover {
    background: rgba(255, 184, 77, 0.1);
    border-color: rgba(255, 209, 138, 0.16);
  }

  main {
    margin-top: 0;
  }

  #page-content {
    flex: 0 0 auto;
    padding-top: 0.9rem;
  }

  .container {
    padding: 0 1rem;
  }

  .flex {
    flex-direction: column;
  }

  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 0.5rem;
  }

  .box,
  .card {
    padding: 1rem;
  }

  .copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .copyright .email {
    order: -1;
    justify-self: center;
  }

  .copyright-text {
    grid-column: auto;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo a {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  h1, h2, h3 {
    font-size: 1.2rem;
  }

  .btn:not(.btn-sm),
  button:not(.btn-sm):not(.nav-toggle),
  input[type="submit"]  {
    width: 100%;
  }

  .styledAlertContent {
    width: 95%;
    padding: 1.5rem;
  }
}
.paypal-button {
  background-color: #0f2343;
  border-color: #93c5fd;
}
.paypal-button:hover {
  background-color: #1b3e76;
  border-color: #93c5fd;
  box-shadow: 0 6px 25px rgba(89, 77, 255, 0.4);
}
.paypal-icon{
  width:34px;
  height:auto;
  display:block;
  color: transparent;
  margin-right: 5px;
}

.form-group--full {
  grid-column: 1 / -1;
}

input.form-control::placeholder,
textarea.form-control::placeholder {
  color: #a7a7a7 !important;
  opacity: 40% !important;
}

input.form-control:-ms-input-placeholder,
textarea.form-control:-ms-input-placeholder {
  color: #a7a7a7 !important;
}

input.form-control::-ms-input-placeholder,
textarea.form-control::-ms-input-placeholder {
  color: #a7a7a7 !important;
}

input.form-control::-webkit-input-placeholder,
textarea.form-control::-webkit-input-placeholder {
  color: #a7a7a7 !important;
}
/*--------------------------------------------------------------
# Custom by me
--------------------------------------------------------------*/
.error-message {
  color:#ff6b6b;
}