/* Import Header Styles */
@import url('header.css');

/* Estilização do tema toggle - Versão Compacta e Alinhada */
.theme-block {
    display: flex;
    justify-content: flex-start;  /* Alinhamento à esquerda */
    padding: 15px;
}

.theme-toggle {
    width: 100px;  /* Reduzido de 120px para 100px */
    height: 28px;  /* Mantido o tamanho original */
    margin: 0;  
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #e0e0e0;
    border-radius: 50px;
    padding: 2px;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.theme-toggle-option {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 10px;  /* Mantido o tamanho original */
    color: #495057;
    transition: color 0.3s ease;
}

.theme-toggle-slider {
    position: absolute;
    width: 50%;
    height: 24px;  /* Reduzido de 28px para 24px */
    background-color: white;
    border-radius: 50px;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.theme-toggle-option i {
    margin-right: 3px;  /* Mantido o espaçamento original */
    font-size: 10px;  /* Mantido o tamanho original */
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --background-light: #f4f6f7;
    --text-color: #2c3e50;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    max-height: none !important;
    -webkit-overflow-scrolling: touch;
}

html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background-light);
    color: var(--text-color);
    padding-top: 150px !important;
    overflow-y: auto !important;
    position: relative !important;
    display: flex;
    flex-direction: column;
}

body::before {
    display: none !important;
}

main {
    flex: 1;
    margin-top: 50px !important;
    padding: 0 20px !important;
    overflow-y: visible !important;
    min-height: auto !important;
}

footer {
    margin-top: auto;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    margin-top: 25px !important;
    padding: 0 15px !important;
}

/* Estilos para o header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #001156;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.navbar-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: rgba(255,255,255,0.7);
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-profile-image {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Torna a imagem circular */
    object-fit: cover; /* Mantém a proporção da imagem */
    display: inline-block;
    vertical-align: middle;
}

.navbar .user-profile-image {
    margin-right: 10px;
}

.perfil-avatar, 
.profile-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.perfil-avatar:hover, 
.profile-icon:hover {
    transform: scale(1.1);
}

.profile-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Estilos para a página de perfil */
.perfil-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3498db;
    margin-bottom: 15px;
}

/* Cards */
.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Tickets Table */
.tickets-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
}

.tickets-table thead {
    background-color: var(--primary-color);
    color: white;
}

.tickets-table th, .tickets-table td {
    padding: 15px;
    text-align: left;
}

.tickets-table tbody tr {
    background-color: white;
    box-shadow: var(--card-shadow);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.tickets-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #27ae60;
}

