/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f0f0; /* ✅ FUNDOS CINZA CLARO COMO NA IMAGEM ORIGINAL */
    color: #333; /* ✅ TEXTO ESCURO PARA FUNDO CLARO */
    line-height: 1.6;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Seção de Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0; /* ✅ FUNDO 
}

.login-form {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    border: 1px solid #FFD700; /* ✅ BORDA AMARELA */
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #FFD700;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #FFD700;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 1rem;
    color: white;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

button {
    background-color: #1a1a1a;
    color: #FFD700;
    padding: 0.75rem 1.5rem;
    border: 1px solid #FFD700;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

button:hover {
    background-color: #2d2d2d;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.login-form button {
    width: 100%;
    margin-top: 1rem;
}

/* Seção Principal */
.main-container {
    min-height: 100vh;
    padding: 1rem 1rem 4rem 1rem;
    color: #ffffff; /* ✅ TEXTO BRANCO NA ÁREA PRINCIPAL */
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #121212;
    padding: 1rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    border: 1px solid #FFD700; /* ✅ BORDA AMARELA */
}

.header h1 {
    color: #FFD700;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    flex: 1;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#logout-btn, #admin-panel-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: #3d3d3d;
    color: #FFD700;
    border: 1px solid #FFD700;
    border-radius: 6px;
}

#admin-panel-btn {
    background-color: #3d3d3d;
    border-color: #FFD700;
    color: #FFD700;
}

#admin-panel-btn:hover {
    background-color: #998133;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.5);
}

/* Rodapé */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    padding: 0.75rem 2rem;
    text-align: center;
    border-top: 1px solid #444;
    backdrop-filter: blur(5px);
    z-index: 100;
    color: #FFD700;
}

/* Tabela da Planilha */
.spreadsheet-container {
    background: #121212;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    border: 1px solid #FFD700; /* ✅ BORDA AMARELA COMO NA IMAGEM ORIGINAL */
}

.spreadsheet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
}

.spreadsheet-table th {
    background-color: #2c3e50;
    color: #FFD700;
    padding: 1.2rem;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.8px;
    border-bottom: 2px solid #FFD700;
}

.spreadsheet-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s;
    font-weight: 500;
}

/* Linhas verticais douradas entre os dias */
.spreadsheet-table td.editable-cell {
    border-left: 1px solid #FFD700;
    border-right: 1px solid #FFD700;
}

.spreadsheet-table tbody tr:hover {
    background-color: #2a2a2a;
}

.spreadsheet-table tbody tr:nth-child(odd) {
    background-color: #1a1a1a;
}

.spreadsheet-table tbody tr:nth-child(even) {
    background-color: #1d1d1d;
}

.daily-totals {
    background-color: #333 !important;
    font-weight: 600;
    border-top: 2px solid #FFD700;
}

.daily-totals td {
    padding: 1rem;
    color: #FFD700;
}

.highlight {
    background-color: #3a3a3a !important;
    font-weight: 700;
    color: #FFD700;
    border: 1px solid #FFD700;
}

.employee-name {
    background-color: #2c3e50 !important;
    color: #FFD700;
    font-weight: 700;
    text-align: left;
    padding-left: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.editable-cell {
    cursor: pointer;
    position: relative;
}

.editable-cell:hover {
    background-color: #2d2d2d !important;
    border: 1px solid #FFD700;
}

.editable-cell input[type="number"] {
    width: 80px;
    min-width: 60px;
    max-width: 100px;
    text-align: center;
    background: #1a1a1a;
    color: #FFD700;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.5rem;
    font-weight: 600;
}

.editable-cell input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

.total-cell {
    background-color: #2d2d2d !important;
    font-weight: 600;
    color: #FFD700;
    border-left: 2px solid #FFD700;
}

/* Painel de Administração */
.admin-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.admin-panel {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #FFD700;
}

.admin-panel h2 {
    color: #FFD700;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.admin-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid #444;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #aaa;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #FFD700;
    border-bottom-color: #FFD700;
    background-color: #2d2d2d;
}

.tab-btn:hover {
    background-color: #2d2d2d;
    color: #FFD700;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #FFD700;
    margin-bottom: 1rem;
    font-weight: 600;
}

.employee-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1rem;
    background: #222;
}

.employee-list ul {
    list-style: none;
}

.employee-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #333;
    color: #ffffff;
}

.employee-list li:last-child {
    border-bottom: none;
}

.employee-list .employee-info {
    font-weight: 500;
    color: #ffffff;
}

.remove-btn {
    background-color: #e74c3c;
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.remove-btn:hover {
    background-color: #c0392b;
}

.admin-actions {
    margin-top: 2rem;
    text-align: center;
}

#back-to-main {
    background-color: #333;
    color: #FFD700;
    padding: 0.5rem 1rem;
    border: 1px solid #FFD700;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

#back-to-main:hover {
    background-color: #444;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Estilo inspirado na Binance para login */
.binance-style {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    border: 1px solid #FFD700;
}

.login-logo {
    width: 120px;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.binance-style h2 {
    font-size: 1.5rem;
    color: #FFD700;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.binance-style .form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.binance-style label {
    font-weight: 500;
    color: #FFD700;
    margin-bottom: 0.5rem;
    display: block;
}

.binance-style input[type="text"],
.binance-style input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    background: #2d2d2d;
    border: 1px solid #555;
    border-radius: 8px;
    font-size: 1rem;
    color: white;
    transition: border-color 0.3s;
}

.binance-style input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #aaa;
}

.binance-button {
    background-color: #FFD700;
    color: #111;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    margin-top: 1rem;
    font-weight: bold;
}

.binance-button:hover {
    background-color: #ffd000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

/* Estilos para ações dos funcionários no painel admin */
.employee-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.change-password-btn {
    background-color: #2d5aa0;
    color: white;
    border: 1px solid #2d5aa0;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.change-password-btn:hover {
    background-color: #1e3f73;
    box-shadow: 0 2px 8px rgba(45, 90, 160, 0.3);
}

.remove-btn {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background-color: #c82333;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

#employee-management-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background-color: #2d2d2d;
    border-radius: 6px;
    border: 1px solid #444;
}

.employee-info {
    font-weight: 500;
    color: #FFD700;
}
/* Correção definitiva para centralização do login */
#login-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
  z-index: 1000;
}

.login-container {
    background-color: transparent !important;
    min-height: auto !important;
}
