/*
 * Tema: 3RSoft Informática - Blue Edition
 * Autor: Gemini & Ricardo Ramos Rezende
 * Descrição: Folha de estilo principal para soluções em internet
 */

:root {
    --cor-primaria: #003DA5;
    --cor-primaria-escura: #002E7F;
    --cor-primaria-clara: #1E5BB8;
    --cor-fundo: #F5F7FA;
    --cor-texto: #1a1a1a;
    --cor-texto-claro: #ffffff;
    --cor-borda: #D0DAE8;
    --cor-sucesso: #28a745;
    --cor-aviso: #ffc107;
    --cor-erro: #dc3545;
    --cor-info: #17a2b8;
    --sombra-padrao: 0 3px 10px rgba(0, 61, 165, 0.15);
}

html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Fundos */
.bg-tema-primario {
    background-color: var(--cor-primaria) !important;
}

.bg-tema-escuro {
    background-color: var(--cor-primaria-escura) !important;
}

/* Tipografia */
h1, h2, h3, h4, h5 {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 700;
    color: var(--cor-primaria-escura);
}

h1 {
    text-shadow: 1px 1px 2px rgba(0, 61, 165, 0.2);
}

a {
    color: var(--cor-primaria);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    color: var(--cor-primaria-escura);
    text-decoration: none;
}

/* Botões */
.btn {
    border-radius: 0.3rem;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-primary {
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
    color: var(--cor-texto-claro);
}

.btn-primary:hover {
    background-color: var(--cor-primaria-escura);
    border-color: var(--cor-primaria-escura);
    color: var(--cor-texto-claro);
}

.btn-secondary {
    background-color: var(--cor-primaria-clara);
    border-color: var(--cor-primaria-clara);
    color: var(--cor-texto-claro);
}

.btn-secondary:hover {
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
    color: var(--cor-texto-claro);
}

.btn-outline-primary {
    color: var(--cor-primaria);
    border-color: var(--cor-primaria);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
    color: var(--cor-texto-claro);
}

.btn.disabled,
.btn:disabled {
    background-color: #E0E7F0;
    border-color: var(--cor-borda);
    color: #6c757d;
    opacity: 0.8;
}

/* Cards */
.card {
    border: 1px solid var(--cor-borda);
    box-shadow: var(--sombra-padrao);
    background-color: #fff;
    border-radius: 0.375rem;
}

.card-header {
    background-color: var(--cor-primaria);
    color: var(--cor-texto-claro);
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.5px;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.card-header h3,
.card-header h4 {
    color: var(--cor-texto-claro) !important;
    text-shadow: none !important;
    text-align: center;
    margin: 0;
}

/* Citações */
blockquote {
    border-left: 4px solid var(--cor-primaria);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: #E8F4FD;
    font-style: italic;
    color: var(--cor-primaria-escura);
    position: relative;
}

blockquote::before {
    content: "“";
    font-size: 2.8rem;
    position: absolute;
    left: 12px;
    top: -10px;
    color: var(--cor-primaria);
    font-family: Arial, sans-serif;
    opacity: 0.7;
}

/* Rodapé */
.site-footer {
    background-color: var(--cor-primaria-escura);
    padding: 20px;
    text-align: center;
    color: var(--cor-texto-claro);
    margin-top: 2rem;
    border-top: 3px solid var(--cor-primaria);
}

/* Separadores */
hr {
    border: none;
    border-top: 2px solid var(--cor-primaria);
    margin: 20px 0;
}

.disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Navbar */
.navbar {
    background-color: var(--cor-primaria-escura) !important;
    box-shadow: var(--sombra-padrao);
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: var(--cor-texto-claro) !important;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--cor-primaria-clara) !important;
}

.navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.dropdown-menu {
    background-color: #ffffff;
    border: 1px solid var(--cor-borda);
    box-shadow: var(--sombra-padrao);
}

.dropdown-item {
    color: var(--cor-primaria-escura) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--cor-fundo) !important;
    color: var(--cor-primaria-escura) !important;
}

/* Formulários */
.form-control,
.form-select {
    border: 1px solid var(--cor-borda);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 0.2rem rgba(0, 61, 165, 0.25);
}

.form-label {
    font-weight: bold;
    color: var(--cor-primaria-escura);
}

/* Tabelas */
.table {
    background-color: #ffffff;
    box-shadow: var(--sombra-padrao);
    border-radius: 5px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--cor-primaria-escura);
    color: var(--cor-texto-claro);
    border-bottom: 0;
}

.table td,
.table th {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: var(--cor-fundo);
}

