:root {
    --purple: #5a4086;
    --purple-dark: #3e2e5e;
    --red: #dc3545;
}

body {
    padding-top: 56px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9f9f9;
    color: #222;
    margin: 0;
}

.bg-purple {
    background-color: var(--purple) !important;
}

.btn-purple {
    background-color: var(--purple);
    border: none;
    color: white;
}

.btn-purple:hover,
.btn-purple:focus {
    background-color: var(--purple-dark);
    color: white;
    outline: none;
    box-shadow: none;
}

.navbar-brand i {
    color: #fff;
}

#sidebar {
    position: fixed;
    top: 56px;
    right: -300px;
    width: 280px;
    height: calc(100% - 56px);
    background-color: var(--purple);
    color: white;
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: right 0.3s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
}

#sidebar.open {
    right: 0;
}

#sidebar .nav-link {
    color: white;
    font-weight: 600;
}

#sidebar .nav-link:hover,
#sidebar .dropdown-menu a:hover {
    background-color: var(--purple-dark);
    color: #ddd;
}

#sidebar .dropdown-toggle {
    width: 100%;
    text-align: left;
    font-weight: 600;
    color: white;
    border: none;
}

#sidebar .dropdown-menu {
    background-color: var(--purple);
    border: none;
    padding-left: 1rem;
    margin-top: 0.25rem;
}

#sidebar .dropdown-menu .dropdown-item {
    color: white;
    padding-left: 1rem;
    font-weight: 500;
}

#sidebar .btn-outline-light {
    border-color: white;
    color: white;
}

#sidebar .btn-outline-light:hover {
    background-color: white;
    color: var(--purple);
}

#sidebar button.btn-success {
    background-color: #8cc63f;
    border: none;
    color: white;
    font-weight: 600;
}

#sidebar button.btn-success:hover {
    background-color: #7bb432;
}

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 1040;
}

.hero-section {
    background: #111;
    background: linear-gradient(135deg, #111 0%, #333 100%);
    padding-top: 4rem;
    padding-bottom: 4rem;
    color: white;
}

.hero-section h1 {
    font-weight: 700;
    font-size: 2.8rem;
}

.hero-section p.lead {
    font-size: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-box input.form-control {
    border-radius: 40px 0 0 40px !important;
    border: none;
    padding: 0.75rem 1.2rem;
    font-size: 1.1rem;
}

.search-box button {
    border-radius: 0 40px 40px 0 !important;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
}

.text-danger {
    color: var(--red) !important;
}

.dropdown-checkbox {
    position: relative;
    width: 100%;
    max-width: 350px;
}

.dropdown-btn {
    width: 100%;
    background-color: #fff;
    color: #333;
    border: 1.5px solid var(--red);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    text-align: left;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-btn i {
    margin-left: 0.5rem;
}

.dropdown-list {
    position: absolute;
    z-index: 9999;
    background-color: #fff;
    border: 1.5px solid var(--red);
    border-radius: 6px;
    margin-top: 0.3rem;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    padding: 0.5rem 0;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

.dropdown-list li {
    list-style: none;
    padding: 0.4rem 1rem;
    cursor: pointer;
}

.dropdown-list li label {
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
}

.dropdown-list li:hover {
    background-color: var(--red);
}

.dropdown-list li:hover label {
    color: white;
}

.dropdown-list input[type='checkbox'] {
    margin-right: 10px;
    cursor: pointer;
}

.footer-section {
    background-color: #121212;
    color: #ccc;
}

.footer-section h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section h6 {
    font-weight: 600;
}

.footer-section ul li {
    cursor: pointer;
    margin-bottom: 0.3rem;
    color: #ddd;
}

.footer-section ul li:hover {
    color: white;
    text-decoration: underline;
}

.dropdown-list::-webkit-scrollbar {
    width: 8px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .search-box input.form-control {
        width: 70vw !important;
    }

    .dropdown-checkbox {
        max-width: 100%;
    }
}
.card {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card img {
    width: 200px;
    height: 240px;
    object-fit: cover;
    border-radius: 5px;
}

.card h3 {
    margin: 0;
    font-size: 1.1rem;
    text-align: center;
    color: var(--purple-dark);
}

.card p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
    text-align: center;
}
#avaliacaoEstrelas .star {
  cursor: pointer;
  color: #ccc;
  transition: color 0.2s;
}
#avaliacaoEstrelas .star.hover,
#avaliacaoEstrelas .star.selecionada {
  color: #ffc107;
}
#contadorComentario {
  font-size: 0.85rem;
  color: #6c757d;
}

html, body {
    overflow-x: hidden !important;
    width: 100%;
}
#sidebar {
    box-sizing: border-box;
}
.overlay-status {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(2px);
  transition: opacity 0.3s ease;
}

.overlay-box {
  background: #fff;
  color: #333;
  padding: 25px 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  text-align: center;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#overlayIcon {
  font-size: 2rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.6; }
}