/* Mobile Optimization */
@media (max-width: 480px) {
  .permission-popup {
    padding: 24px 20px;
    max-width: 100%;
    margin: 0 16px;
  }

  .permission-popup h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .permission-popup p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .permission-popup .btn {
    padding: 12px 20px;
    font-size: 15px;
  }

  .permission-popup::before {
    font-size: 40px;
    margin-bottom: 12px;
  }
}

/* Landscape mode on small devices */
@media (max-height: 600px) and (orientation: landscape) {
  .permission-popup {
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
  }

  .permission-popup::before {
    display: none; /* Hide emoji to save space */
  }

  .permission-popup h2 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .permission-popup p {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .permission-buttons {
    flex-direction: row;
  }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
  .permission-popup {
    max-width: 400px;
    padding: 28px;
  }
}

/** VARIABLES */

:root {
  --seiu-purple: #794C99;
  --seiu-purple-dark: #572A77;
  --seiu-purple-light: #AD62CE;
  --seiu-gold: #FDB913;
  --seiu-gold-dark: #A86400;
  --mask-blue: #56abda;
  --mask-yellow: #f1d347;
  --mask-blue-dark: #3489a8;
  --mask-yellow-dark: #d9b135;
  --mask-blue-light: #78cdfc;
  --mask-yellow-light: #f3f569;
  
  --font-black: #0F0F0F;
  --font-gray: #666;
  --bg-light: #F2F2F2;
  --bg-white: #FFFFFF;
  
  --border-gray: #E0E0E0;
}


/* base */

* {
  box-sizing: border-box;
}

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

.content {
  max-width: 600px;
  margin: 20px auto;
  background: white;
  padding: 20px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.main-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

body {
    font-family: "Gothic A1", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(44deg, var(--mask-blue-dark) 10%, var(--mask-blue-light) 86.44%); /*#000000;*/
    background-attachment: fixed;
    color: var(--font-black);
    line-height: 1.6;
}

h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
  color: var(--font-black);
  text-align: center;
}

h2 {
    font-size: 26px;
    font-weight: 600;
    line-height: 26px;
    margin-bottom: 2px;
    color: var(--font-black);
    font-feature-settings: 'liga' off, 'clig' off;
    text-align: center;
}

p {
  margin-bottom: 16px;
}

a {
  color: var(--mask-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--mask-blue-dark);
  text-decoration: underline;
}

section {
  margin-bottom: 40px;
  background: white;
  padding: 30px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


/* FORMS */
.form-section {
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
}

label {
  font-size: 12px;
  font-weight: 500;
  color: var(--font-black);
}


input:focus,
select:focus {
  outline: none;
  border-color: var(--mask-blue);
  box-shadow: 0 0 0 3px rgba(121, 76, 153, 0.1);
}

select {
  padding: 10px 24px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

/* BUTTONS */


button:hover:not(:disabled),
.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

button:active:not(:disabled),
.btn:active:not(:disabled) {
  transform: translateY(0);
}

button:disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Primary Button */
.main-button,
button[type="submit"] {
    background: var(--mask-yellow); /*linear-gradient(44deg, var(--mask-yellow-light) 10%, var(--mask-yellow) 86.44%);*/
    color: var(--font-black);
    width: 100%;
    margin-top: 10px;
}

/* MOBILE */

@media (max-width: 600px) {
  .content {
    padding: 20px;
    margin: 20px 10px;
  }

  section {
    padding: 20px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }
}

@media print {
  .topnav,
  button,
  .btn {
    display: none;
  }

  body {
    background: white;
  }

  section {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* OTHER */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: "...";
  animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
  0%, 20% { content: "."; }
  40% { content: ".."; }
  60%, 100% { content: "..."; }
}

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

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}


/* ERRORS */
#errorMessage {
  color: var(--error-red);
  margin-top: 10px;
  padding: 10px;
  background: #fee;
  border-radius: 4px;
  border-left: 4px solid var(--error-red);
}



.form-group {
    display: flex;
flex-direction: column;
align-items: flex-start;
gap: 4px;
align-self: stretch;
}

label {
    display: flex;
width: 500px;
height: 24px;
padding-right: 302px;
align-items: center;
font-size: 16px;
white-space: nowrap;
}


select {
    display: flex;
height: 40px;
padding: 6px 10px;
align-items: center;
gap: 8px;
border-radius: 3px;
font-size: 16px;
font-weight: 500;
background-color: var(--Monochromatic-09, #F2F2F2);
color:#0F0F0F
}
input {
    display: flex;
height: 10px;
padding: 12px 24px;
align-items: center;
gap: 8px;
border-radius: 3px;
font-size: 16px;
font-weight: 500;
background: var(--Monochromatic-09, #F2F2F2);
color:#0F0F0F
}
 option {
    display: flex;
height: 20px;
padding: 24px 24px;
align-items: center;
gap: 8px;
border-radius: 3px;
font-size: 16px;
font-weight: 500;
background: var(--Monochromatic-09, green);
color:purple
}


tr {
  border-bottom: 1px solid darkslategrey
}

tr:nth-child(even) {
  background-color: gray;
}

.btn-edit {
  display: flex;
height: 20px;
margin-top: 20px;
padding: 12px 16px;
align-items: center;
gap: 8px;
align-self: stretch;
border-radius: 3px;
color: var(--Monochromatic-09, #F2F2F2);
}


.btn-active {
  color: var(--Monochromatic-09, #F2F2F2);
  background: linear-gradient(44deg, #572A77 10%, #AC62CF 86.44%);
    display: flex;
  height: 20px;
  padding: 12px 16px;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 3px;
}


/** here is where the new stuff starts and should be cleared out when needed **/
/* Column widths */

button,
.btn {
  padding: 6px 12px;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  cursor: pointer;
  margin: 2px;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--seiu-purple);
  color: white;
}

.btn-primary:hover {
  background: #6a3580;
}

.btn-secondary {
  background: var(--seiu-gold);
  color: #333;
}

.btn-secondary:hover {
  background: var(--seiu-gold-dark);
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: #999;
}


/* Mobile responsive */
@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 16px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    background: white;
  }

  td {
    border: none;
    position: relative;
    padding: 12px 12px 12px 40%;
    text-align: left;
  }

  td:before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    font-weight: 600;
    color: var(--font-gray);
    font-size: 13px;
  }

  .col-actions {
    padding-left: 12px;
    text-align: left;
  }

  .col-actions:before {
    display: none;
  }

  .btn {
    width: calc(50% - 4px);
    margin: 2px;
  }
}
