/* Estilos globais */
html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background-color: #f5f5f5;
}

/* Estilos para o navbar */
.navbar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 40px;
}

/* Estilos para os itens do navbar */
.navbar-item {
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-item:hover {
    background-color: #f8f8f8 !important;
    color: #4a4a4a !important;
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #3273dc;
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar-item:hover::after {
    width: 100%;
    left: 0;
}

/* Estilo para o item ativo do navbar */
.navbar-item.is-active {
    background-color: transparent !important;
    color: #3273dc !important;
    font-weight: 500;
}

.navbar-item.is-active::after {
    width: 100%;
    left: 0;
}

/* Estilos para o dropdown */
.navbar-dropdown .navbar-item {
    padding-left: 1rem;
}

.navbar-dropdown .navbar-item:hover::after {
    width: calc(100% - 2rem);
    left: 1rem;
}

/* Estilos para o login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/wave.svg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100%;
    z-index: 0;
}

.login-container {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    max-width: 150px;
}

.login-logo .title {
    margin-bottom: 0.5rem;
    color: #363636;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.login-logo .subtitle {
    color: #7a7a7a;
    font-weight: 400;
}

/* Estilos para o dashboard */
.dashboard-card {
    transition: all 0.3s ease;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border: none;
    position: relative;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.dashboard-card .card-header {
    background-color: #4a4a4a;
    color: white;
    border-bottom: none;
    padding: 1.2rem 1.5rem;
}

.dashboard-card .card-header-title {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0;
}

.dashboard-card .card-header .icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.dashboard-card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 1.5rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,1));
}

.dashboard-card .count {
    font-size: 3rem;
    font-weight: 700;
    margin: 0.5rem 0;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Estilos para os chamados */
.ticket-list {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.ticket-header {
    background-color: #f5f5f5;
    padding: 1rem;
    border-bottom: 1px solid #dbdbdb;
}

/* Estilos para a timeline de respostas */
.timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #dbdbdb;
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: #3e8ed0;
    border: 2px solid white;
}

.timeline-content {
    background-color: white;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.timeline-date {
    font-size: 0.8rem;
    color: #7a7a7a;
}

/* Estilos para as tags de status, prioridade e tempo */
.status-badge, .prioridade-badge, .tempo-badge {
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
    font-size: 0.85rem;
    min-width: 80px;
}

.tempo-badge .icon {
    margin-right: 5px;
}

.status-aberto, .tag.status-badge.status-aberto {
    background-color: #6ab04c !important;
    color: white !important;
}

.status-aguardando, .tag.status-badge.status-aguardando, .tag.status-badge.status-aguardando-resposta {
    background-color: #686de0 !important;
    color: white !important;
}

.status-respondido, .tag.status-badge.status-respondido {
    background-color: #30336b !important;
    color: white !important;
}

.status-analise, .tag.status-badge.status-analise, .tag.status-badge.status-em-analise {
    background-color: #718093 !important;
    color: white !important;
}

.status-desenvolvimento, .tag.status-badge.status-desenvolvimento, .tag.status-badge.status-em-desenvolvimento {
    background-color: #353b48 !important;
    color: white !important;
}

.status-fechado, .tag.status-badge.status-fechado {
    background-color: #c23616 !important;
    color: white !important;
}

.prioridade-baixa, .tag.prioridade-badge.prioridade-baixa, span.tag.prioridade-baixa {
    background-color: #3498db !important;
    color: white !important;
}

.prioridade-media, .tag.prioridade-badge.prioridade-media, span.tag.prioridade-media {
    background-color: #1abc9c !important;
    color: white !important;
}

.prioridade-alta, .tag.prioridade-badge.prioridade-alta, span.tag.prioridade-alta {
    background-color: #e67e22 !important;
    color: white !important;
}

.prioridade-critica, .tag.prioridade-badge.prioridade-critica, span.tag.prioridade-critica {
    background-color: #e74c3c !important;
    color: white !important;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Estilos para o indicador de carregamento */
.loading-overlay {
    display: none; /* Hide loading overlay completely */
}

.loading-overlay.is-active {
    display: none; /* Hide loading overlay completely */
}

.loading-spinner {
    display: none; /* Hide loading spinner completely */
}

.loading-container {
    position: relative;
}

/* Estilos para o formulário de login */
.login-page .input {
    transition: all 0.3s ease;
    border: 1px solid #dbdbdb;
    box-shadow: none;
}

.login-page .input:focus {
    border-color: #3273dc;
    box-shadow: 0 0 0 1px rgba(50, 115, 220, 0.25);
}

.login-page .button {
    transition: all 0.3s ease;
    font-weight: 500;
    height: 3em;
}

.login-page .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-page .notification {
    border-radius: 8px;
    animation: fadeIn 0.5s ease-in-out;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .dashboard-card .count {
        font-size: 2rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item::before {
        left: -2rem;
    }
}

/* Estilos para os ícones de ação nas grids */
.buttons.are-small .button {
    background-color: transparent !important;
    border: none;
    border-radius: 6px;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.buttons.are-small .button:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.buttons.are-small .button.is-info .icon {
    color: #3e8ed0;
}

.buttons.are-small .button.is-warning .icon {
    color: #f39c12;
}

.buttons.are-small .button.is-danger .icon {
    color: #f14668;
}

.buttons.are-small .button.is-success .icon {
    color: #48c78e;
}

/* Estilos para a tabela de chamados */
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table th {
    font-weight: 600;
    color: #363636;
    border-bottom: 2px solid #dbdbdb;
    padding: 1rem 0.75rem;
}

.table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #f5f5f5;
}

.table tr:hover {
    background-color: #f9f9f9;
}

.table tr {
    transition: background-color 0.2s ease;
}

/* Estilo para chamados de alta prioridade */
.high-priority-ticket {
    position: relative;
}

.high-priority-ticket td:first-child {
    border-left: 4px solid #e74c3c;
}

/* Estilos para tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
    pointer-events: none;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


/* Estilo para o título do sistema na navbar */
.navbar-title {
    background-color: transparent !important;
}

.navbar-title:hover {
    background-color: transparent !important;
}

.navbar-title::after,
.navbar-title:hover::after {
    display: none;
}

/* Estilos para a barra de pesquisa */
.search-bar-item {
    background-color: transparent !important;
}

.search-bar-item:hover {
    background-color: transparent !important;
}

.search-bar-item::after,
.search-bar-item:hover::after {
    display: none;
}

.search-input {
    min-width: 250px;
}

/* Estilos para as abas */
.tabs.is-boxed {
    margin-bottom: 1.5rem;
}

.tabs.is-boxed ul {
    border-bottom-color: #dbdbdb;
    padding: 0.25rem;
}

.tabs.is-boxed li {
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.tabs.is-boxed li a {
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tabs.is-boxed li:not(.is-active) a:hover {
    background-color: #f5f5f5;
    border-bottom-color: transparent;
    transform: translateY(-2px);
}

.tabs.is-boxed li.is-active a {
    background-color: #3273dc;
    border-color: #3273dc;
    color: white;
    border-bottom-color: #3273dc !important;
    box-shadow: 0 4px 10px rgba(50, 115, 220, 0.2);
}