:root {
    --bs-primary: #edcb43; /* Nova cor prim�ria */
    --bs-primary-rgb: #edcb43;
    --bs-secondary: #33aaff; /* Nova cor secund�ria */
    --bs-success: #28a745;
    --bs-danger: #eba456;
    --bs-warning: #ffc107;
    --bs-info: #17a2b8;
    --bs-light: #f8f9fa;
    --bs-dark: #343a40;
}

/* Se necess�rio, sobrescreva classes espec�ficas */
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-outline-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

    .btn-outline-primary:hover {
        background-color: var(--bs-primary) !important;
        border-color: var(--bs-primary) !important;
        color: var(--bs-dark) !important;
    }

.text-primary {
    color: var(--bs-primary) !important;
}

.btn-danger {
    background-color: var(--bs-danger) !important;
    border-color: var(--bs-danger) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

.card-atividade {
    -moz-border-radius: inherit;
    -webkit-border-radius: inherit;
    border-radius: inherit;
    background-color: transparent;
    padding: 15px;
}

body {
    /*margin-bottom: 60px;*/
    height: 100vh;
    /*
    * Created with https://www.css-gradient.com
    * Gradient link: https://www.css-gradient.com/?c1=333d53&c2=a3a8e3&gt=l&gd=dtl
    */
    /*background: #333D53;
    background: linear-gradient(135deg, #333D53, #A3A8E3);*/
    display: flex;
    flex-direction: column;
}

body>.container {
    flex-grow: 1;
}

footer {
    background-color: white;
    min-height: 60px;
}

.tag {
    display: inline-block;
    padding: 0.25em 0.5em;
    margin: 0.25em;
    background-color: #f3f7d2;
    color: black;
    border-radius: 0.25em;
}

.tag.tag-objetivo {
    background-color: #198754 !important;
}

.tag .remove {
    margin-left: 0.5em;
    cursor: pointer;
}

.drop-zone {
    border: 2px dashed darkgray;
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    color: #6c757d;
    cursor: pointer;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.drop-zone.dragover {
    background-color: #e9f7ff;
    border-color: #0d6efd;
}

.custom-select-container {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 10px;
    max-height: 300px; /* Define uma altura m�xima para rolagem */
    overflow-y: auto;
}

.custom-select-item {
    display: flex;
    align-items: center;
    padding: 5px;
    cursor: pointer;
}

.custom-select-item input[type="checkbox"] {
    margin-right: 10px;
}

.gallery-img {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.gallery-img:hover {
    transform: scale(1.05);
}

.carousel-inner img {
    object-fit: cover;
    height: 400px; /* Ajuste conforme necess�rio */
}

/* Estilo do cont�iner da barra de progresso */
.progress-container {
    width: 100%;
    background-color: lightgray;
    border-radius: 4px;
    border-color: black;
    margin: 8px auto;
    height: 30px;
    position: relative;
    overflow: hidden;
}

/* Estilo da barra de progresso em si */
.progress-bar {
    height: 100%;
    background-color: #4caf50; /* Cor verde */
    width: 0%; /* Define a largura da barra com o valor percentual */
    transition: width 0.5s ease-in-out; /* Efeito suave */
}

/* Texto percentual dentro da barra */
.progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 2px #000;
}

small.eixo {
    font-size: 0.8rem;
    background-color: #eee;
}

/* Offcanvas Navigation Styling */
.offcanvas-header .navbar-brand {
    color: var(--bs-dark) !important;
    font-weight: 500;
}

.offcanvas-body .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
    transition: background-color 0.15s ease-in-out;
}

.offcanvas-body .nav-link:hover {
    background-color: var(--bs-light);
    color: var(--bs-dark) !important;
}

.offcanvas-body .navbar-nav {
    --bs-nav-link-color: var(--bs-dark);
}

.offcanvas .dropdown-menu {
    border: none;
    background-color: transparent;
    box-shadow: none;
}

.offcanvas .dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.offcanvas .dropdown-item:hover {
    background-color: var(--bs-light);
}

/* Offcanvas User Info Styling */
.offcanvas-user-info {
    padding: 1rem;
    border-top: 1px solid var(--bs-light);
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.offcanvas-logout-btn {
    color: #6c757d !important;
    font-size: 0.875rem;
    transition: color 0.15s ease-in-out;
}

.offcanvas-logout-btn:hover {
    color: var(--bs-danger) !important;
}

.offcanvas-logout-btn:focus {
    color: var(--bs-danger) !important;
    box-shadow: none;
}

.flex-wrap-gap {
    row-gap: 0.5rem; /* ajuste conforme necessidade */
}

/* Componente Objetivos Curriculares Responsivo */
.objetivos-component {
    position: relative;
}

/* Interface Desktop - Select Múltiplo (padrão) */
.objetivos-select-desktop {
    display: block;
}

.objetivos-mobile-interface {
    display: none;
}

/* Interface Mobile - Lista de Checkboxes */
@media (max-width: 767.98px) {
    .objetivos-select-desktop {
        display: none;
    }
    
    .objetivos-mobile-interface {
        display: block;
    }
}

/* Estilos para interface mobile */
.objetivos-search {
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.objetivos-list-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem;
    background: white;
}

.objetivo-item {
    padding: 0.75rem;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.objetivo-item:hover {
    background-color: #f8f9fa;
}

.objetivo-item:last-child {
    border-bottom: none;
}

.objetivo-item.selected {
    background-color: #e3f2fd;
    border-left: 3px solid var(--bs-primary);
}

.objetivo-checkbox {
    margin-right: 0.75rem;
}

.objetivo-content {
    flex-grow: 1;
    min-width: 0;
}

.objetivo-header {
    font-weight: 500;
    color: var(--bs-dark);
    margin-bottom: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /*gap: 0.5rem;*/
}

.objetivo-numero {
    /*color: var(--bs-primary);*/
    font-weight: 600;
    font-size: 0.875rem;
}

.objetivo-categoria {
    /*background-color: var(--bs-light);*/
    /*color: var(--bs-secondary);*/
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.objetivo-description {
    /*color: #6c757d;*/
    font-size: 0.875rem;
    line-height: 1.4;
    margin-top: 0.25rem;
}

.objetivos-counter {
    background-color: var(--bs-light);
    padding: 0.5rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--bs-secondary);
}

.objetivos-no-results {
    text-align: center;
    padding: 2rem;
    /*color: #6c757d;*/
    font-style: italic;
}

/* Estilos para Páginas de Autenticação */
.auth-layout-body {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.auth-container {
    padding: 1rem;
}

.auth-main {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--bs-dark);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: #6c757d !important;
}

.auth-form {
    width: 100%;
}

.auth-form .form-floating {
    position: relative;
}

.auth-form .form-floating label {
    color: #6c757d;
}

.auth-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(237, 203, 67, 0.25);
}

.auth-form .form-check {
    padding-left: 24px;
    display: flex;
    align-items: center;
    min-height: auto;
}

.auth-form .form-check-input {
    margin-right: 0.5rem;
    margin-top: 0;
    flex-shrink: 0;
    vertical-align: middle;
}

.auth-form .form-check-label {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 0;
}

.auth-form .btn {
    border-radius: 0.75rem;
    /*font-weight: 600;*/
    font-size: 1.25rem;
    padding: 0.75rem 1.5rem;
    text-transform: none;
    letter-spacing: 0.025em;
    transition: all 0.3s ease;
}

.auth-form .btn-primary {
    background: var(--bs-primary);
    border: 2px solid var(--bs-primary);
}

.auth-form .btn-primary:hover {
    background: #d4b640;
    border-color: #d4b640;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 203, 67, 0.3);
}

.auth-links {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.auth-link {
    color: var(--bs-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #d4b640;
    text-decoration: underline;
}

.auth-link.text-muted {
    color: #6c757d !important;
    font-weight: 400;
}

.auth-link.text-muted:hover {
    color: #495057 !important;
}

.alert-danger {
    border-radius: 0.75rem;
    border: none;
    background-color: #f8d7da;
    color: #721c24;
    font-size: 0.9rem;
}

/* Responsividade para diferentes tamanhos de tela */
@media (max-width: 575.98px) {
    .auth-main {
        padding: 1.5rem;
        border-radius: 0.75rem;
        margin: 0.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-subtitle {
        font-size: 0.9rem;
    }
    
    .auth-form .form-control {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .auth-form .btn {
        padding: .5rem 1rem;
        font-size: 1.25rem;
    }
    
    .auth-form .form-check {
        padding: 0.5rem 0;
        padding-left: 24px;
        gap: 0.5rem;
    }
    
    .auth-form .form-check-input {
        width: 1.1em;
        height: 1.1em;
        margin-right: 0.6rem;
    }
    
    .auth-form .form-check-label {
        font-size: 0.9rem;
        line-height: 1.3;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .auth-main {
        padding: 2rem;
    }
}

@media (min-width: 768px) {
    .auth-container {
        padding: 2rem;
    }
    
    .auth-main {
        padding: 2.5rem;
    }
    
    .auth-title {
        font-size: 2rem;
    }
}

@media (min-width: 992px) {
    .auth-main {
        padding: 3rem;
    }
}

/* Tag Cloud Component Styles */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tag-cloud-item {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: var(--bs-dark);
    text-decoration: none;
    border-radius: 1rem;
    font-weight: 500;
    line-height: 1.2;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.tag-cloud-item:hover {
    background: linear-gradient(135deg, var(--bs-primary), #d4b640);
    color: var(--bs-dark);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tag-cloud-item:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Tag Size Classes */
.tag-xs {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    opacity: 0.8;
}

.tag-sm {
    font-size: 0.875rem;
    padding: 0.25rem 0.625rem;
    opacity: 0.9;
}

.tag-md {
    font-size: 1rem;
    padding: 0.375rem 0.75rem;
}

.tag-lg {
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.tag-xl {
    font-size: 1.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

/* Responsive Adjustments */
@media (max-width: 575.98px) {
    .tag-cloud {
        gap: 0.25rem;
        padding: 0.5rem;
        justify-content: flex-start;
    }

    .tag-xs {
        font-size: 0.6875rem;
        padding: 0.125rem 0.375rem;
    }

    .tag-sm {
        font-size: 0.75rem;
        padding: 0.1875rem 0.5rem;
    }

    .tag-md {
        font-size: 0.875rem;
        padding: 0.25rem 0.625rem;
    }

    .tag-lg {
        font-size: 1rem;
        padding: 0.375rem 0.75rem;
    }

    .tag-xl {
        font-size: 1.125rem;
        padding: 0.5rem 0.875rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .tag-cloud {
        gap: 0.375rem;
        padding: 0.75rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .tag-cloud {
        gap: 0.5rem;
        padding: 1rem;
    }
}

@media (min-width: 992px) {
    .tag-cloud {
        gap: 0.625rem;
        padding: 1.25rem;
    }

    .tag-xl {
        font-size: 1.75rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Empty State */
.tag-cloud-empty {
    min-height: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tag-cloud-empty i {
    opacity: 0.5;
}

.tag-cloud-empty p {
    margin: 0;
    font-style: italic;
}

/* Utility Classes for Different Layouts */
.tag-cloud.text-left {
    justify-content: flex-start;
}

.tag-cloud.text-right {
    justify-content: flex-end;
}

.tag-cloud.compact {
    gap: 0.25rem;
    padding: 0.5rem;
}

.tag-cloud.compact .tag-cloud-item {
    padding: 0.125rem 0.5rem;
    border-radius: 0.75rem;
}

/* Click feedback animation */
.tag-cloud-item.clicked {
    animation: tagClickPulse 0.3s ease-out;
}

@keyframes tagClickPulse {
    0% {
        transform: translateY(-2px) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: translateY(-2px) scale(1);
    }
}
