/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.tooltip.text-red {
    color: red;
    text-decoration: underline;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 5px;
    padding: 5px 7px;
    position: absolute;
    z-index: 1;
    top: 125%; /* Position above the tooltip */
    left: 50%;
    margin-left: -55px;
    opacity: 0;
    transition: opacity 0.3s;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
pre {
    background-color: #e9e9ed !important;
    margin-top: -7px !important;
    padding-top: 0 !important;
}

body {
    background-color: #f4f4f4;
    word-wrap: break-word;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

p, li, h1, h2, h3, h4, pre {
    padding-bottom: 7px;
}

h2, h3, h4, pre {
    padding-top: 110px;
    margin-top: -110px;
}

.container {
    /* background-color: red; */
    padding: 14px;
}

main {
    /* background-color: purple; */
    padding: 14px;
}

main.pg-home-php {
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 14px;
}

main.pg-home-php .article-php.home {
    width: 100%;
    margin-left: 0;
}

.container .pg-home-php .article-php.home h1 {
    height: 40px;
}

main.pg-home-php .article-php.home img {
    min-width: 250px;
    min-height: 250px;
}

/* Header
------------------------------ */
.header-main {
    background-color: #e9e9ed;
    width: 100%;
    height: auto;
    min-height: 80px;
    color: #232526;
    padding: 25px;
}

.header-main .header-content,
.header-main #header-content,
.header-main .header-content form {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-main .header-content form 
button[type="submit"] {
    width: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-left: 7px;
    margin-bottom: 10px;
    padding: 7px;
}

/* Estilos básicos para o toast 
------------------------------ */
.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.2);
    background-color: #f00;
    border-radius: 2px;
    color: #fff;
    text-align: center;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 7px;
    border-radius: 7px;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

/* Menu
------------------------------ */
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    padding: 0 3px;
}

nav ul li a {
    color: #232526;
    text-decoration: none;
}

nav ul li a.danger:hover {
    color: #f00;
}

/* Post PHP
------------------------------ */
/* Image post
------------------------------ */
/* Atualmente estou usando o css embutido no php */
.img-fixed {
    box-shadow: 1px 1px 10px 1px #232526;
    border-radius: 7px;
    padding: 2px;
    background-color: #f4f4f4;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: -1;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px !important;
}

img.post-image.gerenciar-view {
    width: 34px;
    height: 34px;
    border-radius: 7px;
}

.preview-image {
    max-width: 200px;
    max-height: 200px;
    display: block;
    margin: 10px 0;
}

.img-fixed {
    display: block;
}

.img-d-celular {
    display: none;
}

.container.post {
    margin-top: 14px;
}

.container.post .post-content {
    /* background-color: yellow; */
    display: flex;
}

.post-content .content-main a.btn.btn-voltar {
    margin-top: 14px !important;
}


.container.post .post-content .content-main {
    /* background-color: green; */
    width: 80%;
    padding: 14px 14px 14px 0;
}

.container.post .post-content .content-main ol,
.container.post .post-content .content-main ul {
    margin-left: 14px;
}

.post-content .content-main details {
    margin-bottom: 7px;
}

.post-content .content-main details p,
.post-content .content-main details dl {
    line-height: 1.5;
}

.post-content .content-main details summary {
    color: #a8740a;
    font-weight: bold;
}

.pg-post-php.manage-draft .acoes {
    margin-bottom: 25px;
}

/* Artigo post
------------------------------ */
.article-html article {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    margin: 15px;
}

article.article-php.home {
    background-color: #e9e9ed;
    display: flex;
    flex-direction: column !important;
    margin: 15px;
    padding: 15px;
    border-radius: 5px;
}

.article-html #posts {
    display: grid;
    grid-template-columns: auto auto auto auto; 
    gap: 7px;
}

.article-html #posts article {
    height: auto;
}

.nao-existe {
    text-align: center;
    margin-top: 14px;
    padding: 25px;
}

.categoria.genrenciar-approved,
.categoria.genrenciar-pending,
.categoria.genrenciar-view {
    margin-top: 0;
}

.code-label {
    padding: 7px !important;
}

.comment-content {
    list-style:none;
    box-shadow:0px 0px 1px 0px #232526;
    border-radius:7px;
    margin-bottom:14px;
    padding:7px;
}

.gerenciar-filtros {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
}

/* Aside
------------------------------ */
.container.post .post-content aside.pg-post {
    /* background-color: blue; */
    border-left: 2px solid #f9f9f9;
    width: 20%;
    margin-left: 14px;
    padding: 14px 28px;
}

.container.post .post-content aside.pg-post ul li {
    /* background-color: blue; */
    margin-left: 28px;
    padding-top: 7px;
}

