﻿html, body {
    margin: 0;
    height: 100%;
    width: 100%;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f5f6fa;
    color: #333;
    overflow: hidden;
}

h1 {
    padding: 1.5rem;
    color: #CC5500;
    font-size: 29px;
    padding-bottom: 0px;
    margin-bottom: 0px;
}

h2 {
    padding: 1.5rem;
    color: #CC5500;
    padding-bottom: 0px;
    margin-bottom: 0px;
}

h3 {
    padding: 1.5rem;
    color: #82899a;
    font-weight: 500;
    font-size: 1.0rem;
    padding-top: 0px;
    margin-top: 5px;
    letter-spacing: -.025em !important;
}

.hamburger-icon {
    font-weight: 900;
    color: #CC5500;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #1e293b;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

    .sidebar h2 {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    .sidebar a {
        color: #FFF5E1;
        text-decoration: none;
        margin: 0.2rem 0;
        padding: 0.5rem 0.5rem 0.5rem 33px;
        transition: background 0.2s;
    }

    .sidebar i {
        color: #FFFFFF;
    }

    .sidebar a:hover {
        color: #FFFFFF;
    }

    .sidebar i:hover {
        color: #FFFFFF;
    }

    .sidebar-footer {
        position: absolute;
        bottom: 20px;
        left: 0;
        width: 100%;
        text-align: center;
    }

    .logo-footer img {
        width: 70px;
        height: auto;
        opacity: 0.8;
        transition: opacity 0.3s ease; 
    }

    .logo-footer img:hover {
        opacity: 1;
    }

    .env-stamp-above-logo {
        display: inline-block;
        margin-bottom: 8px;
        padding: 6px 20px;
        border: 3px solid #b30000;
        color: #b30000;
        font-weight: 900;
        font-size: 0.9rem;
        letter-spacing: 2px;
        text-transform: uppercase;
        background: rgba(255, 255, 255, 0.85);
        box-shadow: 0 0 0 2px rgba(179, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.2);
        border-radius: 6px;
        pointer-events: none;
    }

    .env-dev {
        border-color: #b30000;
        color: #b30000;
    }

    .env-qual {
        border-color: #703f0a;
        color: #cfb908;
    }
 
    /* Sidebar escondida */
    .sidebar.collapsed {
        width: 60px; /* ou 0, conforme preferir */
        overflow: hidden;
        transition: width 0.3s ease;
    }

    /* Reduz a opacidade ou esconde o texto do menu-item */
    .sidebar.collapsed .menu-item {
        display: none;
    }

    /* Esconde info do usuário na sidebar */
    .sidebar.collapsed .sidebar-user,
    .sidebar.collapsed .sidebar-header .sidebar-actions {
        display: none;
    }

/* Expande o conteúdo principal */
.main.expanded {
    margin-left: 60px; /* deve coincidir com o width da .sidebar.collapsed */
    transition: margin-left 0.3s ease;
}


.main {
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.topbar {
    display: flex;
    justify-content: space-between; /* hamburger à esquerda, bandeiras à direita */
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #fff; /* ou outra cor */
    border-bottom: 1px solid #ddd;
}

.post-title {
    font-weight: bold;
}

.post-channel {
    font-size: 0.9em;
    color: gray;
}


.language-selector img {
    width: auto;
    height: 16px;
    vertical-align: middle;
    border-radius: 2px; 
    cursor: pointer;
}

.current-lang {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 100;
}

    .lang-dropdown li {
        padding: 0.3rem 1rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .lang-dropdown li:hover {
            background: #eee;
        }


.app-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #a9b3bd;
}
 
.content {
    flex: 1;
    overflow-y: auto; 
    padding-top: 0px;
    background: #ffffff;
    height: calc(100vh - 60px); 
}

.card-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.8rem;
    padding-top: 20px;
}

.card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 1.1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}
 

    .card h3 {
        margin: 0.1rem 0;
        font-size: 1.9rem;
        font-weight:bold;
        color: #3b82f6;
    }

    .card p {
        font-size: 1rem;
        margin: 0;
    }

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 2rem;
    table-layout: auto; /* deixa as colunas adaptarem-se ao conteúdo */
    overflow-x: auto;
}


    .table thead {
        background: #f9fafc;
        color: #969fad;
        border-top: solid 1.8px #e8e8e8;
        border-bottom: solid 2px #e8e8e8;
        box-shadow: 0 3px 5px -4px rgba(0, 0, 0, 0.1);
    }

    .table th, .table td {
        padding: 0.75rem 1rem;
        text-align: left;
        border-bottom: 1px solid #e5e7eb;
        font-size: 14px;
        vertical-align: middle;
    }

    .table tbody tr:hover {
        background-color: #f9fafb;
    }

    
/* Colunas com larguras mínimas para manter estrutura */
.table th:nth-child(1), /* Nome */
.table td:nth-child(1) {
  min-width: 160px;
}

