.alertas-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 32px 32px 32px 32px;
    background: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.10);
    text-align: center;
    min-width: 350px;
    width: 98%;
}
.clientes-lista {
    overflow-x: auto;
    width: 100%;
    margin-top: 12px;
}
.tabela-clientes {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}
.tabela-clientes th, .tabela-clientes td {
    padding: 8px 10px;
    border: 1px solid #eee;
    text-align: left;
}
/* Index exclusivo */
.index-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 32px 32px 32px 32px;
    background: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.10);
    text-align: center;
    min-width: 350px;
    width: 98%;
}
/* Planos exclusivo */
.planos-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 32px 32px 32px 32px;
    background: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.10);
    text-align: center;
    min-width: 350px;
    width: 98%;
}
/* Clientes exclusivo */
.clientes-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 32px 32px 32px 32px;
    background: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.10);
    text-align: center;
    min-width: 350px;
    width: 98%;
}
/* Dashboard exclusivo */
.dashboard-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 32px 32px 32px 32px;
    background: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.10);
    text-align: center;
    min-width: 350px;
    width: 98%;
}
/* Login exclusivo */
.login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.login-container {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 24px 0 rgba(0,0,0,0.07);
    padding: 28px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.login-container img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 16px;
    border-radius: 50%;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
}
.tabela-alertas {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 0.98rem;
}
.tabela-alertas th, .tabela-alertas td {
    border: 1px solid #eee;
    padding: 8px 6px;
    text-align: left;
}
.tabela-alertas th {
    background: #f7b500;
    color: #fff;
}
body {
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 400px;
    margin: 60px auto;
    padding: 32px 32px 32px 32px;
    background: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.10);
    text-align: center;
    min-width: 350px;
    width: 90%;
}

.logo {
    width: 120px;
    margin-bottom: 18px;
}

h1 {
    font-size: 1.3rem;
    color: #f7b500;
    margin-bottom: 24px;
}

.login-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background: #f7b500;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.login-form button:hover {
    background: #e0a800;
}

.dashboard-actions {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-width: 220px;
    padding: 12px 32px;
    background: #f7b500;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.08rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #e0a800;
}

.btn-logout {
    background: #aaa;
}
.btn-logout:hover {
    background: #888;
}

/* Specific style for the create-user button (keeps other buttons unchanged) */
.btn-create-user {
    /* match default .btn appearance to keep all buttons yellow */
    background: #f7b500;
    color: #ffffff;
}
.btn-create-user:hover {
    background: #e0a800;
}

/* Header user role display */
.user-menu{float:right;display:flex;align-items:center;gap:12px}
.user-info{display:flex;align-items:center;gap:8px}
.user-email{font-weight:600;color:#333}
.role-active{font-size:0.9rem;color:#444}
.role-badge{background:#f7b500;color:#fff;padding:4px 8px;border-radius:8px;margin-left:6px;font-weight:600}
.user-actions a{margin-left:10px;color:inherit;text-decoration:none}
.link-button{background:none;border:none;color:inherit;cursor:pointer;padding:0;font:inherit}

/* Dashboard active role banner */
.active-role-banner{
    margin: 12px auto 0 auto;
    max-width: 720px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight:600;
}

/* --- CLIENTES --- */
.form-cadastro {
    margin: 24px 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.form-cadastro input,
.form-cadastro select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}
.form-cadastro button {
    background: #f7b500;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 8px;
}
.form-cadastro button:hover {
    background: #e0a800;
}

.tabela-clientes {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 0.98rem;
}
.tabela-clientes th, .tabela-clientes td {
    border: 1px solid #eee;
    padding: 8px 6px;
    text-align: left;
}
.tabela-clientes th {
    background: #f7b500;
    color: #fff;
}
.btn-editar, .btn-remover {
    background: #aaa;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    margin-right: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-editar:hover {
    background: #f7b500;
}
.btn-remover:hover {
    background: #e74c3c;
}

/* --- PLANOS --- */

/* Modern Plans Table Styles */
.tabela-planos {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    font-size: 1.01em;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px #0001;
}
.tabela-planos th {
    background: #fffbe7;
    color: #e09b00;
    font-weight: bold;
    font-size: 1.07em;
    border-bottom: 2px solid #ffe6a0;
    padding: 14px 12px;
}
.tabela-planos td {
    background: #fff;
    color: #222;
    font-size: 1em;
    padding: 13px 12px;
}
.tabela-planos tr {
    border-bottom: 1px solid #f3e6b0;
}
.btn-editar-plano, .btn-remover-plano {
    background: #f7b500;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 16px;
    margin: 2px 2px 2px 0;
    font-size: 0.97rem;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
}
.btn-editar-plano:hover, .btn-remover-plano:hover {
    background: #e0a800;
}
.badge.bg-success {
    background: #4caf50 !important;
    color: #fff !important;
    font-weight: 500;
    border-radius: 6px;
    padding: 4px 12px;
    margin: 2px 0;
    display: inline-block;
}
.badge.bg-danger {
    background: #e53935 !important;
    color: #fff !important;
    font-weight: 500;
    border-radius: 6px;
    padding: 4px 12px;
    margin: 2px 0;
    display: inline-block;
}
.badge.bg-warning {
    background: #ffb800 !important;
    color: #222 !important;
    font-weight: 500;
    border-radius: 6px;
    padding: 4px 12px;
    margin: 2px 0;
    display: inline-block;
}
.badge.bg-secondary {
    background: #eee !important;
    color: #888 !important;
    font-weight: 500;
    border-radius: 6px;
    padding: 4px 12px;
    margin: 2px 0;
    display: inline-block;
}

/* Change password card */
.change-password-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0 80px 0;
}
.change-card {
    width: 520px;
    max-width: 92%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.08);
    padding: 28px 28px 22px 28px;
    text-align: center;
}
.change-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.change-card-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #222;
}
.btn-back {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -46px;
    background: transparent;
    color: #555;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none;
}
.change-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}
.change-form .form-label { text-align: left; font-weight: 600; color: #333; }
.change-form .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}
.btn-ghost {
    display: inline-block;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
}

@media (max-width: 600px) {
    .change-card { padding: 20px; }
    .btn-back { position: relative; left: 0; transform: none; margin-top: 0; }
    .form-actions { flex-direction: column; }
}
