﻿/* ====================== */
/* ACAR - STYLE COMPLETO  */
/* ====================== */

/* ================ VARIÁVEIS ================ */
:root {
  /* Cores principais */
  --acar-orange: #E67E22;
  --acar-orange-dark: #D35400;
  --acar-beige: #F5F0E6;
  --acar-dark: #343a40;
  --acar-light: #f8f9fa;
  
  /* Cores Bootstrap */
  --primary: #0d6efd;
  --secondary: #6c757d;
  --success: #198754;
  --info: #0dcaf0;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #212529;
  
  /* Espaçamentos */
  --spacer: 1rem;
}

/* ================ RESET E BASE ================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 15px; /* REDUZIDO de ~16px */
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.5; /* AJUSTADO */
  color: #212529;
  background-color: #fff;
  margin: 0;
  padding: 0;
  zoom: 0.98; /* PEQUENA CORREÇÃO GERAL */
}

/* ================ TIPOGRAFIA ================ */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 2.2rem; } /* REDUZIDO */
h2 { font-size: 1.8rem; } /* REDUZIDO */
h3 { font-size: 1.5rem; } /* REDUZIDO */
h4 { font-size: 1.3rem; } /* REDUZIDO */
h5 { font-size: 1.1rem; } /* REDUZIDO */
h6 { font-size: 1rem; }

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* ================ LINKS ================ */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: #0a58ca;
}

/* ================ BOTÕES ================ */
.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 0.95rem; /* REDUZIDO */
  border-radius: 0.25rem;
  transition: all 0.15s ease-in-out;
}

