/* ESTILOS GLOBAIS */
html, body {
    font-family: Arial, sans-serif;
    background-color: white;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
    overflow: auto;
}

/* CONTAINERS E ESTRUTURA */
.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
    gap: 0;
    flex: 1 0 auto;
    position: relative;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
    min-width: 300px;
    padding: 5px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 10px;
}

/* CABEÇALHO */
.topo-centralizado {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 0px;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}


.header-textos {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#titulo-home {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
    color: #333;
}

#titulo-home2 {
    font-size: 18px;
    margin: 5px 0 0 0;
    color: #555;
}

.header-divider {
    width: 100%;
    max-width: 1200px;
    margin: 15px auto;
    border: 1px solid #ddd;
}

/* FORMULÁRIO */
.borda-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2px;
    width: 100%;
    padding-top: 0;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ELEMENTOS DE FORMULÁRIO */
.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left;
}

input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

input:focus {
    background-color: yellow;
    outline: none;
    border: 1px solid #ffa500;
}

button {
    background-color: rgba(0, 123, 255, 0.7);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    width: 100%;
}

button:hover {
    transform: scale(1.1);
    background-color: rgba(0, 86, 179, 1);
}

/* TABELA */
.borda-form table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
}

.borda-form table thead th,
.borda-form table tbody td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

.borda-form table thead th {
    background-color: #007BFF;
    color: white;
    text-transform: uppercase;
}

.borda-form table tbody tr:nth-child(odd) {
    background-color: #fff;
}

.borda-form table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.borda-form table tbody tr:hover {
    background-color: #e0f3ff;
}

/* AÇÕES E STATUS */
.borda-form .acoes {
    display: flex;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.borda-form .btn-acao {
    background: none;
    border: none;
    padding: 0 4px;
    cursor: pointer;
}

.borda-form .btn-acao img {
    width: 16px;
    height: 16px;
}

.status-aberta {
    background-color: green;
    color: white;
    padding: 5px;
    border-radius: 4px;
}

.status-servico {
    background-color: blue;
    color: white;
    padding: 5px;
    border-radius: 4px;
}

.status-avaliacao {
    background-color: rgb(192, 232, 13);
    color: black;
    padding: 5px;
    border-radius: 4px;
}

.status-finalizada {
    background-color: red;
    color: white;
    padding: 5px;
    border-radius: 4px;
}

/* CLAMP DE TEXTO */
.clamp-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2em;
    max-height: 2.4em;
    white-space: normal;
    cursor: help;
}

/* PAGINAÇÃO */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding-left: 0;
    margin: 5px 0 10px 0;
}

.page-link {
    display: inline-block;
    padding: 1px 12px;
    margin: 0 2px;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    color: #007BFF;
    text-decoration: none;
    border-radius: 4px;
}

.page-item.active .page-link {
    background-color: #007BFF;
    color: white;
    border-color: #007BFF;
}

/* DROPDOWN */
.dropdown-user {
    position: absolute;
    top: 10px;
    right: 10px; 
}

.dropdown-menu {
    display: none;
}

.dropdown-menu.show {
    display: block;
}

/* RODAPÉ */
footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    position: relative;
    width: 100%;
    z-index: 100;
    flex-shrink: 0;
    margin-top: 1px !important;
    padding-top: 10px;
    padding-bottom: 15px;
}

footer a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* BOTÕES DE ÍCONE */
.btn-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    width: 120px;
    transition: background-color 0.2s;
}

.btn-icon:hover {
    background-color: transparent;
}

.btn-icon:hover .icon-img {
    transform: scale(1.1);
}

.icon-img {
    display: block;
    width: 100px;
    height: 100px;
    margin-bottom: 5px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.icon-label {
    font-size: 14px;
    text-align: center;
    color: #333;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .content-container {
        padding: 10px;
    }

    .topo-centralizado {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .image-container {
        margin-right: 0;
        margin-bottom: 15px;
    }

    #titulo-home {
        font-size: 20px;
    }

    #titulo-home2 {
        font-size: 16px;
    }

    .btn-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    #titulo-home {
        white-space: normal;
        text-align: center;
        font-size: 20px;
    }
    
    #titulo-home2 {
        font-size: 16px;
    }
}

/* ESTRUTURA PRINCIPAL */
.container-principal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
    overflow-y: auto;
    width: 100%;
    min-height: calc(100vh - 120px);
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    padding-bottom: 10px;
}

/* FORMULÁRIO ESPECÍFICO */
.form-group select,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    max-width: 350px;
    padding: 8px 10px;
    font-size: 16px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* BARRA DE PESQUISA */
.header-with-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    flex: 1;
    min-width: 400px;
    max-width: 800px;
    margin-left: 20px;
    margin-top: 20px;
}

.custom-search-group {
    display: flex;
    width: 100%;
}

.custom-search-input {
    flex: 5;
    padding: 12px 20px;
    height: 46px;
    font-size: 1.1rem;
    border: 2px solid #007BFF;
    border-radius: 6px 0 0 6px;
    transition: all 0.3s ease;
}