aside.pg-post form {
    margin-top: 0;
    margin-left: 0;
    padding-top: 0;
    padding-left: 0;
}

aside.pg-post details {
    padding-bottom: 14px ;
}

aside.pg-post details ul li {
    margin-left: 14px;
}

/* Modal
------------------------------ */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    padding: 14px;
}

section.modal h2 {
    text-align: center;
    color: #fff; 
}

section.modal form {
    background-color: rgba(255,255,255,0.8);
    border-radius: 7px;
    color: #232526;
    padding: 14px;
}

.modal-content {
    background-color: #fefefe;
    box-shadow: 5px 5px 10px 5px #ddd;
    padding: 15px;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 7px;
    width: 60%;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Categoria
------------------------------ */
.login-content,
.manage-content,
.manage-view-content,
.manage-draft-content,
.manage-approved-content,
.manage-pending-content,
.category-content,
.search-content,
.reset_password-content,
.forgot_password-content {
    /* background-color: #ddd; */
    box-shadow: 5px 5px 10px 5px #ddd;
    padding: 15px;
    border-radius: 5px;
    margin: 15px;
}

/* Formulario
------------------------------ */
/* .search-form form {
    display: flex;
    gap: 7px;
    margin-bottom: 0;
    padding-bottom: 0;
}

.search-form form input {
    width: auto;
} */

form {
    background: transparent;
    padding: 14px;
    border-radius: 5px;
    margin: 14px;
}

.login-content,
.forgot_password-content,
.create_user-content,
.forgot_password-content,
.reset_password-content,
form.acesso {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

input[type="text"],
input[type="email"],
input[type="password"],
select#categories,
textarea {
    width: 100%;
    padding: 7px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-content ul {
    padding: 0 14px;
}

.error-message {
    color: red;
    margin-top: 10px;
}

.msg-alerta {
    background-color: #e9e9ed;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 14px;
}

/* Tabela
------------------------------ */
.datatable-container {
    width: 100%;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

.actions a {
    margin-right: 10px;
}

/* Helper
------------------------------ */
.min-height {
    min-height: calc(100vh - 180px);
}

nav li a.disabeld {
    color: rgba(51, 51, 51, 0.2) !important;
}

.d-none-desk {
    display: none;
}

.text-center {
    text-align: center;
}

.titulo-h2 {
    text-transform: uppercase;
}

.mt-7 {
    margin-top: 7px;
}

.mt-14 {
    margin-top: 14px;
}

.mb-7 {
    margin-bottom: 7px;
}

.mb-14 {
    margin-bottom: 14px;
}

.pt-7 {
    padding-top: 7px;
}


.pt-14 {
    padding-top: 14px;
}

.pt-25 {
    padding-top: 25px;
}

.pt-60 {
    padding-top: 60px;
}

.pb-14 {
    padding-bottom: 14px;
}

/* Botão
------------------------------ */
div.acoes {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    max-height: 40px;
    gap: 7px;
}

div.acoes form {
    padding: 0;
    margin: 0;
}

/* div.acoes button.btn, */
/* div.acoes a.btn, */
div.acoes .btn {
    display: flex;
    align-items: center;
    height: 30px !important;
    padding: 7px;
}

button,
button.btn,
a.btn,
.btn-cinza,
.btn {
    background-color: #333;
    border-radius: 5px;
    border: none;
    text-decoration: none;
    font-size: 14px;
    color: #fff;
    padding: 7px;
    cursor: pointer;
    width: auto;
    height: 30px !important;
}

.btn.btn-voltar {
    padding: 3px 7px;
    font-weight: 100;
}

.btn:hover,
button:hover {
    background-color: #0056b3;
}

.btn.btn-azul
.btn-azul {
    background-color: #0056b3;
}

.btn-amarelo,
.btn.btn-amarelo {
    background-color: #f7c327;
    color: #232526;    
    transition: background-color 0.3s ease-in;
}

.btn-amarelo:hover,
.btn.btn-amarelo:hover {
    background-color: #f7c327;
    opacity: 0.8;
}

.btn.btn-verde,
.btn.btn-add,
.btn-verde,
.btn-add {
    background-color: #23532a;
    transition: background-color 0.3s ease-in;
}

.btn.btn-verde:hover,
.btn.btn-add:hover,
.btn-verde:hover,
.btn-add:hover {
    opacity: 0.8;
}

.btn.btn-vermelho,
.btn.btn-excluir,
.btn-vermelho,
.btn-excluir {
    background-color: #f00;
    transition: background-color 0.3s ease-in;
}

.btn.btn-vermelho:hover,
.btn.btn-excluir:hover,
.btn-vermelho:hover,
.btn-excluir:hover {
    opacity: 0.8;
}

.btn.btn-sair,
.btn-sair {
    background-color: #d2d2d2;
    color: inherit;
    transition: background-color 0.3s ease-in;
}

.btn.btn-sair:hover,
.btn-sair:hover {
    color: #f4f4f4;
}

.btn-width {
    background-color: #504e4e  ;
    width: 100%;;
    border: none;
    margin-top: -7px;
}

a {
    color: #007bff;
    text-decoration: none;
}

button:hover,
a:hover {
    transition: background-color 0.3s ease-in;
}

.d-flex {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
}

.d-flex.gerenciar-approved,
.d-flex.gerenciar-pending,
.d-flex.gerenciar-view {
    padding: 0;
}

/* Cor do texto
------------------------------ */
.color-red
.text-red,
.text-danger {
    color: #f00 !important;
}

.text-green,
.color-green,
.text-success {
    color: green;
}
.text-yellow {
    color: yellow;
    z-index: 1;
}
.text-white {
    color: #fff;
    z-index: 1;
}
.text-black {
    color: #000 !important;
    z-index: 1;
}

/* Footer
------------------------------ */
footer {
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #ddd;
    background-color: #e9e9ed;
    padding: 25px;
}

footer.fundo {
    position: relative;
    min-height: 300px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.fundo-dia {
    /* background-color: #e9e9ed; */
    background: url('../assets/img/saudacao/manhas.jpeg') center center / cover no-repeat fixed;
    color: yellow;
}

.fundo-tarde {
    /* background-color: #9a9a9c; */
    background: url('../assets/img/saudacao/tarde.jpeg') center center / cover no-repeat fixed;
    color: white;
}

.fundo-noite {
    content: 'BOA NOITE!';
    /* background-color: #86868a; */
    background: url('../assets/img/saudacao/noite.jpeg') center center / cover no-repeat fixed;
    color: white;
}

/*btn-topo*/
.btn-topo {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    background-color: #000;
    text-decoration: none;
    border-radius: 50%;
}
.btn-topo::after {
    /* content: "^‘"; */
    content: "^";
    font-size: 14px;
    font-weight: bold;
    color: aliceblue;
    transition: margin-top 250ms;
}
.btn-topo:hover::after {
    margin-top:-8px;
}

/* Media queries
------------------------------ */
@media (max-width: 1282px) {
    main.pg-home-php {
        display: grid;
        grid-template-columns: auto auto auto;
        gap: 14px;
}

.header-main #header-content,
.header-main .header-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
}

    nav ul {
        display: flex;
        justify-content: center;
        margin: 14px 0;
} 

    nav ul li {
        margin: 7px 0;
} 

.container.post .post-content aside.pg-post {
        /* background-color: blue; */
        width: 30%;
}
    
.container.post .post-content .content-main {
        /* background-color: green; */
        width: 70%;
}    
}

@media (max-width: 970px) {    
    main.pg-home-php {
        display: grid;
        grid-template-columns: auto auto;
        gap: 14px;
}
}

@media (max-width: 720px) {
.container.post .post-content {
        /* background-color: yellow; */
        display: flex;
        flex-direction: column;
}

.container.post .post-content aside.pg-post {
        /* background-color: blue; */
        width: 100%;
        border-left: none;
        margin: 0;
        padding:0;
}
    
.container.post .post-content .content-main {
        /* background-color: green; */
        width: 100%;
}   

.d-none-cel {
        display: none;
} 
}

@media (max-width: 580px) {
    header div.container a{
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 7px;
}

    h1 {
        font-size: 25px;
}

    /* .container.post */
    main.pg-home-php {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        padding: 7px;
}

    article.article-php.home {
        margin: 15px 0;
        padding: 15px 7px;
}

.img-fixed {
        display: none;
}
    
.img-d-celular {
        display: block;
        margin-top: 14px;
}

.img-d-celular img {
        box-shadow: 1px 1px 10px 1px #232526;
        border-radius: 7px;
        max-height: 300px;
}

.pg-manage-comments .manage-comments-content {
        overflow-x: auto;
}

.modal-content {
        width: 80%;
}

.login-content {
        max-width: 400px;
}

.login-content form input {
        padding: 14px;
}

.login-content .acoes {
        padding-top: 14px;
}
    
}

@media (max-width: 380px) {
    body {
        font-size: 20px;
    }
    
    .container.home {
        padding: 7px;
    }

    h1 {
        font-size: 20px;
    }

    .titulo-h2, h2 {
        font-size: 19px;
    }

    h3 {
        font-size: 18px;
    }
    a#calculadoraRCL {
        background-color: #232526;
        color: #e9e9ed;
        font-size: 16px;
        border-radius: 3px;
        margin-bottom: 14px;
        padding: 3px 7px;
    }
}

@media (max-width: 300px) {
    .container.home {
        padding: 0;
    }
}