
/* Super Admin Tabs */
.sa-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #e5e7eb;
    width: 100%;
}

.sa-tab {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sa-tab:hover {
    color: #111827;
}

.sa-tab.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

.sa-tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

.sa-tab-content.hidden {
    display: none;
}

/* Tenant Grid Styles (Clean & Simple) */
.tenant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tenant-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: box-shadow 0.2s;
}

.tenant-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.tenant-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tenant-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.tenant-info p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.tenant-stats {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.tenant-stat-item {
    flex: 1;
}

.tenant-stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
}

.tenant-stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.tenant-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    line-height: 1;
}

.badge-gold { background: #fffbeb; color: #b45309; border: 1px solid #fcd34d; }
.badge-blue { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.badge-gray { background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; }

.badge-green { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-red { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-purple { background: #f3e8ff; color: #7e22ce; border: 1px solid #d8b4fe; }

/* Modal Improvements */
.modal-content-large {
    max-width: 800px;
    width: 90%;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-bottom: 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.025em;
}

.modal-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin-top: 6px;
    margin-bottom: 0;
}

.btn-close-modal {
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close-modal:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Modal Table Customization */
.modal-table-container {
    max-height: 500px;
    overflow-y: auto;
    margin: 0 -24px; /* Bleed out to edge */
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
}

.modal-table thead th {
    background-color: #f9fafb;
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 24px;
    text-align: left;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s;
}

.modal-table tbody tr:hover {
    background-color: #f9fafb;
}

.modal-table td {
    padding: 16px 24px;
    vertical-align: middle;
    color: #374151;
    font-size: 0.95rem;
}

/* Modal User Table Styles */
.user-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #e0e7ff;
    color: #4f46e5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.user-info-text {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #111827;
    font-size: 0.95rem;
}

.user-email {
    font-size: 0.85rem;
    color: #6b7280;
}

.status-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
}

.status-cell.active {
    background-color: #ecfdf5;
    color: #065f46;
}

.status-cell.inactive {
    background-color: #fef2f2;
    color: #991b1b;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.status-dot.active { background-color: currentColor; } /* inherited */
.status-dot.inactive { background-color: currentColor; } /* inherited */

.modal-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Modal Form Styles */
.modal-form-group {
    margin-bottom: 20px;
}

.modal-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.modal-form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.modal-form-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}



/* Action Buttons */
.btn-icon-soft {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #6b7280;
    background: transparent;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-icon-soft:hover {
    background: #f3f4f6;
    color: #111827;
}

.btn-icon-soft.danger:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}