.btn-primary {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  color: #fff;
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* ================ FORMULÁRIOS ================ */
.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 0.95rem; /* REDUZIDO */
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ================ NAVBAR ================ */
.acar-navbar {
  background-color: var(--acar-orange);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* SOMBRA MAIS SUAVE */
  transition: all 0.3s ease;
  padding: 0.4rem 1rem; /* REDUZIDO */
}

.acar-navbar .navbar-brand {
  display: flex;
  align-items: center;
  padding: 0.4rem 0; /* REDUZIDO */
}

.acar-navbar .navbar-brand img {
  height: 65px; /* REDUZIDO de 75px */
  transition: transform 0.3s ease;
  padding: 4px 0; /* REDUZIDO */
}

.acar-navbar .navbar-brand span {
  color: #EDECE5;
  font-weight: 600;
  font-size: 1.1rem; /* REDUZIDO */
  transition: color 0.3s ease;
  margin-left: 0.5rem;
}

.acar-navbar .nav-link {
  color: rgba(237, 236, 229, 0.85) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.4rem 0.9rem !important; /* REDUZIDO */
  font-size: 0.95rem; /* REDUZIDO */
}

.acar-navbar .nav-link:hover,
.acar-navbar .nav-link:focus {
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* ================ SIDEBAR ADMIN - AJUSTADO ================ */
.admin-sidebar {
  width: 100%;
  min-height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--acar-light);
  scrollbar-width: thin;
  scrollbar-color: var(--acar-orange) #f1f1f1;
}

.admin-sidebar::-webkit-scrollbar {
  width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background-color: var(--acar-orange);
  border-radius: 6px;
}

.admin-sidebar .card {
  border: none;
  border-radius: 0;
  min-height: 100vh;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  background-color: white;
  display: flex;
  flex-direction: column;
}

.admin-sidebar .card-body {
  padding: 1.2rem 0.9rem; /* REDUZIDO */
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: visible;
}

.admin-avatar {
  width: 90px; /* REDUZIDO */
  height: 90px; /* REDUZIDO */
  object-fit: cover;
  border: 3px solid var(--acar-orange);
  margin: 0 auto;
}

.admin-name {
  font-size: 1rem; /* REDUZIDO */
  font-weight: 600;
  margin-bottom: 0.4rem; /* REDUZIDO */
  color: var(--acar-dark);
  text-align: center;
}

.admin-badge {
  background-color: var(--acar-orange);
  color: white;
  padding: 0.3rem 0.6rem; /* REDUZIDO */
  border-radius: 50px;
  font-size: 0.8rem; /* REDUZIDO */
  display: inline-block;
  margin: 0 auto 1.2rem; /* REDUZIDO */
  width: fit-content;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.admin-menu {
  margin-bottom: 1.2rem; /* REDUZIDO */
  flex-grow: 1;
  overflow: visible;
}

.admin-menu-item {
  display: block;
  padding: 0.6rem 0.9rem; /* REDUZIDO */
  color: #495057;
  text-decoration: none;
  border-radius: 0.25rem;
  margin-bottom: 0.2rem; /* REDUZIDO */
  transition: all 0.2s ease;
  white-space: normal;
  overflow: visible;
  max-width: 100%;
  font-size: 0.9rem; /* REDUZIDO */
}

.admin-menu-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #212529;
}

.admin-menu-item.active {
  background-color: rgba(230, 126, 34, 0.1);
  color: var(--acar-orange);
  font-weight: 500;
}

.admin-menu-item i {
  width: 18px; /* REDUZIDO */
  text-align: center;
  margin-right: 0.6rem; /* REDUZIDO */
}

.admin-divider {
  margin: 0.8rem 0; /* REDUZIDO */
  border-color: rgba(0, 0, 0, 0.1);
}

.admin-options {
  padding: 0 0.4rem; /* REDUZIDO */
}

.admin-dark-mode {
  margin-bottom: 0.8rem; /* REDUZIDO */
  padding: 0.2rem 0; /* REDUZIDO */
}

.admin-logout-btn {
  width: 100%;
}

/* ================ DASHBOARD ================ */
.dashboard-card {
  height: 100%;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  animation: fadeIn 0.3s ease-out forwards;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dashboard-card .card-body {
  display: flex;
  flex-direction: column;
  padding: 1.2rem; /* REDUZIDO */
}

.dashboard-card .card-title {
  font-size: 0.85rem; /* REDUZIDO */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem; /* REDUZIDO */
  color: rgba(255, 255, 255, 0.85);
}

.dashboard-card h3 {
  font-size: 1.5rem; /* REDUZIDO */
  font-weight: 600;
  margin-bottom: 0;
}

.dashboard-card .card-icon {
  font-size: 1.8rem; /* REDUZIDO */
  opacity: 0.5;
}

.dashboard-card .card-footer-text {
  font-size: 0.7rem; /* REDUZIDO */
  color: rgba(255, 255, 255, 0.7);
  margin-top: auto;
  padding-top: 0.4rem; /* REDUZIDO */
}

/* ================ ANIMAÇÕES ================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-card:nth-child(4) { animation-delay: 0.4s; }

/* ================ DARK MODE ================ */
body.dark-mode {
  background-color: #1a1a1a;
  color: #f8f9fa;
}

body.dark-mode .admin-sidebar {
  background-color: #2c2c2c;
}

body.dark-mode .admin-sidebar .card {
  background-color: #2c2c2c;
  color: #f8f9fa;
  border-color: #495057;
}

body.dark-mode .admin-name {
  color: #f8f9fa;
}

body.dark-mode .admin-menu-item {
  color: #dee2e6;
}

body.dark-mode .admin-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
}

body.dark-mode .admin-menu-item.active {
  background-color: rgba(230, 126, 34, 0.2);
  color: var(--acar-orange);
}

body.dark-mode .admin-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .card {
  background-color: #2c2c2c;
  color: #f8f9fa;
  border-color: #495057;
}

body.dark-mode .table {
  color: #f8f9fa;
}

body.dark-mode .table th {
  background-color: #343a40;
  border-color: #495057;
}

body.dark-mode .table td {
  border-color: #495057;
}

/* ================ RESPONSIVIDADE ================ */
@media (max-width: 991.98px) {
  .admin-sidebar {
    min-height: auto;
    position: static;
  }
  
  .admin-avatar {
    width: 70px; /* REDUZIDO */
    height: 70px; /* REDUZIDO */
  }
  
  .acar-navbar .navbar-brand span {
    font-size: 0.9rem; /* REDUZIDO */
  }
  
  .acar-navbar .navbar-brand img {
    height: 55px; /* REDUZIDO */
  }
}

@media (max-width: 767.98px) {
  .dashboard-card {
    margin-bottom: 0.8rem; /* REDUZIDO */
  }
  
  .dashboard-card h3 {
    font-size: 1.3rem; /* REDUZIDO */
  }
  
  .acar-navbar .navbar-brand img {
    height: 45px; /* REDUZIDO */
  }
  
  .acar-navbar .navbar-brand span {
    display: none;
  }
}

/* ================ COMPONENTES ESPECÍFICOS ================ */

/* TESTIMONIALS */
.testimonial-icon {
  color: var(--acar-orange);
  opacity: 0.8;
}

.testimonial-card {
  border: 1px solid rgba(230, 126, 34, 0.1) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(230, 126, 34, 0.1) !important; /* SOMBRA MAIS SUAVE */
}

/* CARDS */
.card {
  border-radius: 0.4rem; /* REDUZIDO */
  transition: all 0.3s ease;
  margin-bottom: 1.2rem; /* REDUZIDO */
}

.card:hover {
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.15); /* SOMBRA MAIS SUAVE */
}