.btn-danger {
    background-color: var(--accent-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Status Buttons */
.btn-status {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-status-aberto {
    background-color: #2ecc71;
    color: white;
}

.btn-status-andamento {
    background-color: #f39c12;
    color: white;
}

.btn-status-fechado {
    background-color: #95a5a6;
    color: white;
}

/* Form Styles */
.form-container {
    max-width: 1300px;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Mensagens */
.mensagem {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.mensagem.sucesso {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensagem.erro {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:nth-child(1) {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #ff512f 0%, #f09819 100%);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.stat-card .card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    opacity: 0.9;
}

.stat-card p {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
}

.dashboard h2 {
    text-align: center;
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .recurso {
        margin: 10px 0;
    }
}

/* Imagens Responsivas */
img {
    max-width: 100%;
    height: auto;
}

/* Botões Responsivos */
.btn, button {
    display: inline-block;
    width: 100%;
    max-width: 300px;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Formulários Responsivos */
.form-group {
    margin-bottom: 15px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.logo {
    width: 150px;
    height: auto;
}

/* Estilos para a seção de apresentação do sistema */
.sistema-apresentacao {
    background-color: #f9f9f9;
    padding: 60px 0;
    text-align: center;
}

.sistema-apresentacao .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

.sistema-apresentacao h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.sistema-apresentacao > .container > p {
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1em;
    line-height: 1.6;
}

.recursos-sistema {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.recurso {
    flex: 1;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 15px;
    transition: transform 0.3s ease;
}

.recurso:hover {
    transform: translateY(-10px);
}

.recurso i {
    font-size: 3em;
    color: #3498db;
    margin-bottom: 15px;
}

.recurso h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.recurso p {
    color: #7f8c8d;
}

.beneficios-sistema {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.beneficios-sistema h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.beneficios-sistema ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.beneficios-sistema ul li {
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 20px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .recursos-sistema {
        flex-direction: column;
    }

    .recurso {
        margin: 10px 0;
    }
}

/* Estilos para Login e Registro */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.login-registro-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('../img/bg_login-e-registro-5.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg_login-e-registro-5.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: slideInFromLeft 1s ease-out forwards;
}

.login-form-container {
    position: relative;
    top: -50px;
    z-index: 10;
    animation: slideInFromRight 1s ease-out forwards;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 400px;
    padding: 30px 40px;
    margin-left: auto;
    margin-right: 200px;
    box-sizing: border-box;
}

/* Estilo do formulário de login/registro */
.login-registro-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.login-registro-form h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    height: 44px;
    box-sizing: border-box;
}

.btn-submit {
    background-color: #1e3c72 !important;
    color: white !important;
    border: 1px solid #1e3c72 !important;
    border-radius: 4px !important;
    padding: 10px 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 10px 0 0 !important;
    display: block !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    height: 44px !important;
    line-height: 1.5 !important;
    min-height: 44px !important;
}

.btn-submit:hover {
    background-color: #152a56 !important;
    border-color: #152a56 !important;
}

.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.form-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

.form-links a:hover {
    text-decoration: underline;
}

.mensagem {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

.mensagem.erro {
    background-color: #e74c3c;
    color: white;
}

/* Animações */
@keyframes slideFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Menu Mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 2000;
    margin-left: 15px;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    display: block;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-canvas {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #1e3c72;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    padding-top: 70px;
    overflow-y: auto;
    display: block !important;
    visibility: hidden;
}

.mobile-menu-canvas.open {
    transform: translateX(100%);
    left: 0;
    visibility: visible;
}

/* Overlay for mobile menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu-overlay.visible {
    display: block;
    opacity: 1;
}

.mobile-menu-content {
    padding: 15px;
}

.mobile-menu-content .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu-content a {
    color: #fff;
    padding: 12px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.mobile-menu-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.close-mobile-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.close-mobile-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

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

.mobile-dropdown-content {
    display: none;
    padding-left: 15px;
    margin-top: 5px;
}

.mobile-dropdown-content.show {
    display: block;
}

.mobile-menu-content {
    padding: 20px;
    position: relative;
    height: 100%;
}

.close-mobile-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    margin-top: 50px;
}

.mobile-nav a {
    padding: 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.mobile-nav a:hover {
    background-color: #f0f0f0;
}

/* Responsividade para Mobile */
@media screen and (max-width: 992px) {
    .navbar {
        padding: 10px 20px;
    }
    
    .navbar-content {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: flex-end;
    }
    
    .nav-links {
        display: none;
    }
    
    .user-profile {
        margin-left: 15px;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle span {
        background-color: #1e3c72;
    }
}

/* Remover qualquer limitação de altura */
html {
    max-height: none !important;
    overflow: auto !important;
}

/* Garantir que o conteúdo possa rolar */
body > * {
    max-height: none !important;
}

/* Estilos para área de respostas */
.ticket-respostas {
    margin-top: 30px;
}

.resposta {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.resposta.usuario {
    background-color: #f0f4ff;
    border-color: #d6e0f5;
}

.resposta.tecnico,
.resposta.admin {
    background-color: #f0fff0;
    border-color: #d5e8d4;
}

.resposta-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.resposta-header .user-profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.resposta-header .nome-usuario {
    font-weight: bold;
    margin-right: 10px;
}

.resposta-header .data-resposta {
    color: #666;
    font-size: 0.8em;
    margin-left: auto;
}

.resposta-corpo {
    line-height: 1.6;
}

.ticket-nova-resposta {
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.ticket-nova-resposta textarea {
    width: 100%;
    min-height: 150px;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
}

.ticket-nova-resposta .btn-enviar {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ticket-nova-resposta .btn-enviar:hover {
    background-color: #2980b9;
}

/* Estilos para formulário de resposta */
.resposta-form {
    background-color: var(--background-light);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: var(--card-shadow);
}

.resposta-form .form-group {
    margin-bottom: 15px;
}

.resposta-form label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    display: block;
}

.resposta-form .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.resposta-form .custom-file-upload {
    display: flex;
    align-items: center;
    border: 1px dashed #ccc;
    padding: 10px;
    border-radius: 4px;
}

.resposta-form .file-input {
    display: none;
}

.resposta-form .file-input-label {
    flex-grow: 1;
    margin-right: 10px;
    color: #888;
}

.resposta-form .file-input-label.file-selected {
    color: var(--primary-color);
    font-weight: 600;
}

.resposta-form .file-select-btn {
    white-space: nowrap;
}

.resposta-form .form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.resposta-form .btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.resposta-form .btn-primary i {
    margin-right: 5px;
}

.resposta-form small.form-text {
    color: #6c757d;
    margin-top: 5px;
}

.resposta-form .profile-icon {
    display: none;
}

.ticket-status-section h3 {
    padding: 25px;
}

/* Estilos para botões na página de listagem de tickets */
.ticket-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ticket-actions .btn {
    background-color: #001156;  /* Cor do footer e header */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
}

.ticket-actions .btn:hover {
    background-color: #0033a0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 17, 86, 0.3);
}

.ticket-actions .btn i {
    margin-right: 5px;
}

.ticket-actions .btn-editar {
    background-color: #001156;
}

.ticket-actions .btn-excluir {
    background-color: #d9534f;
}

.ticket-actions .btn-excluir:hover {
    background-color: #c9302c;
}

.ticket-actions .btn-mudar-status {
    background-color: #5bc0de;
}

.ticket-actions .btn-mudar-status:hover {
    background-color: #31b0d5;
}

/* Estilos para lista de agentes */
.agentes-lista {
    width: 100%;
    overflow-x: auto;
}

.agentes-lista .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 15px;
}

.agentes-lista .table thead {
    background-color: #f4f4f4;
}

.agentes-lista .table th,
.agentes-lista .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.agentes-lista .table tr {
    transition: background-color 0.3s ease;
}

.agentes-lista .table tr:hover {
    background-color: #f9f9f9;
}

.agentes-lista .table td {
    vertical-align: middle;
}

.agentes-lista .table .btn-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
}

.agentes-lista .table .btn-danger i {
    margin-right: 5px;
}

.admin-config-link {
    text-align: right;
    margin-bottom: 20px;
}

.admin-config-link .btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.admin-config-link .btn:hover {
    background-color: #357abd;
}

/* Estilos para página de Contato */
.contact-blocks {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-block {
    flex: 1;
    text-align: center;
    background-color: #001156;
    color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-block:hover {
    transform: translateY(-5px);
}

.contact-block i {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    display: block;
}

.contact-block h4 {
    margin-bottom: 10px;
    color: white;
    font-weight: 600;
}

.contact-block p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-form-section {
    margin-bottom: 30px;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 25px;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
}

.contact-form input, 
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn-primary {
    width: 100%;
}

/* Estilos para tema claro */
.tema-claro {
    background-color: #ffffff;
    color: #000000;
}

/* Estilos para tema escuro */
.tema-escuro {
    background-color: #121212;
    color: #ffffff;
}

.tema-escuro .navbar {
    background-color: #1e1e1e;
    color: #ffffff;
}

.tema-escuro a {
    color: #bbbbbb;
}

.tema-escuro a:hover {
    color: #ffffff;
}

.tema-escuro .container,
.tema-escuro main {
    background-color: #1e1e1e;
    color: #ffffff;
}

.tema-escuro .card {
    background-color: #2c2c2c;
    color: #ffffff;
    border-color: #3c3c3c;
}

.tema-escuro .table {
    color: #ffffff;
    background-color: #1e1e1e;
}

.tema-escuro .table thead {
    background-color: #2c2c2c;
    color: #ffffff;
}

.tema-escuro .form-control {
    background-color: #2c2c2c;
    color: #ffffff;
    border-color: #3c3c3c;
}

/* ========================================
   BORDAS ARREDONDADAS EM TODOS OS BOTÕES
   ======================================== */
button,
.btn,
.button,
input[type="submit"],
input[type="button"],
input[type="reset"],
a.btn {
    border-radius: 25px !important;
    -webkit-border-radius: 25px !important;
    -moz-border-radius: 25px !important;
}

/* Botões específicos do sistema */
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark {
    border-radius: 25px !important;
}

/* Botões em cards e modais */
.card button,
.card .btn,
.modal button,
.modal .btn {
    border-radius: 25px !important;
}

/* ========================================
   ESPAÇAMENTO PADRÃO ANTES DO FOOTER
   ======================================== */
main {
    padding-bottom: 75px !important;
}

/* Garante espaçamento em todas as seções finais */
main > section:last-child,
main > div:last-child,
.container:last-child,
.content:last-child {
    margin-bottom: 75px !important;
}

/* Remove padding duplicado se já existir */
footer {
    margin-top: 0 !important;
}
