:root {
    --text-color: #1b1b1b;
    --light-color: #d8d6de;
    --primary: #004BFA;
    --background: #eee;
    --ui-elements-background: #fff;
    --th-hover: #ddd;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #ffffff;
        --primary: #004BFA;
        --background: #222;
        --ui-elements-background: #444;
        --th-hover: #555;
    }
}


html {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
}

body, html {
    height: 100%;
    background: var(--background);
}

.wrapper {
    padding: 0 1rem;
    margin: 0 auto;
    max-width: 75rem;
}

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

h1 {
    font-size: 1.25rem;
    text-align: center;
}

h2 {
    font-size: 1.25rem;
}

form {
    display: flex;
    align-items: center;
    flex-direction: column;
}

label {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
    width: 100%;
}

input {
    border: 1px solid var(--light-color);
    margin-bottom: 0.5rem;
    border-radius: 6px;
    font-size: 1rem;
    padding: 0 0.5rem;
    height: 2.25rem;
    outline-color: var(--primary);
    width: 100%;
}

input[readonly] {
    pointer-events: none;
    opacity: 0.7;
}

label:has(input[readonly]) {
    pointer-events: none;
    opacity: 0.7;
}

button {
    background: var(--primary);
    height: 2.25rem;
    border-radius: 6px;
    padding: 0 1rem;
    color: white;
    transition: opacity 0.2s ease-in-out;
}

button.full-width {
    width: 100%;
}

button:hover {
    opacity: 0.8
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.divider {
    width: 1px;
    height: 1.5rem;
    background: var(--light-color);
}

.resimo-logo {
    width: 6rem;
}

header {
    background: var(--ui-elements-background);
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.header-content {
    height: 3rem;
}

.header-content h1 {
    margin-right: auto;
    padding-left: 1rem;
    border-left: 1px solid var(--light-color);
}

#login-page {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loginForm {
    padding: 2rem;
    background: var(--ui-elements-background);
    border-radius: 1rem;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
    width: 400px;
}

#panel-view {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.table-controls {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.delete-button {
    background: rgb(200, 0, 0);
}

table {
    margin-left: auto;
    margin-right: auto;
    border-collapse: collapse;
    width: 100%;
    font-size: 0.875rem;
}

th, td {
    border: 1px solid var(--light-color);
    padding: 0.5rem;
    text-align: left;
}

th {
    background: var(--ui-elements-background);
}

tr {
    background: rgba(255, 255, 255, 0.3);
}

tr:hover {
    background: var(--th-hover);
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}


.modal-background {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    overflow: auto;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal {
    width: calc(100% - 2rem);
    max-width: 400px;
    padding: 20px;
    border-radius: 1rem;
    background: var(--background);
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
}

.modal .row {
    margin-bottom: 1rem;
}

.close-button {
    color: var(--text-color);
    font-size: 28px;
    font-weight: bold;
    background: none;
    padding: 0;
}
