/* Configurações Gerais */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    margin: 0;
    color: #1e293b;
}

.admin-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

/* Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
}
/* Logo do Header Admin */
.img-logo-header {
    max-height: 110px;
    width: auto;
}

.logo-admin {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-admin {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    color: #64748b;
}

/* Logo da tela de login */
.login-logo img {
    max-height: 80px;
    width: auto;
    margin-bottom: 20px;
}

.logo span {
    color: #00ff88;
}

.btn-logout {
    color: #ef4444;
    font-weight: bold;
    text-decoration: none;
}

/* Caixa de Cadastro Mestre */
.master-client-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.master-client-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0f172a;
}

.master-client-form {
    display: flex;
    gap: 12px;
}

.input-master {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
}

.btn-master {
    background: #00ff88;
    color: #000;
    border: none;
    padding: 0 25px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-master:hover {
    filter: brightness(0.9);
}

/* Tabela de Projetos */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.admin-table thead {
    background: #f1f5f9;
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.admin-table td {
    padding: 15px;
    border-top: 1px solid #f1f5f9;
}

/* Ações */
.actions-cell {
    display: flex;
    gap: 15px;
}

.btn-config { color: #3b82f6; text-decoration: none; font-weight: bold; }
.btn-delete { color: #ef4444; text-decoration: none; font-weight: bold; }

/* Modal de Edição */
.edit-modal {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
    border: 2px solid #00ff88;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    margin-bottom:10px;
}

.modal-footer {
    margin-top: 30px;
}

.btn-save {
    background: #00ff88;
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.btn-cancel {
    margin-left: 20px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}

/* Página de Login */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #0f172a;
}

.login-form {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    width: 320px;
    text-align: center;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-sizing: border-box;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background: #00ff88;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}
/* Melhoria visual do Header e Botão de Sincronização */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-sync {
    background: #64748b; /* Cinza slate profissional */
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-sync:hover {
    background: #475569;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-sync:active {
    transform: translateY(0);
}

.btn-sync:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Estilização extra para o Select de Clientes */
.input-master {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    background-color: #ffffff;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s;
}

.input-master:focus {
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

/* Grid do Modal */
.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas colunas iguais */
    gap: 30px;
    padding: 20px 0;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-title {
    font-weight: 800;
    font-size: 0.9rem;
    color: #64748b;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* Linha de Link (Título + URL lado a lado) */
.link-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
}


/* Ajuste Mobile */
@media (max-width: 768px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
}