.table th:nth-child(2), /* Descrição */
.table td:nth-child(2) {
  min-width: 250px;
}

.table th:nth-child(3), /* Estado */
.table td:nth-child(3) {
  width: 70px;
  text-align: center;
}

.table th:nth-child(4), /* Ações */
.table td:nth-child(4) {
  width: 110px;
  text-align: center;
  white-space: nowrap; /* evita quebras dentro da célula */
}

.menu-icon {
    margin-right: 8px;
    font-size: 18px;
    color: #414442;
}

.icone-card {
    margin-right: 8px;
    font-size: 23px;
    color: #CC5500;
}

.icone-btn-post {
    margin-right: 8px;
    font-size: 23px;
    color: #FFF;
}


.sidebar-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 0;
}

.sidebar-user-photo {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    object-fit: cover;   
    margin-bottom: 1.6rem;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #1e293b;
}

.sidebar-minilogo-photo {
    width: 40px;
    height: 40px;
}

.sidebar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #838da1;
    cursor:pointer;
}

.notification {
    position: relative;
}

.badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: red;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
}


.sidebar-user-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #CC5500;
}

.sidebar-user-email {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.2rem;
}

.branding
{
    font-size:20px;
    cursor:pointer;
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px !important;
    font-size: 1em;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: #fff;
    user-select: none;
}

.btn-sm {
    padding: 3px 8px;
    font-size: 0.85em;
}

.btn-warning {
    background-color: #555; /* cinza escuro */
    color: #eee;
    border-color: #555;
}

    .btn-warning:hover {
        background-color: #444;
        border-color: #444;
        color: #fff;
    }

.btn-danger {
    background-color: #a33;
    border-color: #a33;
    color: #f8f8f8;
}

    .btn-danger:hover {
        background-color: #822;
        border-color: #822;
        color: #fff;
    }

.btn i {
    font-size: 1.1em;
}

/* Para o form inline do eliminar */
form.inline-form {
    display: inline-block;
    margin-left: 8px;
}

.btn-primary {
    background-color: #CC5500;
    border: 1.5px solid #CC5500;
    color: white;
    padding: 10px 20px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .btn-primary:hover {
        background-color: #0056b3; /* azul mais escuro */
        border-color: #004085;
        text-decoration: none;
        color: white;
    }

.mb-3 {
    margin-bottom: 1rem; /* 16px de margem abaixo */
}

.align-right {
    float: right;
}


.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-title {
    margin: 0;
}

.header-subtitle {
    color: #666;
    font-size: 0.9em;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #CC5500, #FF7700);
    color: white;
    padding: 8px 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
    margin-bottom: 10px;
}

    .btn-upload:hover {
        background: linear-gradient(135deg, #0056b3, #003d80);
    }

/* Esconder input file real */
#ImageHeader {
    display: none;
} 

.btn-create {
    background: linear-gradient(135deg, #CC5500, #FF7700);
    display: inline-block;
    padding: 10px 14px;
    font-size: 1.1em;
    line-height: 1.5;
    border-radius: 4px;
    background-color: #4CAF50;
    color: #fff;
    text-decoration: none;
}


    .btn-create:hover {
        background-color: #004999;
    }

    .btn-create i {
        font-size: 1.2em;
    }

.btn-back {
    background-color: #6c757d; /* cinza bootstrap */
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
}

    .btn-back:hover {
        background-color: #5a6268;
    }

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.header-image-preview {
    display: block;
    min-width: 100%;
    max-width: 100%;
    min-height: 130px;
    max-height: 130px;
    margin-bottom: 15px;
    border-radius: 8px;
    object-fit: contain;
}

.user-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-image-preview {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ccc;
}


table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

/*Forms */
form {
    padding-left: 30px;
    padding-right: 50px;
    max-width: 98%;
}

label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}


input[type="password"] {
    width: 50%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

textarea {
    resize: none;
    min-height: 60px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1rem;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-control {
    padding: 10px 14px;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
}

input[type="color"].form-control {
    padding: 2px;
    height: 50px;
    width: 60px;
}

/* Estilo para erros de password */
.validation-field {
    color: #dc3545; /* vermelho bootstrap */
    font-size: 0.875em;
    margin-top: 0px;
    display: block;
}

select {
    width: 50%;
    padding: 15px;
    padding-right: 40px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1.5px solid #ccc;
    font-size: 16px;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    background-color: #fff;
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="16" viewBox="0 0 20 20" width="16" xmlns="http://www.w3.org/2000/svg"><polygon points="0,0 20,0 10,10"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}


    /* Se quiser um ícone customizado para a seta dropdown */
    select::-ms-expand {
        display: none; /* remove seta default no IE */
    }

.btn-backpage {
    display: inline-flex;
    align-items: center;
    padding: 5px 25px; 
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.2s;
}

    .btn-backpage i {
        margin-right: 5px;
    }

    .btn-backpage:hover {
        background-color: #e0e4ea;
    }

