// Variables
$primary: #1e3a8a;
$primary-hover: #1e40af;
$text-main: #374151;
$white: #ffffff;
$radius-pill: 1.25rem;
$radius-sm: 0.375rem;
$alert-danger-bg: #f8d7da;
$alert-danger-border: #f5c2c7;
$alert-danger-text: #842029;
$alert-success-bg: #d1e7dd;
$alert-success-border: #badbcc;
$alert-success-text: #0f5132;

// Global styles
body {
  margin: 0;
  font-family: sans-serif;
  background: $white;
  color: $text-main;
}

// Header
header {
  background: $primary;
  color: $white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;

  h1 {
    margin: 0;
    font-size: 1.5rem;
    color: $white;
  }

  .admin-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;

    span {
      font-size: 1rem;
    }

    a {
      color: $white;
      text-decoration: none;
      font-weight: bold;

      &:hover {
        text-decoration: underline;
      }
    }
  }
}

// Container
.container {
  max-width: 1000px;
  margin: 3rem auto;
  text-align: center;
}

h2 {
  font-size: 1.25rem;
  color: $primary;
  margin-bottom: 1.5rem;
}

// Buttons
.btn-primary,
.btn-submit {
  background: $primary;
  color: $white;
  padding: 0.75rem 1.5rem;
  border-radius: $radius-pill;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;

  &:hover {
    background: $primary-hover;
  }
}

// Provision container
.prcontainer {
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

h1 {
  font-size: 1.75rem;
  color: $primary-hover;
  margin-bottom: 2rem;
  text-align: center;
}

// Form elements
label {
  display: block;
  margin-bottom: 0.25rem;
  color: $text-main;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: $radius-sm;
  border: 1px solid #d1d5db;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.checkbox-group {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: $text-main;
}

// Alerts
.alert {
  padding: 12px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;

  &-danger {
    background-color: $alert-danger-bg;
    border: 1px solid $alert-danger-border;
    color: $alert-danger-text;
  }

  &-success {
    background-color: $alert-success-bg;
    border: 1px solid $alert-success-border;
    color: $alert-success-text;
  }
}
