/* ========== VARIÁVEIS DE CORES ========== */
:root {
  --rosa-claro: #fff0f5;
  --rosa-medio: #ff69b4;
  --rosa-escuro: #d7368a;
  --dourado: #ffd700;
  --azul-medio: #4682b4;
  --azul-escuro: #1a1a2e;
  --texto-claro: #333;
  --texto-escuro: #e6e6e6;
}

/* ========== ESTILOS GERAIS ========== */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--rosa-claro);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Karla', sans-serif;
    transition: all 0.3s ease;
}

/* ========== NAVBAR ========== */
.navbar-rosa {
    background-color: var(--rosa-medio) !important;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-navbar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--dourado) !important;
}

/* ========== ALTERNADOR DE TEMA ========== */
.alternador-tema {
    position: relative;
    margin-left: 20px;
}

.checkbox-alternador {
    opacity: 0;
    position: absolute;
}

.rotulo-alternador {
    background-color: #111;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px;
    position: relative;
    height: 22px;
    width: 40px;
}

.rotulo-alternador .bola-alternador {
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 1.5px;
    left: 1.5px;
    height: 18px;
    width: 18px;
    transform: translateX(0px);
    transition: transform 0.2s linear;
}

.checkbox-alternador:checked + .rotulo-alternador .bola-alternador {
    transform: translateX(18px);
}

.rotulo-alternador .bi-sun {
    color: var(--dourado);
    font-size: 12px;
    margin-right: 5px;
}

.rotulo-alternador .bi-moon {
    color: var(--rosa-medio);
    font-size: 12px;
    margin-left: 5px;
}

/* ========== MAIN CONTENT ========== */
.container-main {
    background-color: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 2rem auto;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.container-main h1 {
    color: var(--rosa-escuro);
    font-weight: 700;
}

/* ========== BOTÃO CADASTRAR ========== */
#cadastrarVaga {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
}

/* ========== TABELA ========== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 1rem;
}

.records {
    width: 100%;
    border-collapse: collapse;
}

.records th {
    background-color: var(--rosa-medio);
    color: white;
    padding: 12px 15px;
    text-align: left;
}

.records td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.records tr:hover {
    background-color: var(--rosa-claro);
}

.records img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
}

/* ========== MODAL ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* ========== DARK MODE ========== */
body.tema-escuro {
    background-color: var(--azul-escuro);
    color: var(--texto-escuro);
}

.tema-escuro .container-main {
    background-color: #16213e;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.tema-escuro .records {
    background-color: #1a1a2e;
    color: var(--texto-escuro);
}

.tema-escuro .records th {
    background-color: var(--rosa-escuro);
}

.tema-escuro .records td {
    border-bottom: 1px solid #2a3a5a;
}

.tema-escuro .records tr:hover {
    background-color: #2a3a5a;
}

.tema-escuro .modal-content {
    background-color: #16213e;
    color: var(--texto-escuro);
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
    .container-main {
        width: 95%;
        padding: 1rem;
    }
    
    .records th, .records td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    #cadastrarVaga {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
    }
}