/* TABELAS */
.table th {
  font-weight: 500;
  color: #495057;
  background-color: #f8f9fa;
  font-size: 0.9rem; /* REDUZIDO */
}

.table td {
  font-size: 0.9rem; /* REDUZIDO */
}

/* FORMULÁRIOS */
.valid-feedback, .invalid-feedback {
  display: block;
  font-size: 0.85rem; /* REDUZIDO */
}

/* ================ UTILITÁRIOS ================ */
.min-vh-100 {
  min-height: 100vh;
}

.h-100 {
  height: 100%;
}

.w-fit-content {
  width: fit-content;
}

.text-acar-orange {
  color: var(--acar-orange) !important;
}

.btn-acar-orange {
  background-color: var(--acar-orange);
  border-color: var(--acar-orange);
  color: white;
}

.btn-acar-orange:hover {
  background-color: var(--acar-orange-dark);
  border-color: var(--acar-orange-dark);
  color: white;
}

.bg-bege {
  background-color: var(--acar-beige) !important;
}

/* ================ TRANSITIONS ================ */
.admin-menu-item, 
.dashboard-card, 
.btn,
.testimonial-card,
.card {
  transition: all 0.3s ease;
}

/* ================ MAIN CONTENT ================ */
.main-content {
  padding: 1.5rem; /* REDUZIDO */
  background-color: var(--acar-light);
}

body.dark-mode .main-content {
  background-color: #1a1a1a;
}

/* ================ FOOTER ================ */
footer.bg-dark {
  background-color: var(--dark) !important;
}

footer a.text-white:hover {
  color: var(--acar-orange) !important;
}

/* ================ MEDIA OBJECTS ================ */
.media {
  display: flex;
  align-items: flex-start;
}

.media-body {
  flex: 1;
}

/* ================ BADGES ================ */
.badge {
  display: inline-block;
  padding: 0.3em 0.55em; /* REDUZIDO */
  font-size: 0.7em; /* REDUZIDO */
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.2rem; /* REDUZIDO */
}

/* ================ ALERTS ================ */
.alert {
  position: relative;
  padding: 0.8rem 0.9rem; /* REDUZIDO */
  margin-bottom: 0.8rem; /* REDUZIDO */
  border: 1px solid transparent;
  border-radius: 0.2rem; /* REDUZIDO */
  font-size: 0.9rem; /* REDUZIDO */
}

.alert-primary {
  color: #084298;
  background-color: #cfe2ff;
  border-color: #b6d4fe;
}

/* ================ PROGRESS BARS ================ */
#uploadProgress {
    display: none;
    margin-top: 8px; /* REDUZIDO */
    height: 22px; /* REDUZIDO */
    border-radius: 10px; /* REDUZIDO */
    overflow: visible;
    background-color: #f0f0f0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); /* SOMBRA MAIS SUAVE */
}

.progress-bar {
    transition: width 0.3s ease;
    height: 100%;
    border-radius: 10px; /* REDUZIDO */
    background-color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px; /* REDUZIDO */
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* SOMBRA MAIS SUAVE */
    min-width: 25px; /* REDUZIDO */
}

.progress-bar-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 0.8rem 0.8rem; /* REDUZIDO */
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    from {
        background-position: 0.8rem 0; /* REDUZIDO */
    }
    to {
        background-position: 0 0;
    }
}

#fileInfo {
    color: #0d6efd;
    font-weight: bold;
    margin-bottom: 4px; /* REDUZIDO */
    padding: 4px; /* REDUZIDO */
    background-color: #f8f9fa;
    border-radius: 4px; /* REDUZIDO */
    border: 1px solid #dee2e6;
    font-size: 0.85rem; /* REDUZIDO */
}

