:root {
    --primary-color: #333333;
    --primary-hover: #000000;
    --success-color: #555555;
    --success-bg: #e0e0e0;
    --success-text: #333333;
    --danger-color: #777777;
    --danger-bg: #f5f5f5;
    --danger-text: #333333;
    --text-color: #222222;
    --text-muted: #777777;
    --bg-color: #f4f4f4;
    --border-color: #dddddd;
    --card-bg: #ffffff;
}

body {
    font-family: "Poppins", system-ui, -apple-system, sans-serif;
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

#page-transition-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.25s ease-in;
}

body.page-loaded #page-transition-wrapper {
    opacity: 1;
}

body.page-exiting #page-transition-wrapper {
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

/* Esconder scrollbar e DjDT no mobile (simulando overlay scrollbar nativo dos celulares) */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Edge */
    }

    #djDebug {
        display: none !important;
    }
}

/* padding removed */

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    body.has-bottom-nav > .container {
        padding-bottom: 80px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 374px) {
    .container {
        padding: 10px;
    }
}

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

#page-transition-wrapper > .container {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

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

.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-unstyled > li {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.list-unstyled > li:last-child {
    border-bottom: none;
}

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

a:hover {
    text-decoration: underline;
}

/* --- Font Utility Classes (Poppins) --- */
.poppins-thin {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.poppins-extralight {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.poppins-light {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-medium {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.poppins-extrabold {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: normal;
}

.poppins-black {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.poppins-thin-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.poppins-extralight-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.poppins-light-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.poppins-regular-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.poppins-medium-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.poppins-semibold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.poppins-bold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.poppins-extrabold-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-style: italic;
}

.poppins-black-italic {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: italic;
}


/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 800px;
    background-color: var(--card-bg, #ffffff);
    color: var(--text-color, #222);
    border: 1px solid var(--border-color, #ddd);
    border-radius: 8px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 16px 20px;
    font-family: var(--font-family, 'Poppins', sans-serif);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
html.cookie-accepted .cookie-banner {
    display: none !important;
}
.cookie-banner.hiding {
    opacity: 0;
    visibility: hidden;
}
.cookie-banner .cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}
body.has-bottom-nav .cookie-banner {
    bottom: 84px;
}
@media (max-width: 600px) {
    .cookie-banner {
        bottom: 16px;
        width: calc(100% - 32px);
    }
    body.has-bottom-nav .cookie-banner {
        bottom: 76px;
    }
    .cookie-banner .cookie-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

