:root {
    --background: 220 16% 96%;
    --foreground: 220 16% 20%;
    --card: 220 16% 98%;
    --card-foreground: 220 16% 20%;
    --popover: 220 16% 98%;
    --popover-foreground: 220 16% 20%;
    --primary: 213 32% 52%;
    --primary-foreground: 220 16% 98%;
    --secondary: 220 16% 90%;
    --secondary-foreground: 213 32% 52%;
    --muted: 220 10% 92%;
    --muted-foreground: 220 16% 40%;
    --accent: 179 25% 65%;
    --accent-foreground: 220 16% 20%;
    --border: 220 16% 85%;
    --input: 220 16% 85%;
    --ring: 213 32% 52%;
    --chart-1: 213 32% 52%;
    --chart-2: 179 25% 65%;
    --chart-3: 193 43% 67%;
    --chart-4: 210 34% 63%;
    --chart-5: 311 20% 63%;
    --radius: .65rem;
    --success: 142 72% 85%;
    --success-foreground: 142 72% 20%;
    --warning: 38 92% 85%;
    --warning-foreground: 38 92% 20%;
    --new: 213 70% 85%;
    --new-foreground: 213 70% 20%;
    --destructive: 1 67% 84%;
    --destructive-foreground: 1 67% 24%;
    --info: 215 62% 73%;
    --info-foreground: 215 62% 13%;
    --card-success: 142 72% 95%;
    --card-destructive: 0 84% 95%;
    --card-warning: 38 92% 95%;
    --card-new: 213 70% 95%;
    --border-success: 142 72% 75%;
    --border-destructive: 0 84% 75%;
    --border-warning: 38 92% 75%;
    --border-new: 213 70% 75%;
    --font: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
    --logo-url: url('./images/archeiothiki-logo-color.png');
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: 220 16% 16%;
        --foreground: 220 16% 90%;
        --card: 220 16% 18%;
        --card-foreground: 220 16% 90%;
        --popover: 220 16% 18%;
        --popover-foreground: 220 16% 90%;
        --primary: 213 32% 62%;
        --primary-foreground: 220 16% 16%;
        --secondary: 220 16% 25%;
        --secondary-foreground: 213 32% 62%;
        --muted: 220 16% 22%;
        --muted-foreground: 220 16% 70%;
        --accent: 179 25% 55%;
        --accent-foreground: 220 16% 16%;
        --border: 220 16% 25%;
        --input: 220 16% 25%;
        --ring: 213 32% 62%;
        --chart-1: 213 32% 62%;
        --chart-2: 179 25% 55%;
        --chart-3: 193 43% 57%;
        --chart-4: 210 34% 53%;
        --chart-5: 311 20% 53%;
        --radius: .65rem;
        --success: 142 60% 40%;
        --success-foreground: 142 60% 95%;
        --warning: 38 80% 45%;
        --warning-foreground: 38 80% 95%;
        --new: 213 60% 45%;
        --new-foreground: 213 60% 95%;
        --destructive: 10 49% 19%;
        --destructive-foreground: 10 49% 79%;
        --info: 206 62% 8%;
        --info-foreground: 206 62% 68%;
        --card-success: 142 60% 25%;
        --card-destructive: 0 70% 25%;
        --card-warning: 38 80% 25%;
        --card-new: 213 60% 25%;
        --border-success: 142 60% 35%;
        --border-destructive: 0 70% 35%;
        --border-warning: 38 80% 35%;
        --border-new: 213 60% 35%;
        --font: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
        --logo-url: url('./images/archeiothiki-logo-white.png');
    }
}

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

.fill-screen {
    width: 100vw;
    height: 100vh;
}

html,
body {
    font-family: var(--font);
    color: hsl(var(--foreground));
}

html {
    background-color: hsl(var(--background));
    background-repeat: repeat;
    background-image: url(./bg.svg);
    background-size: 40px 40px;
}

.box {
    border: .1em solid hsl(var(--border));
    background: hsl(var(--card));
    border-radius: var(--radius);
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0px 0px 2px 0px rgba(138, 138, 138, 0.2);

}

.box-fg {
    background: hsl(var(--border));
    border-radius: var(--radius);
    padding: 10px;
    box-sizing: border-box;
}