#uploadStats {
    font-size: 0.8rem; /* REDUZIDO */
    color: #6c757d;
    margin-bottom: 4px; /* REDUZIDO */
}

/* ================ LIST GROUPS ================ */
.list-group {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  border-radius: 0.2rem; /* REDUZIDO */
}

.list-group-item {
  position: relative;
  display: block;
  padding: 0.4rem 0.9rem; /* REDUZIDO */
  color: #212529;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.125);
  font-size: 0.9rem; /* REDUZIDO */
}

/* ================ MODALS ================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

/* ================ TOOLTIPS ================ */
.tooltip {
  position: absolute;
  z-index: 1070;
  display: block;
  margin: 0;
  font-family: var(--bs-font-sans-serif);
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  word-break: normal;
  word-spacing: normal;
  white-space: normal;
  line-break: auto;
  font-size: 0.8rem; /* REDUZIDO */
  opacity: 0;
}

/* ================ POPOVERS ================ */
.popover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1060;
  display: block;
  max-width: 250px; /* REDUZIDO */
  font-family: var(--bs-font-sans-serif);
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  word-break: normal;
  word-spacing: normal;
  white-space: normal;
  line-break: auto;
  font-size: 0.8rem; /* REDUZIDO */
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.25rem;
}

/* ================ CAROUSEL ================ */
.carousel {
  position: relative;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* ================ SPINNERS ================ */
.spinner-border {
  display: inline-block;
  width: 1.8rem; /* REDUZIDO */
  height: 1.8rem; /* REDUZIDO */
  vertical-align: text-bottom;
  border: 0.2em solid currentColor; /* REDUZIDO */
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

/* ================ TOASTS ================ */
.toast {
  width: 320px; /* REDUZIDO */
  max-width: 100%;
  font-size: 0.8rem; /* REDUZIDO */
  pointer-events: auto;
  background-color: rgba(255, 255, 255, 0.85);
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.15); /* SOMBRA MAIS SUAVE */
  opacity: 0;
  border-radius: 0.2rem; /* REDUZIDO */
}

/* ================ COLLAPSE ================ */
.collapse {
  display: none;
}

.collapse.show {
  display: block;
}

/* ================ DROPDOWNS ================ */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  z-index: 1000;
  display: none;
  min-width: 9rem; /* REDUZIDO */
  padding: 0.4rem 0; /* REDUZIDO */
  margin: 0;
  font-size: 0.9rem; /* REDUZIDO */
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.2rem; /* REDUZIDO */
}

/* ================ NAVS ================ */
.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.4rem 0.9rem; /* REDUZIDO */
  color: #0d6efd;
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
  font-size: 0.9rem; /* REDUZIDO */
}

/* ================ NAVBAR ================ */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.4rem; /* REDUZIDO */
  padding-bottom: 0.4rem; /* REDUZIDO */
}

/* ================ PAGINATION ================ */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: 0.2rem; /* REDUZIDO */
}

/* ================ BREADCRUMB ================ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0 0;
  margin-bottom: 0.8rem; /* REDUZIDO */
  list-style: none;
  font-size: 0.9rem; /* REDUZIDO */
}

/* ================ BADGE PILLS ================ */
.badge-pill {
  padding-right: 0.5em; /* REDUZIDO */
  padding-left: 0.5em; /* REDUZIDO */
  border-radius: 8rem; /* REDUZIDO */
}

/* ================ JUMBOTRON ================ */
.jumbotron {
  padding: 1.5rem 0.9rem; /* REDUZIDO */
  margin-bottom: 1.5rem; /* REDUZIDO */
  background-color: #e9ecef;
  border-radius: 0.25rem; /* REDUZIDO */
}

/* ================ RESPONSIVE EMBEDS ================ */
.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

/* ================ FLEX UTILITIES ================ */
.d-flex {
  display: flex !important;
}

/* ================ MODAIS DE MENSAGENS ================ */
.modal-message {
    max-width: 750px; /* REDUZIDO */
}

.modal-message .modal-header {
    background-color: var(--primary);
    color: white;
    border-bottom: none;
    padding: 1.2rem; /* REDUZIDO */
}

