﻿body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2b2b2b 100%);
    font-family: 'Poppins', sans-serif;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* --- Navbar gradiente vermelho --- */
.navbar {
    background: linear-gradient(45deg, #ff4d4d, #e63939) !important;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 10px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

    .navbar .navbar-nav {
        margin-left: auto;
        padding-right: 40px;
    }

    .navbar .nav-link {
        display: none; /* Remove o estilo padrão de nav-link para usar apenas btn-custom */
    }

.btn-custom {
    background: #fff;
    color: #ff4d4d;
    font-weight: 600;
    padding: 8px 20px;
    margin-left: 15px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 1px solid #ff4d4d;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .btn-custom:hover {
        background: #f8f8f8;
        color: #e63939;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4);
    }

/* Media Query para telas menores */
@media (max-width: 768px) {
    .navbar .navbar-nav {
        flex-direction: row;
        justify-content: flex-end;
        padding-right: 20px;
    }

    .btn-custom {
        padding: 6px 15px;
        margin-left: 10px;
        font-size: 0.8rem;
    }
}

.content {
    text-align: center;
    max-width: 600px;
    margin-top: 90px;
    padding: 20px;
}

    .content h1 {
        font-size: 2.5rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .content p {
        font-size: 1rem;
        color: #ccc;
        margin-bottom: 2rem;
    }

/* --- Select2 escuro --- */
.select2-container--default .select2-selection--single {
    background: #333 !important;
    border: 1px solid #ff4d4d !important;
    color: #fff !important;
    border-radius: 25px !important;
    height: 45px !important;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: none !important;
    padding: 5px 15px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
    line-height: 40px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    top: 3px !important;
    right: 10px !important;
}
.select2-dropdown {
    background-color: #1a1a1a !important;
    border: 1px solid #ff4d4d !important;
    border-radius: 8px !important;
    color: #fff !important;
}
.select2-results__option {
    padding: 10px 15px !important;
    color: #fff !important;
    transition: background-color 0.2s !important;
}
.select2-results__option--highlighted {
    background-color: #ff4d4d !important;
    color: #fff !important;
}
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--single:hover {
    border-color: #e63939 !important;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.6) !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    background: #1a1a1a !important;
    color: #fff !important;
    border: 1px solid #ff4d4d !important;
    border-radius: 8px !important;
    padding: 5px !important;
}

.btn-search {
    background: #ff4d4d;
    color: #fff;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    margin-top: 15px;
    transition: all 0.3s ease;
}

    .btn-search:hover {
        background: #e63939;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
    }

.footer {
    text-align: center;
    padding: 10px 0;
    color: #888;
    font-size: 0.8rem;
    margin-top: auto;
    width: 100%;
}

/* --- Grid de cards: 5 por linha em telas grandes --- */
@media (min-width: 1200px) {
  .row.cards-visualizar {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
  }
  .row.cards-visualizar > [class^='col-'],
  .row.cards-visualizar > [class*=' col-'] {
    flex: 0 0 calc(20% - 19.2px); /* 5 por linha, descontando o gap */
    max-width: calc(20% - 19.2px);
    margin-bottom: 24px;
  }
}

/* --- Cards padronizados --- */
.card-hover {
    background: linear-gradient(145deg, #2b2b2b, #333);
    border-radius: 15px;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 220px;
    max-width: 260px;
    min-height: 480px;
    max-height: 520px;
    margin: 0 auto;
}
.card-hover .card-img-top {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: block;
}
@media (max-width: 1199.98px) {
  .row.cards-visualizar > [class^='col-'],
  .row.cards-visualizar > [class*=' col-'] {
    flex: 0 0 25%;
    max-width: 25%;
  }
}
@media (max-width: 991.98px) {
  .row.cards-visualizar > [class^='col-'],
  .row.cards-visualizar > [class*=' col-'] {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}
@media (max-width: 767.98px) {
  .row.cards-visualizar > [class^='col-'],
  .row.cards-visualizar > [class*=' col-'] {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media (max-width: 576px) {
    .card-hover {
        min-width: 100%;
        max-width: 100%;
        min-height: 370px;
        max-height: 420px;
        margin-bottom: 20px;
    }
    .card-hover .card-img-top {
        height: 140px;
    }
    .row.cards-visualizar > [class^='col-'],
    .row.cards-visualizar > [class*=' col-'] {
      flex: 0 0 100%;
      max-width: 100%;
    }
}

/* --- Botões de perfil e voltar --- */
.btn-perfil {
    background-color: #ff4d4d;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 25px;
    padding: 8px 15px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
.btn-perfil:hover {
    background-color: #fff;
    color: #ff4d4d;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}
.btn-back {
    background: #ff4d4d;
    color: #fff;
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}
.btn-back:hover {
    background: #e63939;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,77,77,0.4);
}

/* --- Botões de tipo --- */
.tipo-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 10px;
}
.btn-tipo {
    background: linear-gradient(45deg, #333, #444);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 8px clamp(10px, 3vw, 20px);
    font-weight: 600;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 clamp(5px, 1.5vw, 10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    max-width: 33%;
    box-sizing: border-box;
}
.btn-tipo:hover, .btn-tipo.active {
    background: linear-gradient(45deg, #ff4d4d, #e63939);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,77,77,0.4);
}
.tipo-container .btn-group {
    display: flex;
    justify-content: center;
    gap: clamp(5px, 1vw, 10px);
    width: 100%;
    white-space: nowrap;
}

/* --- Status text --- */
.status-text {
    color: #ccc;
    font-size: 12px;
    font-style: italic;
    font-family: 'Montserrat', 'montserrat-fallback', sans-serif;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    max-width: 100%;
    display: block;
    min-height: 14px;
}

/* --- Empty message --- */
.empty-message {
    color: #ccc;
    font-size: 1.2rem;
    text-align: center;
    margin-top: 2rem;
}

/* --- Search form --- */
.search-form {
    background: #2b2b2b;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* --- Form controls --- */
.form-control, .form-select {
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
}
.form-control:focus, .form-select:focus {
    background-color: #333;
    border-color: #ff4d4d;
    box-shadow: 0 0 5px rgba(255,77,77,0.5);
    color: #fff;
}
.form-control::placeholder {
    color: #ccc;
    opacity: 1;
}

/* --- Card body layout fixo --- */
.card-hover .card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

/* --- Nome da pessoa branco e centralizado --- */
.card-hover .card-title {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    word-wrap: break-word;
    text-align: center;
    font-family: 'Poppins', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', 'Arial', sans-serif;
}

/* --- Botão perfil sempre embaixo --- */
.card-hover .btn-perfil {
    margin-top: auto;
    width: 100%;
}