a {
    border-radius: var(--radius);
    outline-offset: 4px !important;
}

* {
    outline-width: 0;
    accent-color: hsl(var(--accent));
}

*:focus {
    outline-color: hsl(var(--primary));
    outline-width: 2px;
    outline-offset: 2px;
    outline-style: solid;
}

.field {
    margin: 20px 0;
}

.field:last-child {
    margin: 0;
}

input[type=text],
input[type=password],
input[type=email] {
    padding: 10px 15px 10px 15px;
    border: .1em solid hsl(var(--border));
    background-color: hsl(var(--background));
    border-radius: var(--radius);
    color: hsl(var(--foreground));
    font-size: 16px;
    box-sizing: border-box;
    width: 100%;
}


input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus {
    border-color: hsl(var(--primary));
}

input[type=button],
input[type=submit],
button,
.button {
    transition:
        background-color .3s ease,
        color .3s ease,
        border-color .3s ease;
    padding: 10px 15px 10px 15px;
    font-size: 15px;
    border: none;
    font-family: var(--font);
    border-radius: var(--radius);
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

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

input[type=button]:hover,
input[type=submit]:hover,
button:hover,
.button:hover {
    transition:
        background-color .3s ease,
        color .3s ease,
        border-color .3s ease;
    background-color: hsl(var(--primary) / .9);
}

input[type=button]:active,
input[type=submit]:active,
button:active,
.button:active {
    transition: none;
    background-color: hsl(var(--primary) / .5);
}

.transparent {
    background-color: transparent;
    color: hsl(var(--foreground));
}

.transparent:hover {
    color: hsl(var(--primary-foreground));
}

.list-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    margin-bottom: 10px;
    border-radius: var(--radius);
    cursor: pointer;
}

.list-item:hover {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.list-item:last-child {
    margin-bottom: 0;
}

.list-item .icon {
    margin-right: 10px;
}

.list-item .text {
    flex: 1;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: black;
}

.line {
    border-bottom: 1px solid var(--border);
    margin: 10px 0;
}

.title {
    font-size: 22px;
    font-weight: bold;
}

.sub {
    font-size: 18px;
    font-weight: bold;
}

.bold {
    font-weight: bold;
}

a {
    color: hsl(var(--link));
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
}

.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.flex1 {
    flex: 1;
}

.flex {
    display: flex;
}

.label {
    padding-top: 10px;
    padding-bottom: 5px;
    font-weight: bold;
}

.pill {
    font-size: 14px;
    padding: 2px 5px;
    border-radius: var(--radius);
}

.all-center {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hidden {
    display: none;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper::before {
    content: "";
    position: absolute;
    background-color: hsl(var(--foreground)) !important;

    mask-size: 18px 18px !important;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    width: 18px;
    height: 18px;
    z-index: 1;
}

.input-icon {
    padding-left: 40px !important;
}

.disabled { 
    filter: grayscale(70%);
    cursor: not-allowed!important;
}


input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-background-clip: text;
    -webkit-text-fill-color: hsl(var(--foreground));
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px hsl(var(--background));
}

.toastify-success {
    background: hsl(var(--success)) !important;
    color: hsl(var(--success-foreground)) !important;
}

.toastify-danger {
    background: hsl(var(--destructive)) !important;
    color: hsl(var(--destructive-foreground)) !important;
}

.toastify-warn {
    background: hsl(var(--warning)) !important;
    color: hsl(var(--warning-foreground)) !important;
}

.toastify-info {
    background: hsl(var(--info)) !important;
    color: hsl(var(--info-foreground)) !important;
}

.logo {
    background-image: var(--logo-url);
    background-size: contain;
    background-repeat: no-repeat;
}

.loader {
  width: 48px;
  height: 48px;
  border: 3px dotted hsl(var(--foreground));
  border-style: solid solid dotted dotted;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  animation: rotation 2s linear infinite;
}
.loader::after {
  content: '';  
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 3px dotted hsl(var(--accent));
  border-style: solid solid dotted;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  animation: rotationBack 1s linear infinite;
  transform-origin: center center;
}
    
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 
@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
} 

.loading-screen {
    position: fixed;
    right: 10px;
    bottom: 10px;
}