/* ------------------------------
   SaaS Page Header
------------------------------ */

.saas-page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.saas-page-subtitle {
    font-size: 0.85rem;
    color: #64748b;
}

/* ------------------------------
   SaaS Buttons
------------------------------ */

.saas-btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
}

.saas-btn-primary:hover {
    background: #1d4ed8;
}

.saas-btn-secondary {
    background: #e2e8f0;
    color: #334155;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
}

.saas-btn-secondary:hover {
    background: #cbd5e1;
}

/* ------------------------------
   SaaS Card
------------------------------ */

.saas-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.saas-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.saas-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    margin: 0;
}

.saas-card-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

/* ------------------------------
   SaaS Table
------------------------------ */

.saas-table-wrapper {
    overflow-x: auto;
}

.saas-table {
    width: 100%;
    border-collapse: collapse;
}

.saas-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.saas-table td {
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

.saas-table tr:hover {
    background: #f8fafc;
}

.saas-table-empty {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}
/* ------------------------------
   SaaS User Table Rows
------------------------------ */

.saas-user-row:hover {
    background: #f8fafc;
}

/* Muted text */
.saas-td-muted {
    color: #64748b;
    font-size: 0.85rem;
}

/* Strong username */
.saas-td-strong {
    font-weight: 700;
    color: #2563eb;
}

/* Role badges */
.saas-role-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.saas-role-badge.admin {
    background: #fee2e2;
    color: #b91c1c;
}

.saas-role-badge.user {
    background: #dbeafe;
    color: #1e40af;
}

/* Italic text */
.saas-italic {
    font-style: italic;
    color: #94a3b8;
}

/* Action buttons */
.saas-btn-icon {
    background: #f1f5f9;
    border: none;
    padding: 6px 8px;
    border-radius: 8px;
    color: #475569;
    margin-right: 6px;
}

.saas-btn-icon:hover {
    background: #e2e8f0;
}

.saas-btn-icon-danger {
    background: #fee2e2;
    border: none;
    padding: 6px 8px;
    border-radius: 8px;
    color: #b91c1c;
}

.saas-btn-icon-danger:hover {
    background: #fecaca;
}

/* Root badge */
.saas-root-badge {
    background: #e2e8f0;
    color: #475569;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}
/* ------------------------------
   SaaS Add User Modal
------------------------------ */

.saas-modal {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

/* Header */
.saas-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.saas-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
}

.saas-modal-close {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: #64748b;
    cursor: pointer;
}




.saas-form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
    display: block;
}

.saas-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.85rem;
    background: #ffffff;
}

.saas-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px #dbeafe;
}

/* Footer */
.saas-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Buttons */
.saas-btn-primary {
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    border: none;
    padding: 8px 16px;
    font-weight: 600;
}

.saas-btn-primary:hover {
    background: #1d4ed8;
}

.saas-btn-secondary {
    background: #e2e8f0;
    color: #334155;
    border-radius: 8px;
    border: none;
    padding: 8px 16px;
    font-weight: 600;
}

.saas-btn-secondary:hover {
    background: #cbd5e1;
}
