/* GLOBAL SETTINGS */
:root {
    --primary-color: #2D1B09;
    --secondary-color: #FFF0E1;
    --color-3: #E1CAB2;
    --color-4: #F9F8F6;
}

body {
    margin: 0;
    height: 100vh;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    display: flex;
}

nav {
    background-color: var(--primary-color);
    width: 10rem;
    padding: 1.5rem;
    color: var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

nav a {
    padding: 0.5rem;
    border-radius: 0.2rem;
}

nav a:link,
nav a:visited,
nav a:hover,
nav a:active,
nav a:focus {
    color: var(--secondary-color);
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav hr {
    background-color: var(--secondary-color);
    border: none;
    width: 100%;
    height: 0.1rem;
}

main {
    flex: 1;
    display: flex;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 1.5rem 1.5rem 10rem 1.5rem;
    overflow-y: scroll;
}

main a:link,
main a:visited,
main a:active,
main a:focus {
    color: #996633;
    text-decoration: underline dotted;
}

main a:hover {
    text-decoration: underline;
}

input[type="text"], input[type="number"], input[type="password"], input[type="email"], input[type="date"] {
    border: 2px solid var(--primary-color);
    background-color: var(--color-4);
    padding: 0.5rem;
    border-radius: 1rem;
    font-size: 1rem;
}

form textarea {
    border: 2px solid var(--primary-color);
    background-color: var(--color-4);
    padding: 0.5rem;
    border-radius: 1rem;
    font-size: 1rem;
    resize: none;
}

button[type="submit"] {
    border: 2px solid var(--primary-color);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 1rem;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    cursor: pointer;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

a {
    text-decoration: none;
}

table {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-collapse: collapse;
}

table tr:nth-child(odd) {
    background-color: var(--color-3);
}

table td {
    border-top: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    padding: 0.25rem;
}

table th {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

#lang-select {
    border: 2px solid var(--secondary-color);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 0.5rem;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    padding: 0.25rem
}

select {
    border: 2px solid var(--primary-color);
    background-color: var(--color-4);
    padding: 0.5rem;
    border-radius: 1rem;
    font-size: 1rem;
}

/* TAILWIND STYLE CLASS NAMES */
.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.gap-s {
    gap: 0.25em;
}

.flex-center {
    justify-content: center;
}

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

.flex-space-between {
    justify-content: space-between;
}

.flex-space-around {
    justify-content: space-around;
}

.flex-end {
    justify-content: flex-end;
}

.flex-row-reverse {
    flex-direction: row-reverse;
}

.flex-w-33 {
    width: calc(100% / 3);
    box-sizing: border-box;
}

.flex-w-50 {
    width: 50%;
    box-sizing: border-box;
}

.flex-w-70 {
    width: 70%;
    box-sizing: border-box;
}

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

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

.text-bold {
    font-weight: bold;
}

.error-msg {
    color: red;
}

.w-8 {
    width: 8rem;
}

.w-20 {
    width: 20rem;
}

.w-25 {
    width: 25rem;
}

.h-100p {
    height: 100%;
}

.p-05 {
    padding: 0.5rem
}

.px-05 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.img-small {
    width: 8rem;
    height: 6rem;
}

.btn-submit {
    border: 2px solid var(--primary-color);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 1rem;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.sets-wrapper {
    background-color: var(--secondary-color);
    padding: 1.2rem;
    min-height: 20vh;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.set-card {
    background-color: var(--color-4);
    border: 1px solid var(--color-3);
    border-radius: 6px;
    padding: 0.7rem;
    width: 170px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.set-info h3 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.price {
    margin: 0.2rem 0 0 0;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.grid-preview {
    display: grid;
    gap: 2px;
    justify-content: center;
}

.grid-box {
    background-color: var(--color-3);
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: 2px;
}

.card-actions {
    margin-top: auto;
    font-size: 0.75rem;
}

.card-actions a {
    text-decoration: none;
    color: var(--primary-color);
}

.card-actions a:hover {
    text-decoration: underline;
}

.set-detail-wrapper {
    background-color: var(--secondary-color);
    padding: 2rem;
    flex: 1;
    min-width: 0;
}

.set-detail-wrapper h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.set-detail-card {
    background-color: var(--color-4);
    border: 1px solid var(--color-3);
    border-radius: 10px;
    padding: 2rem;
    overflow-x: auto;
    max-width: fit-content;
}

.grid-detail {
    display: grid;
    gap: 12px;
    align-items: stretch;
}

.grid-detail-box {
    background-color: var(--color-3);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    min-height: 120px;
}


.product-select {
    min-width: 15rem;
    width: 100%;
    font-size: 0.8rem;
    padding: 0.3rem;
}
