/* File: css/permissions-styles.css */

.btn-entra {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
}

.help-text {
    color: var(--secondary-text);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Role explainer */
.roles-explainer {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.role-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.role-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    min-width: 90px;
    text-align: center;
}

.role-dashboard {
    background: #e8f4fd;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
}

.role-wisetrack {
    background: #f3e8fd;
    color: #6b46c1;
    border: 1px solid #d6bcfa;
}

.role-customer-support {
    background: #e6fffa;
    color: #2c7a7b;
    border: 1px solid #b2f5ea;
}

.role-admin {
    background: #fff3e0;
    color: #9c4221;
    border: 1px solid #ffe0b2;
}

.role-none {
    background: var(--light-gray);
    color: var(--secondary-text);
    border: 1px solid var(--border-color);
}

.role-desc {
    font-size: 0.875rem;
    color: var(--text-color);
}

/* Setup steps */
.setup-steps {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem 1.25rem;
}

.setup-steps h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.setup-steps ol {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-color);
    line-height: 1.8;
}

.setup-steps code {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 0.1rem 0.35rem;
    font-size: 0.8rem;
    font-family: monospace;
}

/* User table role badges */
.user-roles {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.panel-loading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 0;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.panel-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #c53030;
    font-size: 0.875rem;
}

.empty-row { text-align: center; color: #aaa; padding: 1rem; }
.last-login-cell { font-size: 0.8rem; color: var(--secondary-text); }
