/* ZMIdentity Admin Shared Styles */

/* Fix header positioning to prevent content overlay */
.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 60px;
}

.sidebar {
    background-color: #f8f9fa;
    min-height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

/* Ensure main content area doesn't get hidden under header */
body {
    padding-top: 0;
}

main {
    margin-top: 0;
    padding-top: 0;
}

.nav-pills .nav-link.active {
    background-color: #667eea;
}

.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.stat-card {
    border-left: 4px solid #667eea;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
}

.table th {
    border-top: none;
    background-color: #f8f9fa;
    color: #495057; /* Dark gray text to ensure readability */
    font-weight: 600;
}

.badge {
    font-size: 0.75em;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Error message */
.error-message {
    color: #dc3545;
    text-align: center;
    padding: 1rem;
}

/* Success message */
.success-message {
    color: #198754;
    text-align: center;
    padding: 1rem;
}