/* Estilos Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
}

.hidden {
    display: none !important;
}

/* Login Container */
.login-container {
    background-color: white;
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.login-header h2 {
    color: #7f8c8d;
    font-size: 1rem;
    font-weight: normal;
}

/* Formulário */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.form-group label i {
    margin-right: 10px;
    color: #3498db;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login i {
    margin-right: 8px;
}

.btn-login:hover {
    background-color: #2980b9;
}

.message {
    margin-top: 1.5rem;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar { ; background-color: #000000; }

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
}

.menu-items {
    list-style: none;
}

.menu-item {
    margin-bottom: 0.5rem;
}

.menu-item a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.menu-item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.menu-item a.active {  background-color: #8c8c8c;  background-color: #8c8c8c; }

.menu-item a i {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    background-color: #f9f9f9;
}

.welcome-message {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.welcome-message h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.welcome-message p {
    color: #7f8c8d;
    line-height: 1.6;
}

.content-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* Gerenciamento de Usuários */
.user-management {
    margin-top: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}


.user-list-container {
    margin-top: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f5f7fa;
    font-weight: 600;
    color: #2c3e50;
}

tr:hover {
    background-color: #f9f9f9;
}

.btn-action {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    margin: 0 5px;
    font-size: 1rem;
    transition: color 0.2s;
}

.btn-action:hover {
    color: #3498db;
}

.btn-action.delete:hover {
    color: #e74c3c;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #f5f7fa;
    color: #2c3e50;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #eaeaea;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar { position: fixed;
        left: -250px; /* Esconde o sidebar */
        top: 0;
        width: 250px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1000; background-color: #000000; }
    
    .sidebar.active {
        left: 0; /* Mostra o sidebar quando tem a classe active */
    }
    
    .menu-toggle {
        display: block;
        position: fixed;
        left: 10px;
        top: 10px;
        z-index: 1001;
        background-color: #2c3e50;
        padding: 10px;
        border-radius: 5px;
        color: white;
        border: none;
        cursor: pointer;
    }
    
    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }
}
/* Adicione no final do arquivo */

/* Estilos para o perfil */
.profile-info {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin-top: 1.5rem;
}

.info-item {
    display: flex;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 150px;
}

.info-item span {
    color: #7f8c8d;
    flex: 1;
}

/* Validação de formulário */
input:invalid {
    border-color: #e74c3c;
}

input:valid {
    border-color: #2ecc71;
}

/* Conteúdos */
.filtros-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}

.filtros-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.filtro-info {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 1rem;
}

.color-picker-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.color-picker-container h3 {
    margin-bottom: 1rem;
}

.conteudos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.conteudo-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.conteudo-item img {
    width: 100%;
    height: auto;
    display: block;
}

.conteudo-actions {
    padding: 1rem;
    display: flex;
    justify-content: center;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal:not(.hidden) {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #666;
}

.close-modal:hover {
    color: #333;
}

body.modal-open {
    overflow: hidden;
}

/* Adicione estas regras ao seu arquivo style.css existente */

/* Filtros e Color Picker */
.filtros-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.filtros-container h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}

.filtros-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.filtro-info {
    font-size: 0.8rem;
    color: #95a5a6;
    margin-top: 1rem;
    font-style: italic;
}

.color-picker-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.color-picker-container h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.color-picker-container input[type="color"] {
    width: 100%;
    height: 40px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Grade de Conteúdos */
.conteudos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

.conteudo-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.conteudo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.conteudo-img-container {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f9f9f9;
}

.conteudo-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.conteudo-info {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
}

.conteudo-tipo, .conteudo-categoria {
    font-size: 0.8rem;
    color: #7f8c8d;
    text-transform: uppercase;
    font-weight: 600;
}

.conteudo-actions {
    padding: 12px;
    display: flex;
    justify-content: center;
    border-top: 1px solid #eee;
}

.conteudo-actions .btn-action {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.conteudo-actions .btn-action:hover {
    color: #3498db;
}

.conteudo-actions .btn-action i {
    font-size: 0.9rem;
}

/* Adicione ao seu arquivo style.css */
.btn-action.delete {
    color: #e74c3c;
    margin-right: 10px;
}

.btn-action.delete:hover {
    color: #c0392b;
}

.conteudo-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Adicione ao seu style.css */
.btn_action.delete {
    color: #e74c3c;
    margin_right: 10px;
}

.btn_action.delete:hover {
    color: #c0392b;
}

.conteudo_actions {
    display: flex;
    justify_content: center;
    gap: 10px;
}

.conteudo_item {
    margin_bottom: 20px;
    border: 1px solid #ddd;
    border_radius: 8px;
    overflow: hidden;
}

.conteudo_img_container {
    width: 100%;
    height: 250px;
    display: flex;
    align_items: center;
    justify_content: center;
}

.conteudo_img_container img {
    max_width: 100%;
    max_height: 100%;
    object_fit: contain;
}

.conteudo_info {
    padding: 10px;
    background_color: #f9f9f9;
    display: flex;
    justify_content: space_between;
}

.conteudo_tipo, .conteudo_categoria {
    font_size: 12px;
    text_transform: uppercase;
}

/* Adicione estas classes no seu CSS */
.conteudo-img-container {
    position: relative;
}

.conteudo-img-container::after {
    content: attr(data-watermark);
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 2px black;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Estilos para status */
.status-select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: white;
}

.status-select option[value="ATIVO"] {
    background-color: #d4edda;
    color: #155724;
}

.status-select option[value="PENDENTE"] {
    background-color: #fff3cd;
    color: #856404;
}

.status-select option[value="BLOQUEADO"] {
    background-color: #f8d7da;
    color: #721c24;
}

/* Estilos para botões de configuração */
.config-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.config-btn {
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #f0f0f0;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.config-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.config-btn i {
    font-size: 20px;
}

/* Estilos para perfil */
.profile-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.info-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.info-item label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #555;
}

/* Estilos para perfil vertical */
.profile-info-vertical {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
    max-width: 600px;
}

.profile-info-vertical .info-item {
    padding: 1px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.profile-info-vertical .info-item label {
    font-weight: bold;
    color: #555;
    min-width: 150px;
}

.profile-info-vertical .info-item span {
    text-align: right;
    color: #333;
}

/* Estilos para página de registro */
.price {
    font-size: 24px;
    font-weight: bold;
    color: #2ecc71;
    margin: 10px 0;
}

.service-info {
    margin-bottom: 20px;
    color: #555;
    text-align: center;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    color: #777;
}

.login-footer a {
    color: #3498db;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Estilos para mensagens */
.message {
    padding: 10px;
    margin: 15px 0;
    border-radius: 4px;
    text-align: center;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Logo no sidebar */
.sidebar-header {
    position: relative;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px; /* Ajuste conforme necessário */
}

.logo {
	margin-top:80px;
    max-height: 240%;
    max-width: 240%;
    object-fit: contain;
}

/* Logo Inicial */
.logoinicial-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px; /* Ajuste conforme necessário */
}

.logoinicial {
	margin-bottom:30px;
    max-height: 240%;
    max-width: 240%;
    object-fit: contain;
}

/* Adicione ao seu style.css */
.conteudo-img-container {
    position: relative;
    overflow: hidden;
}

.img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.protected-image {
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

/* Bloqueia o menu de contexto */
.conteudo-img-container, .img-wrapper, .protected-image {
    -webkit-touch-callout: none;
    -webkit-context-menu: none;
    context-menu: none;
}

/* Logo Upload Styles */
.logo-upload-container {
    margin-top: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-upload-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.logo-upload-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.current-logo {
    margin: 1rem 0;
    padding: 10px;
    background: #f5f7fa;
    border-radius: 5px;
    display: inline-block;
}

.current-logo img {
    max-width: 200px;
    max-height: 100px;
    display: block;
}

.upload-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

.upload-status.success {
    color: #2ecc71;
}

.upload-status.error {
    color: #e74c3c;
}
/* Estilos para o filtro de busca */
.search-filter {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-filter .form-group {
    flex: 1;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-filter label {
    margin-right: 10px;
    white-space: nowrap;
}

.search-filter input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#searchCpfBtn, #clearSearchBtn {
    padding: 8px 15px;
    white-space: nowrap;
}

/* Estilos para recuperação de senha */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #f5f5f5;
}

.auth-logo {
    margin-bottom: 30px;
    text-align: center;
}

.auth-logo img {
    max-width: 200px;
    height: auto;
}

.auth-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-box h2 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.auth-box p {
    color: #666;
    text-align: center;
    margin-bottom: 20px;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.auth-links a:hover {
    color: #333;
}

/* Mensagens */
.hidden {
    display: none;
}

.success {
    color: green;
    background-color: #e6ffe6;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
}

.error {
    color: #d9534f;
    background-color: #ffebeb;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
}

/* Estilo para o link "Esqueceu sua senha" */
.forgot-password-link {
    text-align: center;
    margin-top: 15px;
}

.forgot-password-link a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.forgot-password-link a:hover {
    color: #333;
    text-decoration: underline;
}

.forgot-password-link i {
    margin-right: 5px;
}

.text-options-container {
    margin-bottom: 20px;
}

.text-style-container {
    margin-top: 20px;
}

.text-style-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.text-option {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.text-option label {
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.text-option select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.text-option input[type="color"] {
    width: 100%;
    height: 35px;
    cursor: pointer;
}
/* Estilos para os novos elementos */
.sidebar-color-config .color-picker-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sidebar-color-config label {
    min-width: 120px;
    font-weight: 600;
    color: #555;
}

.sidebar-color-config input[type="color"] {
    width: 50px;
    height: 30px;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

#saveActiveTabColorBtn {
    margin-left: 10px;
}