/* Alertas */
.alert {
    border-radius: 0.25rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

/* Cookie Banner */
.cookie-banner {
    font-family: Arial, sans-serif;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1050;
    border-top: 1px solid var(--cor-borda);
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    color: var(--cor-texto);
}

.cookie-banner a {
    color: var(--cor-primaria);
    font-weight: bold;
}

.cookie-banner button {
    background-color: var(--cor-primaria);
    color: var(--cor-texto-claro);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.cookie-banner button:hover {
    background-color: var(--cor-primaria-escura);
}

/* Ícones de senha */
.password-field-wrapper {
    position: relative;
}

.password-toggle-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--cor-primaria-clara);
}

.password-toggle-icon:hover {
    color: var(--cor-primaria-escura);
}

/* Tasks */
.task-entry:hover {
    color: white;
    text-decoration: none;
}

/* Quill Editor */
.ql-container {
    height: 300px;
    max-height: 500px;
    overflow-y: auto;
    resize: vertical;
    display: flex;
    flex-direction: column;
}

.ql-editor {
    min-height: 100%;
    flex-grow: 1;
}

.ql-snow .ql-toolbar button[value="divider"]::after {
    content: "―";
    font-weight: bold;
    font-size: 1.2em;
    color: #444;
}

.ql-editor iframe,
.ql-video {
    margin: 10px auto;
    width: 560px;
    height: 315px;
    display: block;
    margin: 1em auto;
}

/* Paginação */
.pagination .page-link {
    color: var(--cor-primaria);
    border-color: var(--cor-borda);
}

.pagination .page-link:hover {
    color: var(--cor-texto-claro);
    background-color: var(--cor-primaria-clara);
    border-color: var(--cor-primaria-clara);
}

.pagination .page-item.active .page-link {
    z-index: 3;
    color: var(--cor-texto-claro);
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: var(--cor-borda);
}

/* Links do footer */
.footer-link {
    display: inline-block;
    color: var(--cor-primaria-clara);
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-link:hover {
    transform: scale(1.05);
    color: var(--cor-primaria-clara);
    text-decoration: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner button {
        margin-top: 10px;
        width: 100%;
    }
}

/* Slider com bordas arredondadas */
.slider-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background-color: #002E7F;
    border-radius: 20px;
}

.slider-container .carousel,
.slider-container .carousel-inner,
.slider-container .carousel-item {
    border-radius: 20px;
}

.slider-container .carousel-item img {
    border-radius: 20px;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Controles do slider */
.slider-container .carousel-control-prev,
.slider-container .carousel-control-next {
    width: 5%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.slider-container .carousel-control-prev:hover,
.slider-container .carousel-control-next:hover {
    opacity: 1;
}

.slider-container .carousel-control-prev-icon,
.slider-container .carousel-control-next-icon {
    background-color: transparent;
    background-size: 100%;
    width: 40px;
    height: 40px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

/* Indicadores do slider */
.slider-container .carousel-indicators {
    margin-bottom: 15px;
}

.slider-container .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid #003DA5;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.slider-container .carousel-indicators button.active {
    background-color: #003DA5;
    border-color: #1E5BB8;
    width: 14px;
    height: 14px;
}

.slider-container .carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Responsividade do slider */
@media (max-width: 992px) {
    .slider-container {
        width: 90%;
    }
    
    .slider-container .carousel-item img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .slider-container {
        width: 92%;
        border-radius: 15px;
    }
    
    .slider-container .carousel,
    .slider-container .carousel-inner,
    .slider-container .carousel-item,
    .slider-container .carousel-item img {
        border-radius: 15px;
    }
    
    .slider-container .carousel-item img {
        height: 200px;
    }
    
    .slider-container .carousel-control-prev,
    .slider-container .carousel-control-next {
        width: 10%;
    }
}

@media (max-width: 576px) {
    .slider-container {
        width: 95%;
        border-radius: 10px;
    }
    
    .slider-container .carousel,
    .slider-container .carousel-inner,
    .slider-container .carousel-item,
    .slider-container .carousel-item img {
        border-radius: 10px;
    }
    
    .slider-container .carousel-item img {
        height: 180px;
    }
}

/* Botão Voltar ao Topo */
#voltarAoTopo {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--cor-primaria);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 20px;
    width: 55px;
    height: 55px;
    box-shadow: 0 4px 12px rgba(0, 61, 165, 0.4);
    transition: all 0.3s ease;
}

#voltarAoTopo:hover {
    background-color: var(--cor-primaria-escura);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 61, 165, 0.6);
}

#voltarAoTopo i {
    display: block;
    line-height: 1;
}

@media (max-width: 768px) {
    #voltarAoTopo {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 18px;
        padding: 12px;
    }
}

