/* ===== DC AGENTS BASE STYLES ===== */
/* This file contains minimal base styles that don't belong in theme or layout files */

/* Navbar brand spacing */
.navbar-brand {
    padding-left: 1rem;
}

/* Profile picture in navbar */
.profile-picture {
    margin-right: 8px;
}

/* ===== SIDEBAR SUBMENU ITEMS ===== */
.nav-item.nav-subitem {
    padding-left: 44px;
    font-size: 0.875rem;
}

.nav-item.nav-subitem i {
    font-size: 0.8rem;
}

/* Sidebar subsection titles (e.g., Overzicht, Rollen, Disciplines) */
.nav-subsection-title {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
    padding: 12px 20px 6px 44px;
    margin-top: 4px;
}

/* Hide subsection titles when sidebar is collapsed */
.sidebar.collapsed .nav-subsection-title {
    display: none;
}

/* Sidebar item count badges */
.nav-item-count {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.nav-item.active .nav-item-count {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Hide count badges when sidebar is collapsed */
.sidebar.collapsed .nav-item-count {
    display: none;
}

/* Collapsible submenu container */
.nav-submenu {
    display: none;
    overflow: hidden;
}

.nav-submenu.expanded {
    display: block;
}

/* Hide submenu when sidebar is collapsed */
.sidebar.collapsed .nav-submenu {
    display: none;
}

/* ===== USER MANAGEMENT PAGE ===== */

/* Page Layout */
.um-page {
    min-height: 100%;
}

/* Page Header */
.um-page-header {
    background: white;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: -48px -32px 32px -32px;
}

.um-page-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.um-page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dc-dark-blue);
    margin: 0;
}

.um-page-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.um-page-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Search Form */
.um-search-form {
    display: flex;
    gap: 8px;
}

.um-search-form input {
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--dc-dark-blue);
    font-family: inherit;
    min-width: 200px;
}

.um-search-form input::placeholder {
    color: #9ca3af;
}

.um-search-form input:focus {
    outline: none;
    border-color: var(--dc-blue);
    background: white;
}

.um-search-form button {
    padding: 10px 14px;
    background: var(--dc-dark-blue);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
}

.um-search-form button:hover {
    background: var(--dc-blue);
}

/* Page Content */
.um-page-content {
    padding: 0;
}

/* Button Styles */
.btn-outline-um {
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline-um:hover {
    border-color: var(--dc-dark-blue);
    color: var(--dc-dark-blue);
    text-decoration: none;
}

/* Primary button variant */
.btn-primary-um {
    padding: 10px 20px;
    border: 1px solid var(--dc-dark-blue);
    background: var(--dc-dark-blue);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary-um:hover {
    background: var(--dc-blue);
    border-color: var(--dc-blue);
    color: white;
}

/* Form actions container */
.um-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

/* User Cards Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

/* User Card - Luxury Style */
.user-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

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

.user-card-header {
    background: linear-gradient(135deg, var(--dc-dark-blue) 0%, #1a3a5c 100%);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(223, 202, 156, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.user-card-header-info {
    flex: 1;
    min-width: 0;
}

.user-card-name {
    font-size: 1.0625rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-email {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    font-family: 'Roboto Mono', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    flex-shrink: 0;
}

.user-card-status.active {
    background: #22c55e;
}

.user-card-status.inactive {
    background: #ef4444;
}

/* Card Body */
.user-card-body {
    padding: 20px 24px;
}

.user-card-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.user-card-info-row:last-child {
    border-bottom: none;
}

.user-card-info-label {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.user-card-info-value {
    font-size: 0.875rem;
    color: var(--dc-dark-blue);
    font-weight: 600;
}

/* Role Badge */
.um-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.um-role-badge.admin {
    background: linear-gradient(135deg, rgba(223, 202, 156, 0.2), rgba(223, 202, 156, 0.1));
    color: #8b6914;
    border: 1px solid rgba(223, 202, 156, 0.3);
}

.um-role-badge.manager {
    background: rgba(25, 62, 130, 0.1);
    color: var(--dc-blue);
    border: 1px solid rgba(25, 62, 130, 0.2);
}

.um-role-badge.employee {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e5e7eb;
}

/* Card Footer */
.user-card-footer {
    padding: 16px 24px;
    background: #fafbfc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.supervisor-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.supervisor-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.supervisor-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: #64748b;
    text-decoration: none;
}

.supervisor-link:hover {
    color: var(--dc-blue);
}

.user-card-actions {
    display: flex;
    gap: 8px;
}

.um-action-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.um-action-btn:hover {
    border-color: var(--dc-blue);
    color: var(--dc-blue);
    background: rgba(25, 62, 130, 0.03);
}

.um-action-btn.danger:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.03);
}

/* Empty State */
.um-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.um-empty-state i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 16px;
}

.um-empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dc-dark-blue);
    margin-bottom: 8px;
}

.um-empty-state p {
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .users-grid {
        grid-template-columns: 1fr;
    }

    .um-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .um-page-header-right {
        width: 100%;
    }

    .um-search-form {
        flex: 1;
    }

    .um-search-form input {
        min-width: 0;
        flex: 1;
    }
}