.modal-message .modal-title {
    font-weight: 600;
    font-size: 1.1rem; /* REDUZIDO */
}

.modal-message .modal-body {
    padding: 1.5rem; /* REDUZIDO */
}

.modal-message .modal-footer {
    border-top: none;
    padding: 0.8rem 1.2rem; /* REDUZIDO */
    background-color: #f8f9fa;
}

.modal-message .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-message .btn-close:hover {
    opacity: 1;
}

.message-content {
    line-height: 1.6; /* REDUZIDO */
    font-size: 0.95rem; /* REDUZIDO */
}

.message-meta {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.8rem; /* REDUZIDO */
    margin-bottom: 1.2rem; /* REDUZIDO */
}

.message-actions {
    margin-top: 1.5rem; /* REDUZIDO */
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem; /* REDUZIDO */
}

.modal-form .form-group {
    margin-bottom: 1.2rem; /* REDUZIDO */
}

.modal-form label {
    font-weight: 500;
    margin-bottom: 0.4rem; /* REDUZIDO */
    display: block;
    font-size: 0.9rem; /* REDUZIDO */
}

.modal-form .form-control {
    padding: 0.6rem; /* REDUZIDO */
    border-radius: 0.3rem; /* REDUZIDO */
    font-size: 0.9rem; /* REDUZIDO */
}

.modal-form textarea.form-control {
    min-height: 180px; /* REDUZIDO */
    resize: vertical;
}

body.dark-mode .modal-message .modal-footer {
    background-color: #2c2c2c;
    border-top: 1px solid #444;
}

body.dark-mode .message-meta {
    border-bottom-color: #444;
}

body.dark-mode .modal-content {
    background-color: #2c2c2c;
    color: #f8f9fa;
}

body.dark-mode .modal-form .form-control {
    background-color: #3a3a3a;
    border-color: #555;
    color: #f8f9fa;
}

body.dark-mode .modal-form .form-control:focus {
    background-color: #3a3a3a;
    border-color: var(--primary);
    color: #f8f9fa;
}

body.dark-mode .modal-form label {
    color: #f8f9fa;
}

/* ================ PLAYER DE VÍDEO ================ */
.video-container {
    position: relative;
    background-color: #000;
    overflow: hidden;
    border-radius: 3px; /* REDUZIDO */
}

.video-container video {
    width: 100%;
    display: block;
}

.video-logo-watermark {
    position: absolute;
    top: 8px; /* REDUZIDO */
    left: 8px; /* REDUZIDO */
    z-index: 2;
    pointer-events: none;
    opacity: 0.7;
    width: 90px; /* REDUZIDO */
    height: auto;
}

.video-watermark {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 6px; /* REDUZIDO */
    z-index: 2;
    pointer-events: none;
}

.video-watermark h2 {
    color: white;
    font-size: 1rem; /* REDUZIDO */
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* SOMBRA MAIS SUAVE */
}

.video-watermark .text-warning {
    color: #ffc107 !important;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    z-index: 2;
}

.btn-play {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 70px; /* REDUZIDO */
    height: 70px; /* REDUZIDO */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-play:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 8px; /* REDUZIDO */
    display: flex;
    align-items: center;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-container:hover .video-controls {
    opacity: 1;
}

.btn-control {
    background: transparent;
    border: none;
    color: white;
    font-size: 14px; /* REDUZIDO */
    margin: 0 4px; /* REDUZIDO */
    cursor: pointer;
}

.progress-bar {
    flex-grow: 1;
    height: 4px; /* REDUZIDO */
    margin: 0 8px; /* REDUZIDO */
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 4px; /* REDUZIDO */
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px; /* REDUZIDO */
    height: 12px; /* REDUZIDO */
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.volume-bar {
    width: 70px; /* REDUZIDO */
    height: 4px; /* REDUZIDO */
    margin: 0 8px; /* REDUZIDO */
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 4px; /* REDUZIDO */
}

.volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px; /* REDUZIDO */
    height: 10px; /* REDUZIDO */
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.time {
    color: white;
    font-size: 12px; /* REDUZIDO */
    min-width: 45px; /* REDUZIDO */
    text-align: center;
}

.small {
    font-size: 0.7rem; /* REDUZIDO */
}

/* ================ AJUSTES PARA TELAS MUITO GRANDES ================ */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ================ FIM DO ARQUIVO ================ */