body {
        font-family: Arial, sans-serif;
        background: #eef1f5;
        padding: 15px;
        margin: 0;
    }

    h1 {
        text-align: center;
        font-size: 26px;
        margin-bottom: 20px;
    }

    /* ---------------- LOGIN ---------------- */
    #loginBox {
        margin: 60px auto;
        max-width: 380px;
        background: white;
        padding: 25px;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        text-align: center;
    }

    #loginBox h2 {
        margin-bottom: 20px;
    }

    #loginBox input {
        width: 100%;
        padding: 14px;
        font-size: 18px;
        border-radius: 8px;
        border: 1px solid #bbb;
        margin-bottom: 15px;
    }

    #loginBox button {
        width: 100%;
        padding: 14px;
        font-size: 18px;
        background: #222;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
    }

    /* ----- TABELA NO DESKTOP ----- */
    table {
        width: 100%;
        border-collapse: collapse;
        background: white;
        border-radius: 10px;
        overflow: hidden;
        display: none; /* escondido até logar */
    }

    th, td {
        padding: 14px;
        border-bottom: 1px solid #ddd;
        text-align: left;
        font-size: 16px;
    }

    th {
        background: #222;
        color: #fff;
        font-size: 15px;
    }

    tr:hover {
        background: #f3f3f3;
    }

    .pagination {
        margin-top: 20px;
        display: none; /* escondido até logar */
        justify-content: center;
        gap: 12px;
    }

    .page-btn {
        padding: 12px 20px;
        background: #222;
        color: white;
        border-radius: 8px;
        font-size: 16px;
        cursor: pointer;
        border: none;
    }

    .page-btn:disabled {
        background: #888;
        cursor: not-allowed;
    }

    .whatsapp-btn {
        color: #25D366;
        font-size: 28px;
        text-decoration: none;
        font-weight: bold;
    }

    /* ----- RESPONSIVO PARA CELULAR ----- */
    @media (max-width: 768px) {
        table, thead, tbody, th, tr {
            display: block;
        }

        thead {
            display: none;
        }

        tr {
            background: white;
            margin-bottom: 15px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            padding: 10px 12px;
        }

        td {
            border: none;
            display: flex;
            justify-content: space-between;
            padding: 8px 4px;
            font-size: 17px;
        }

        td:before {
            content: attr(data-label);
            font-weight: bold;
            color: #444;
        }

        .whatsapp-btn {
            font-size: 30px;
        }

        .page-btn {
            width: 45%;
            font-size: 18px;
            padding: 14px;
        }
      
      /* STATUS DE EXPIRAÇÃO */
.expired {
    background-color: #ffe5e5 !important;
    border-left: 6px solid #ff4d4d;
}

.warning {
    background-color: #fff7cc !important;
    border-left: 6px solid #ffcc00;
}

.days-left {
    font-weight: bold;
}
      
      /* BADGES */
.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    color: white;
}

.badge-expired {
    background: #ff4d4d;
}

.badge-warning {
    background: #ffcc00;
    color: #222;
}

.badge-ok {
    background: #2ecc71;
}
      
      /* Overlay que centraliza automaticamente */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

/* Spinner moderno */
.spinner {
    width: 52px;
    height: 52px;
    border: 5px solid #e0e0e0;
    border-top: 5px solid #2f80ed;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

/* Texto abaixo do spinner */
.loader-text {
    margin-top: 12px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* Animação */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* MELHOR CONTRASTE DOS CARDS */
.expired {
    background-color: #ffe5e5 !important;
}

.warning {
    background-color: #fff7cc !important;
}

    }