/* Inter Thin 100 */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

/* Inter Extra Light 200 */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

/* Inter Light 300 */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* Inter Regular 400 */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Inter Medium 500 */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* Inter Semi Bold 600 */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* Inter Bold 700 */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Inter Extra Bold 800 */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

/* Inter Black 900 */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--background);
    color: var(--foreground);
    font-weight: normal;
    background-size: 64px 64px;
    background-image: linear-gradient(to right, var(--border) 1px, transparent 1px), linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    font-family: "Inter", sans-serif;
}

p, h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

a:visited {
  color: var(--foreground);
}

header {
    background-color: var(--glass-surface-background);
    backdrop-filter: blur(24px);
    border: 1 px solid var(--glass-border);
    padding: 1em;
    border-radius: 1em;
    -webkit-box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.1);
}

a {
  color: var(--primary);
}

button, .button {
    cursor: pointer;
    transition: all 300ms;
    background-color: var(--button);
    border: 1px solid var(--glass-border);
    color: var(--foreground);
    border-radius: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    min-height: 2rem;
    font-family: "Inter", sans-serif;
    font-size: 0.875rem;
    text-decoration: none;
}

.button {
  display: flex;
  place-items: center;
  justify-content: center;
  user-select: none;
  cursor: pointer;
  gap: 8px;
}


button.danger, .button.danger {
    border-color: transparent;
    background-color: #D43535;
    color: #fff;
}

button.success, .button.success {
  border-color: transparent;
  background-color: var(--success);
  color: #fff;
}


button.primary, .button.primary {
  border: none;
  background-color: var(--primary);
  color: white;
  transition: all 300ms;
}

button.primary-border, .button.primary-border {
  border: 1px solid var(--primary);
  background-color: unset;
  color: white;
  transition: all 300ms;
}

button.primary-gradient:not(:disabled), .button.primary-gradient:not(:disabled) {
    border: none;
    background-image: linear-gradient(to right, rgb(0, 98, 255), rgb(60, 131, 246));
    color: white;
    transition: all 300ms;
}

button.primary-gradient-alt, .button.primary-gradient-alt {
  background: linear-gradient(290deg, #5386e8, #a437e7);
  color: white;
  border: none;
  transition: all 300ms;
}

button.primary-gradient:hover:not(:disabled), .button.primary-gradient:hover:not(:disabled) {
    filter: brightness(120%);
    transition: all 300ms;
}

button.iconized i, .button.iconized i {
    margin-right: 0.5em;
}

.button:disabled, button:disabled {
    cursor: not-allowed;
    background-color: var(--inactive);
    transition: all 300ms;
}

.button:active:not(:disabled), button:active:not(:disabled) {
    transform: scale(0.98);
    filter: brightness(80%);
    transition: all 300ms;
}

button:hover, .button:hover {
    filter: brightness(90%);
    transition: filter 200ms, transform 500ms;
}

h3 {
  font-size:  1.125rem;
}

.text-muted {
    color: var(--text-muted);
}

.container {
    width: 95%; 
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1em;
    margin-bottom: 1em;
}

.container-main {
    width: 95%;
    max-width: 1280px;
    margin-left: auto;
    flex: 1;
    margin-right: auto;
    margin-bottom: 1em;
}

.flex {
    display: flex;
}

.flex-row {
    flex-direction: row;
}

.flex-col {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.place-items-center {
    place-items: center;
}

.text-field {
    display: flex;
    place-items: center;
    gap: 5px;
    border-radius: 5px;
    overflow: hidden;
    padding-left: 8px;
    border: 1px solid var(--glass-border);
}

.loading-card-overlay {
  box-sizing: content-box;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 1em;
  z-index: 10;
}

.text-field input {
    border: none;
    width: 100%;
    height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin: 0;
    font-family: "Nunito", sans-serif;
    font-size: 1em;
}

.text-field input:hover {
    box-shadow: unset;
}

.text-field input:focus {
    outline: none;
    border: none;
}

.label {
    display: inline-flex;
    gap: 0.4em;
    place-items: center;
}

.label i {
    color: var(--primary);
}


.error-message {
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
}

.save-button:disabled {
  filter: saturate(10%);
}

.card {
    background-color: var(--surface);
    border-radius: 1em;
    padding: 1.5rem;
    gap: 1.25rem;
    display: flex;
    flex-direction: column;
    -webkit-box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.1);
}


.notice-card {
  border-radius: 0.5em;
  padding: 1rem;
  gap: 1.25rem;
  display: flex;
  flex-direction: column;
}

.notice-card.success {
  background-color: var(--success-aa);
  border: 1px solid var(--success);
}

.notice-card.warning {
  background-color: var(--warning-aa);
  border: 1px solid var(--warning);
}

.notice-card.danger {
  background-color: var(--danger-aa);
  border: 1px solid var(--danger);
}


.dark .card {
  box-shadow: 0 20px 40px #0000004d;
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out forwards;
}

.input {
  display: flex;
  height: 3rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  color: var(--foreground);
  background-color: var(--surface-input);
  box-shadow: 0 0 4px hsla(212, 100%, 94%, 0.1);
  transition: all 300ms ease;
  font-family: "Inter", sans-serif;
}

.gap05 {
  gap: 0.5em;
}

.form-group {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
}

textarea.input {
  width: 100%;
  resize: vertical;
  font-size: 0.8rem;
}

.input::placeholder {
  color: var(--text-muted);
}

.input:focus-visible {
  outline: none;
  box-shadow: 0 0 6px hsla(217, 100%, 50%, 0.1);
  border-color: var(--primary);
}

.input:hover:not(:disabled) {
  border-color: var(--primary);
}

/* disabled */
.input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.icon-container {
  display: inline-flex;
  place-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  background: linear-gradient(143deg, rgba(8, 102, 254, 1) 0%, rgba(51, 126, 247, 1) 100%);
  border-radius: 1em;
  width: 40px;
  height: 40px;
}

.profile-header {
  line-height: 1.2;
}

.profile {
  flex-direction: column;
  gap: 2em;
}

.card-header {
  display: flex;
  gap: 1em;
  place-items: center;
}

.profile-header h1 {
  margin-bottom: 0.5rem;
  padding: 0;
}

.card-header h3 {
  margin: 0;
  padding: 0;
}

@media (max-width: 600px) {
  .form-group {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .input {
    padding: 0.5rem 0.5rem;
  }

  header {
    padding: 0.5em;
  }

  .container {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
  }
}

@media (max-width: 400px) {
  .card {
    padding: 1rem;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}