* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0f172a;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #1e293b;
    border-bottom: 2px solid #3b82f6;
    padding: 1rem;
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #38bdf8;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #1e293b;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    border: 1px solid #334155;
    border-radius: 6px;
    z-index: 100;
}

.dropdown-content a {
    color: #f8fafc;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: #334155;
}

.show {
    display: block;
}

main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
}

.card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h1, h2 {
    color: #38bdf8;
    margin-bottom: 1rem;
}

p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-action {
    display: block;
    width: 100%;
    padding: 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    transition: opacity 0.2s;
}

.btn-action:hover {
    opacity: 0.9;
}

.btn-whatsapp {
    background-color: #22c55e;
    color: white;
}

.btn-afiliado {
    background-color: #eab308;
    color: #0f172a;
}

/* Modal Estritamente Oculto por Padrão */
.modal {
    display: none !important;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
}

.modal.ativo {
    display: block !important;
}

.modal-content {
    background-color: #1e293b;
    margin: 8% auto;
    padding: 1.5rem;
    border: 1px solid #334155;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
}

/* Botões Pequenos da Tabela */
.btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.btn-sm-edit {
    background-color: #eab308;
    color: #0f172a;
}

.btn-sm-delete {
    background-color: #ef4444;
    color: white;
}

.btn-sm-renew {
    background-color: #3b82f6;
    color: white;
}

.btn-sm-block {
    background-color: #f97316;
    color: white;
}

.btn-sm-unblock {
    background-color: #10b981;
    color: white;
}

footer {
    background-color: #1e293b;
    border-top: 1px solid #334155;
    text-align: center;
    padding: 1.5rem;
    color: #64748b;
    font-size: 0.85rem;
}