.custom-search-input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
    outline: none;
}

.custom-search-btn, .custom-clear-btn {
    flex: 1;
    padding: 0 15px;
    height: 46px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-search-btn {
    background-color: #007BFF;
    color: white;
    border: 2px solid #007BFF;
    border-left: none;
    border-radius: 0;
}

.custom-clear-btn {
    background-color: white;
    color: #007BFF;
    border: 2px solid #007BFF;
    border-left: none;
    border-radius: 0 6px 6px 0;
}

.custom-search-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.custom-clear-btn:hover {
    background-color: #f8f9fa;
}

/* CAMPOS DESABILITADOS */
.campo-secretaria,
.campo-desabilitado {
    background-color: #f2f2f2;
    color: #555;
    cursor: not-allowed;
}

/* VALIDAÇÃO */
.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

.form-check-input:invalid ~ .invalid-feedback {
    display: block;
}

.form-check-input:invalid {
    border-color: #dc3545;
}

/* CHECKBOX PERSONALIZADO */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-left: 0;
    position: relative;
}

.custom-checkbox .form-check-input {
    margin-top: 0.25rem;
    margin-right: 0.5rem;
    float: none;
}

.custom-checkbox .form-check-label {
    margin-left: 0;
    display: inline;
}

.custom-checkbox .invalid-feedback {
    position: absolute;
    left: 1.5rem;
    bottom: -1.25rem;
}

.error-msg {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 4px;
    width: 100%;
}


/*************************************/

/* ESTILOS GLOBAIS */
html, body {
    font-family: Arial, sans-serif;
    background-color: white;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

/* ESTRUTURA PRINCIPAL */
.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* CABEÇALHO */
.topo-centralizado {
    width: 100%;
    padding: 20px 0;
    background-color: white;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-textos {
    text-align: left;
}

.header-divider {
    border: none;
    border-top: 2px solid #007BFF;
    margin: 10px auto;
    width: 100%;
    max-width: 1200px;
}

/* CONTAINER PRINCIPAL (BANDEIRA + FORMULÁRIO) */
.container-principal {
    display: flex;
    flex: 1;
    width: 100%;
    min-height: calc(100vh - 180px); /* Ajuste para altura do header e footer */
}

/* FORMULÁRIO (DIREITA) */
.borda-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
    background: white;
}

.borda-form {
    width: 100%;
    max-width: 350px;
    max-height:800px ;
    height: 680px;
    padding: 30px;
    background: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    border-radius: 8px; 
    top: 0;
    border-radius: 10px;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    position: relative;
    margin-bottom: 0;
}


/* FORMULÁRIO */
.form-group {
    margin-bottom: 20px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* RODAPÉ */
footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 15px;
    width: 100%;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .container-principal {
        flex-direction: column;
    }
    
    .borda-container {
        padding: 20px;
    }
    
    .header-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .header-textos {
        text-align: center;
    }
}

/*****************************************************/

/* Container fixo no canto direito */
.dropdown-fixed {
    position: absolute;  /* Fixo na janela */
    top: 20px;       /* Distância do topo */
    right: 20px;     /* Distância da direita */
    z-index: 1000;   /* Sobre outros elementos */
}

/* Estilo do botão */
.btn-secundary {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 180px;
    text-align: center;
}

.btn-secundary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Menu dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 200px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
    margin-top: 5px;
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #007BFF;
}

/* Ajuste no header para não colidir */
.topo-centralizado {
    padding-top: 5px; /* Espaço para o dropdown fixo */
}

/* Animação */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 768px) {
    .dropdown-fixed {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    
    .btn-secundary {
        padding: 8px 12px;
        min-width: auto;
    }
    
    .topo-centralizado {
        padding-top: 80px;
    }
}

/*****************************/

/* Ajuste no container principal para compactar o conteúdo */
.main-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px); /* Ajuste para o footer */
    padding-bottom: 0;
}

/* Se precisar remover espaços extras */
.borda-container {
    margin-bottom: 0;
    padding-bottom: 0;
}

footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 5px 15px; 
    font-size: 14px;
    width: 100%;
    margin-top: 0;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
}

/***********************************/

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/*****************************************************************/

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    list-style: none;
    padding: 10px;
    border: 1px solid #ccc;
    z-index: 999;
    transition: opacity 0.3s ease;
}

.dropdown-menu.show {
    display: block;
}

/************************************************************/


.container-principal {
    display: flex;
    width: 100%;
    gap: 20px; /* Espaço entre vídeo e formulário */
}

/* CONTAINER DO VÍDEO (lado esquerdo) */
#video-container {
    flex: 1; /* Ocupa 50% do espaço disponível */
    min-width: 75%; /* Mínimo de 40% da largura */
    max-height: 76vh; /* Altura máxima */
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px; /* Opcional */
    border: 4px solid rgba(255, 255, 255, 0.1);
}

/* VÍDEO EM SI */
#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Preenche todo o container sem distorcer */
}


