.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 {
    /* allow planos page to use most of the viewport so tables don't require horizontal scroll */
    max-width: none;
    margin: 20px 24px;
    padding: 28px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.06);
    text-align: left;
    min-width: 0;
    width: calc(100% - 48px);
}
/* 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: 440px;
    min-height: 400px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.10);
    padding: 28px 28px 20px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: box-shadow 0.2s, border-radius 0.2s;
    position: relative;
}
.login-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
    /* Removido border-radius para não cortar o nome */
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.10);
    background: #fff;
    /* border removida para visual mais limpo */
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    position: static;
}

.login-title {
    font-weight: 700;
    font-size: 1.7rem;
    margin-bottom: 14px;
    color: #222;
    text-align: center;
    letter-spacing: 0.5px;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
}

.form-group label {
    font-weight: 500;
    color: #444;
    margin-bottom: 2px;
}

.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    color: #222;
    background: #fafbfc;
    transition: border 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #f7b500;
    outline: none;
}

.form-error {
    color: #e74c3c;
    font-size: 0.85em;
    margin-top: 2px;
}

.form-remember {
    flex-direction: row;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    margin-top: 2px;
.form-remember {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding-left: 0 !important;
    background: none !important;
    box-shadow: none !important;
    width: auto !important;
}

.login-btn {
    width: 100%;
    background: linear-gradient(90deg, #f7b500 60%, #ffce3a 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px 0 rgba(247,181,0,0.08);
    margin-top: 6px;
}

.login-btn {
    width: 100%;
    background: linear-gradient(90deg, #f7b500 60%, #ffce3a 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 7px;
    padding: 10px 0;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px 0 rgba(247,181,0,0.08);
    margin-top: 12px;
    margin-bottom: 0;
    align-self: center;
    display: block;
    position: static;
}
.login-btn:hover {
    background: linear-gradient(90deg, #e0a800 60%, #ffd966 100%);
    box-shadow: 0 4px 16px 0 rgba(247,181,0,0.13);
}
}
body {
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

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

.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;
}

/* Ghost button used for "Voltar" and other secondary links */
.btn-ghost {
    display: inline-block;
    box-sizing: border-box;
    padding: 12px 20px;
    background: #f7b500;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.08rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-ghost:hover {
    background: #e0a800;
    color: #fff;
}

/* 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:none;display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-bottom: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}

/* Planos: improved table visuals */
.planos-container .table-card { background: #fff; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); overflow: visible; margin-top: 8px; }
.planos-container table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 100%; background: transparent; }
.planos-container thead th { background: #f7b500; color: #fff; padding: 18px 20px; text-align: left; font-weight: 800; font-size: 1.02rem; position: sticky; top: 0; z-index: 3; }
.planos-container tbody td { padding: 20px 18px; vertical-align: middle; color: #222; font-size: 0.98rem; border-top: 1px solid rgba(247,181,0,0.08); }
.planos-container tbody tr:nth-child(even) { background: #fffaf2; }
.planos-container tbody tr:hover { background: #fffef8; }
.planos-container .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.planos-container .status-badge.ativo { background: #f7b500; color: #fff; }
.planos-container .status-badge.aviso { background: #f7b500; }
.planos-container .status-badge.inativo { background: #e6e6e6; color: #222; box-shadow:none; }
.planos-container .actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.planos-container .actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    font-weight: 700;
}

/* Action buttons: modern, compact and consistent */
.planos-container .actions { align-items: flex-end; }
.planos-container .actions { flex-direction: row; }
.planos-container .actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    min-width: 100px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
    transition: transform .08s ease, box-shadow .12s ease, background .12s ease;
}
.planos-container .actions .btn:hover { transform: translateY(-1px); }

/* Edit (primary) */
.planos-container .actions .btn.btn-primary {
    background: linear-gradient(180deg,#f7b500,#e6a300);
    color: #fff;
    border: none;
}

/* Remove (destructive) */
.planos-container .actions .btn.btn-danger, .planos-container .actions .btn.btn-secondary.remove {
    background: transparent;
    color: #d32f2f;
    border: 1px solid rgba(211,47,47,0.12);
    box-shadow: none;
}
.planos-container .actions .btn.btn-danger:hover, .planos-container .actions .btn.btn-secondary.remove:hover {
    background: rgba(211,47,47,0.06);
    border-color: #d32f2f;
    color: #d32f2f;
}

@media (max-width:700px) {
    .planos-container .actions { flex-direction: column; align-items: stretch; }
    .planos-container .actions .btn { width: 100%; min-width: 0; }
}

/* Broad selectors to ensure table action buttons and status badges match exactly */
.planos-container table td { vertical-align: middle; }
.planos-container table td .btn,
.planos-container table td .small-btn,
.planos-container table td button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 140px !important;
    height: 48px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06) !important;
    font-weight: 700 !important;
}

/* If status is plain text, make it appear as a badge with same dimensions */
.planos-container table td .status-badge,
.planos-container table td .plan-status,
.planos-container table td span.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    font-weight: 800;
    color: #fff;
}

/* fallback: if status is plain text inside TD, style the TD's first-child element */
.planos-container table td.status-cell { padding: 8px 18px; }
.planos-container table td.status-cell > * { display:inline-flex; }

@media (max-width: 900px) {
    .planos-container { padding: 18px; }
    .planos-container table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .planos-container thead th { position: relative; }
}

/* Planos header: center logo and align hero CTAs side-by-side */
.planos-container {
    /* ensure header area can center content */
}
.planos-container .logo { display: block; margin: 8px auto 10px; max-width: 140px; }
.planos-container .hero-ctas { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }

/* header wrapper for logo + title */
.planos-container .planos-header { text-align: center; margin-bottom: 6px; }
.planos-container .planos-header h1 { margin: 6px 0 14px; color: #f7b500; font-size: 1.5rem; font-weight: 800; }
.planos-container .hero-ctas .btn-cta,
.planos-container .hero-ctas a.btn,
.planos-container .hero-ctas button.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 220px !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 14px rgba(0,0,0,0.06) !important;
    text-align: center !important;
}

@media (max-width:900px) {
    .planos-container .hero-ctas .btn-cta,
    .planos-container .hero-ctas a.btn,
    .planos-container .hero-ctas button.btn { min-width: 100%; }
}
.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 --- */

/* Tweak: make Planos buttons more subtle (slimmer, smaller shadow) */
.planos-container .hero-ctas .btn-cta,
.planos-container .hero-ctas a.btn,
.planos-container .hero-ctas button.btn {
    /* slightly narrower and less tall than previous */
    min-width: 170px !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04) !important;
}

.planos-container .actions .btn {
    min-width: 96px;
    height: 40px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.98rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.04);
}

/* Make table action buttons slimmer as well */
.planos-container table td .btn,
.planos-container table td .small-btn,
.planos-container table td button {
    min-width: 110px !important;
    height: 40px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.04) !important;
    font-weight: 400 !important;
}

/* Make Planos buttons and status badges use normal font-weight (not bold) */
.planos-container .hero-ctas .btn-cta,
.planos-container .actions .btn,
.planos-container .status-badge,
.planos-container table td .status-badge {
    font-weight: 400 !important;
}
.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;
}
/* Make select highlight match the yellow button color */
.form-cadastro select {
    background: #fff;
    color: #222;
}
.form-cadastro select:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(247,181,0,0.12);
    border-color: #f7b500;
}
.form-cadastro select option:hover,
.form-cadastro select option:checked {
    background: #f7b500;
    color: #fff;
}

/* Custom select component styles */
.custom-select-wrapper { position: relative; width: 100%; }
.custom-select { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 10px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.custom-select .selected { color: #222; }
.custom-select .chev { margin-left: 12px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid #444; }
.custom-select.open { box-shadow: 0 6px 18px rgba(0,0,0,0.12); border-color: #f7b500; }
.custom-select-options { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid #ddd; border-radius: 6px; max-height: 220px; overflow: auto; z-index: 50; box-shadow: 0 6px 24px rgba(0,0,0,0.12); }
.custom-select-option { padding: 10px 12px; cursor: pointer; }
.custom-select-option:hover { background: #f7b500; color: #fff; }
.custom-select-option.active { background: #f7b500; color: #fff; font-weight:600; }
.custom-select-placeholder { color: #666; }
.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: #f7b500;
    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 {
    /* Use project yellow for success badges to avoid green */
    background: #f7b500 !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: #f7b500 !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;
}
/* Create user card modern styles */
.create-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 0;
    overflow: visible;
}
.create-card .card-header {
    font-weight: 700;
    padding: 18px 22px;
    border-bottom: 1px solid #f1f1f1;
    text-align: center;
    background: transparent;
}
.card-top-actions {
    display: flex;
    justify-content: flex-end;
    padding: 12px 20px 0 20px;
    margin-bottom: 24px; /* increased spacing above form */
}
.btn-submit-top {
    padding: 8px 14px; /* reduce height */
    border-radius: 10px;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(247,181,0,0.12);
    display: inline-block;
    width: auto;
    min-width: 140px;
    margin-bottom: 6px;
}
.create-card .card-body {
    padding: 22px 28px 28px 28px;
}
.create-card .mt-3 { margin-top: 18px; }
.form-control { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #e6e6e6; }
.btn-ghost {
    display: inline-block;
    background: transparent;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
}
.btn-ghost:hover { background: #fafafa; }

@media (max-width: 600px) {
    .card-top-actions { justify-content: center; padding: 10px 12px 0 12px; }
    .btn-submit-top { width: 100%; }
}

/* Modern form grid for create user */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-label { font-weight: 700; margin-bottom: 6px; color: #333; font-size: 0.95rem; }
.form-control {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ececec;
    background: #fbfbfc;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.form-control:focus { outline: none; border-color: #f7b500; box-shadow: 0 6px 18px rgba(247,181,0,0.08); }

.card-accent { height: 6px; background: linear-gradient(90deg,#f7b500,#f39c12); border-top-left-radius:14px; border-top-right-radius:14px; }
.card-subtitle { text-align: center; color: #666; padding: 6px 12px 0 12px; font-size: 0.95rem; margin-top: 4px; }
.form-footer { display: flex; justify-content: flex-start; padding-top: 14px; gap: 12px; margin-top: 8px; }
.form-footer .btn-ghost {
    display: inline-block;
    padding: 8px 14px; /* reduce height */
    border-radius: 10px;
}

@media (max-width: 720px) {
    .form-grid { grid-template-columns: 1fr; }
    .create-card { padding: 0; }
    .card-top-actions { padding: 10px 12px; }
    .form-footer { justify-content: center; }
    .btn-submit-top, .form-footer .btn-ghost { width: 100%; min-width: unset; }
}
.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; }
}

/* --- CLIENT-SPECIFIC LAYOUT FIXES ---
   Target: avoid giant full-width yellow blocks and input overflow on client detail pages
*/
.clientes-container .dashboard-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.clientes-container .dashboard-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 10px 18px;
    min-width: 180px;
    max-width: 320px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.clientes-container .form-cadastro {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.clientes-container .form-cadastro input,
.clientes-container .form-cadastro select {
    flex: 1 1 200px;
    min-width: 140px;
    width: auto;
}
.clientes-container .form-cadastro button {
    flex: 1 1 100%;
    max-width: 480px;
}

/* Tidy the client create form inputs so they look like regular form fields
   instead of tall empty cards (targets the form on the clientes page). */
.clientes-container .form-cadastro {
    flex-direction: row;
    align-items: center;
}
.clientes-container .form-cadastro input {
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #ffffff;
    box-shadow: none;
    font-size: 1rem;
    color: #333;
    box-sizing: border-box;
}
.clientes-container .form-cadastro input::placeholder {
    color: #777;
}
.clientes-container .form-cadastro button {
    min-height: 44px;
    padding: 10px 20px;
    align-self: stretch;
}

/* Ensure edit form inputs are consistent and compact */
.form-editar-campo input {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #e0c36a;
    background: #fff;
    box-sizing: border-box;
    font-size: 1.02em;
}

@media (max-width: 880px) {
    .clientes-container .dashboard-actions { justify-content: stretch; }
    .clientes-container .dashboard-actions .btn { width: 100%; min-width: unset; max-width: unset; }
    .clientes-container .form-cadastro { flex-direction: column; }
}

/* Fixes for client detail (ficha) page */
.ficha-cliente .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 10px 18px;
    min-width: 160px;
    margin: 8px 10px 8px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ficha-cliente a.btn { text-decoration: none; }
.ficha-cliente .btn-danger { background: #e74c3c; color: #fff; }

/* Make "Excluir" buttons use the logo's neutral gray instead of bright red.
   Target button elements with the .btn-danger class so badges remain unchanged. */
button.btn-danger, .btn.btn-danger {
    background: #aaa; /* neutral logo gray (matches .btn-logout) */
    color: #fff;
    border: none;
}
button.btn-danger:hover, .btn.btn-danger:hover {
    background: #888;
}

/* Make edit form grid responsive to avoid overflow */
@media (max-width: 920px) {
    .form-editar-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .form-editar-grid { grid-template-columns: 1fr; }
    .ficha-cliente .btn { width: 100%; margin-left: 0; }
}

/* Small visual refinements: subtle shadows, spacing and hover polish */
.form-editar-cliente-moderna {
    box-shadow: 0 8px 28px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.4);
}
.form-editar-campo input {
    transition: box-shadow 0.16s ease, transform 0.08s ease;
}
.form-editar-campo input:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(224,155,0,0.08);
}
.form-editar-botoes { gap: 18px; }
.ficha-cliente .btn {
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.ficha-cliente .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.09);
}
.clientes-lista-moderna .cliente-item-moderna { padding: 18px 26px; }
.cliente-botoes-moderna .btn { padding: 10px 14px; }

/* Slightly reduce intensity of primary yellow for better contrast on hover */
.btn, .btn-ghost, .btn-create-user, .btn.btn-primary {
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}
.btn:hover, .btn-ghost:hover, .btn-create-user:hover, .btn.btn-primary:hover {
    filter: brightness(0.95);
}

/* === Accent overrides: enforce yellow theme and fix dropdown option highlights === */
:root {
    --accent: #f7b500;
    --accent-600: #e0a800;
    --accent-rgba: rgba(247,181,0,0.12);
}

/* Buttons and primary actions
   Adjusted: use dark text on yellow, reduce heavy !important overrides so Vite/app.css can control small variants.
*/
.btn, .btn-ghost, .btn-create-user, .btn.btn-primary, .btn-submit-top, .btn-editar-plano, .btn-remover-plano {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important; /* white text for better legibility on yellow */
    box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
    padding: 8px 12px !important;
    min-width: unset !important;
}
.btn:hover, .btn-ghost:hover, .btn-create-user:hover, .btn.btn-primary:hover {
    background: var(--accent-600) !important;
    border-color: var(--accent-600) !important;
    filter: none !important;
}

/* Focus outlines and form accents */
.form-control:focus, .form-cadastro select:focus, .form-control:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 6px 18px var(--accent-rgba) !important;
}

/* Custom select / dropdown option styles (override previous highlights)
   Note: some browsers limit option styling; we apply strongest selectors available */
.form-cadastro select, select.form-control, .custom-select {
    -webkit-appearance: none;
    appearance: none;
}
.form-cadastro select option, .custom-select-option { background: transparent !important; color: inherit !important; }
.form-cadastro select option:checked, .form-cadastro select option[selected], .custom-select-option.active, .custom-select-option:hover {
    background: var(--accent) !important;
    color: #fff !important;
}
.custom-select.open { border-color: var(--accent) !important; box-shadow: 0 8px 28px rgba(247,181,0,0.12) !important; }
.custom-select-option:hover { background: var(--accent-600) !important; color: #fff !important; }

/* Card accent and badges */
.card-accent { background: linear-gradient(90deg,var(--accent),var(--accent-600)) !important; }
.tabela-clientes th, .tabela-planos th, .tabela-alertas th { background: var(--accent) !important; color: #fff !important; }
.role-badge, .badge.bg-warning { background: var(--accent) !important; color: #fff !important; }

/* small helper: ensure native select highlight in WebKit uses accent when open */
select::-ms-expand { display: none; }
select:focus::-ms-value { background: var(--accent) !important; color: #fff !important; }

/* end overrides */
