:root {
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --primary-hover: #1d4ed8;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --background: #ffffff; /* Clean white background */
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #f1f5f9;
    --radius: 12px;
    --radius-lg: 24px;
    --shadow: 0 4px 20px -5px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1);
    --sidebar-width: 250px;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    padding: 20px; /* Padding for the floating feel */
    box-sizing: border-box;
    align-items: stretch;
}

/* Hide scrollbar for everywhere */
* {
    font-family: 'Outfit', sans-serif;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--card-bg);
    height: calc(100dvh - 40px); /* Account for body padding */
    max-height: calc(100dvh - 40px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    z-index: 100;
    border: none;
    overflow: hidden;
    min-height: 0;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 30px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

/* ── Sidebar Nav ── */
.sidebar-nav {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.nav-item {
    padding: 14px 16px;
    border-radius: 12px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-item:hover {
    background: #f8fafc;
    color: var(--primary);
}

.nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.25);
}

.nav-item.active i {
    color: white !important;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: hidden;
    min-height: 0;
    min-width: 0;
}

/* ── Header ── */
.top-header {
    height: 64px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    margin-bottom: 0;
    border-bottom: none;
    flex-shrink: 0;
}

.header-search-box {
    position: relative;
    width: 320px;
}

.header-search-box input {
    width: 100%;
    padding: 9px 16px 9px 40px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    font-size: 13px;
    color: #64748b;
    box-sizing: border-box;
    transition: all 0.2s;
    box-shadow: none;
}

.header-search-box input:focus {
    outline: none;
    border-color: #6366f1;
    background: white;
}

.header-search-box i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 5px;
    border-radius: 40px;
    border: 1.5px solid #f1f5f9;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
    margin-right: 0;
    text-decoration: none;
    color: inherit;
}

.user-profile:hover { border-color: #c7d2fe; }

.user-profile:visited {
    color: inherit;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content Container */
.content-wrapper {
    padding: 10px 0 0 30px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    min-width: 0;
    overscroll-behavior: contain;
}

@supports not (height: 100dvh) {
    .sidebar {
        height: calc(100vh - 40px);
        max-height: calc(100vh - 40px);
    }

    .main-content {
        height: calc(100vh - 40px);
        max-height: calc(100vh - 40px);
    }
}

@media (max-width: 1024px) {
    body {
        display: block;
        min-height: 100vh;
        min-height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 16px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        max-height: none;
        margin-bottom: 16px;
    }

    .main-content {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .top-header {
        height: auto;
        padding: 0 8px 12px 8px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .header-search-box {
        width: 100%;
        order: 2;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .content-wrapper {
        padding: 10px 0 0;
        overflow: visible;
    }
}

/* Base Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 24px;
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

/* Dashboard specific metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.metric-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-title {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
}

.metric-trend {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up {
    color: var(--secondary);
}

.trend-down {
    color: var(--danger);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Date Filters */
.date-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.date-pill {
    padding: 8px 16px;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.date-pill.active,
.date-pill:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Progress bar in forms */
.form-progress-container {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-bottom: 24px;
    overflow: hidden;
}

.form-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.4s ease;
}

.logout-form {
    margin-top: auto;
    padding: 12px;
}

/* Timeline specific styling */
.timeline-container {
    position: relative;
    padding-left: 24px;
    margin-top: 24px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 0 1px #e2e8f0;
    z-index: 1;
}

.timeline-item.green::before {
    background: var(--secondary);
}

.timeline-item.orange::before {
    background: var(--warning);
}

.timeline-item.gray::before {
    background: var(--border);
    box-shadow: none;
}

/* Badges */
.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-blue {
    background: #e0f2fe;
    color: #0284c7;
}

.badge-green {
    background: #dcfce7;
    color: #16a34a;
}

.badge-gray {
    background: #f1f5f9;
    color: #64748b;
}

.badge-orange {
    background: #ffedd5;
    color: #ea580c;
}

/* Rich Text Editor Mock */
.rich-editor-toolbar {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: none;
    color: #475569;
}

.rich-editor-textarea {
    border: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    width: 100%;
    min-height: 120px;
    padding: 16px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

.rich-editor-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 700px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(40px) scale(0.9) rotateX(-10deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
    filter: blur(10px);
    opacity: 0;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1) rotateX(0);
    filter: blur(0);
    opacity: 1;
}

@keyframes modalItemSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-overlay.active .form-group {
    animation: modalItemSlide 0.4s ease forwards;
    opacity: 0;
}

.modal-overlay.active .form-group:nth-child(1) { animation-delay: 0.1s; }
.modal-overlay.active .form-group:nth-child(2) { animation-delay: 0.2s; }
.modal-overlay.active .form-group:nth-child(3) { animation-delay: 0.3s; }
.modal-overlay.active .form-group:nth-child(4) { animation-delay: 0.4s; }
.modal-overlay.active .form-group:nth-child(5) { animation-delay: 0.5s; }


.modal-header {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    padding: 24px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

.modal-body {
    padding: 32px;
}

/* Grid Layouts for Sidebar Lists */
.layout-split {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.sidebar-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 14px;
}

/* Action button small */
.btn-icon {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-icon:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Form Groups Icon integration */
.form-group-icon {
    position: relative;
}

.form-group-icon input,
.form-group-icon select,
.form-group-icon textarea {
    padding-left: 42px !important;
}

.form-group-icon .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 16px;
    transition: all 0.2s;
}

.form-group-icon textarea + .input-icon,
.form-group-icon.textarea-icon .input-icon {
    top: 18px;
    transform: none;
}


/* New Profile UI Components */
.profile-header-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.profile-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #f1f5f9;
}

.profile-main-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.profile-main-card::after {
    content: '\f2c2';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 120px;
    color: #f1f5f9;
    opacity: 0.5;
    z-index: 0;
}

.profile-info-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    z-index: 1;
}

.profile-large-avatar {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    border: 4px solid #f8fafc;
}

.profile-status-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-contact-info {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 8px;
}

.action-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 240px;
    z-index: 1;
}

.btn-outline {
    background: white;
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 10px;
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-outline.danger {
    color: #ef4444;
}

.btn-outline.danger:hover {
    background: #fef2f2;
    border-color: #fee2e2;
}

.stat-cards-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.mini-stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.stat-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.stat-icon-1 {
    background: #eff6ff;
    color: #2563eb;
}

.stat-icon-2 {
    background: #f0fdf4;
    color: #16a34a;
}

.stat-icon-3 {
    background: #fff7ed;
    color: #ea580c;
}

.stat-icon-4 {
    background: #fef2f2;
    color: #ef4444;
}

.stat-icon-5 {
    background: #faf5ff;
    color: #9333ea;
}

.stat-icon-6 {
    background: #fffbeb;
    color: #d97706;
}

.mini-stat-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.mini-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

.activity-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 24px;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.activity-item:hover {
    border-color: #e2e8f0;
    background: white;
    box-shadow: var(--shadow);
}

.activity-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid var(--border);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.activity-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.activity-time {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.goal-card {
    background: #003d7c;
    border-radius: 16px;
    padding: 24px;
    color: white;
    margin-bottom: 24px;
}

.goal-label {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.goal-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.goal-progress-box {
    margin-bottom: 16px;
}

.goal-progress-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: relative;
}

.goal-progress-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
}

.goal-target-text {
    font-size: 11px;
    text-align: right;
    margin-top: 6px;
    opacity: 0.9;
}

.goal-footer {
    font-size: 12px;
    font-style: italic;
    opacity: 0.8;
}

.assignments-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 24px;
}

.assignment-header {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 20px;
    color: #334155;
}

.assignment-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.assignment-row:last-child {
    border-bottom: none;
}

.assignment-label {
    font-size: 14px;
    color: #64748b;
}

.assignment-count {
    font-weight: 700;
    color: #1e293b;
}

.performer-badge {
    margin-top: 24px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #166534;
    font-size: 12px;
    font-weight: 600;
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border-left: 6px solid #e2e8f0;
}

.toast.active {
    transform: translateX(0);
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 800;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Toast Variants */
.toast.success {
    border-left-color: #10b981;
}

.toast.success .toast-icon {
    background: #ecfdf5;
    color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.error .toast-icon {
    background: #fef2f2;
    color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.warning .toast-icon {
    background: #fffbe6;
    color: #f59e0b;
}

.toast.info {
    border-left-color: #3b82f6;
}

.toast.info .toast-icon {
    background: #eff6ff;
    color: #3b82f6;
}

padding: 20px;
}

.stat-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.stat-icon-1 {
    background: #eff6ff;
    color: #2563eb;
}

.stat-icon-2 {
    background: #f0fdf4;
    color: #16a34a;
}

.stat-icon-3 {
    background: #fff7ed;
    color: #ea580c;
}

.stat-icon-4 {
    background: #fef2f2;
    color: #ef4444;
}

.stat-icon-5 {
    background: #faf5ff;
    color: #9333ea;
}

.stat-icon-6 {
    background: #fffbeb;
    color: #d97706;
}

.mini-stat-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.mini-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

.activity-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 24px;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.activity-item:hover {
    border-color: #e2e8f0;
    background: white;
    box-shadow: var(--shadow);
}

.activity-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid var(--border);
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.activity-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.activity-time {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.goal-card {
    background: #003d7c;
    border-radius: 16px;
    padding: 24px;
    color: white;
    margin-bottom: 24px;
}

.goal-label {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.goal-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.goal-progress-box {
    margin-bottom: 16px;
}

.goal-progress-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    position: relative;
}

.goal-progress-fill {
    height: 100%;
    background: white;
    border-radius: 4px;
}

.goal-target-text {
    font-size: 11px;
    text-align: right;
    margin-top: 6px;
    opacity: 0.9;
}

.goal-footer {
    font-size: 12px;
    font-style: italic;
    opacity: 0.8;
}

.assignments-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 24px;
}

.assignment-header {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 20px;
    color: #334155;
}

.assignment-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.assignment-row:last-child {
    border-bottom: none;
}

.assignment-label {
    font-size: 14px;
    color: #64748b;
}

.assignment-count {
    font-weight: 700;
    color: #1e293b;
}

.performer-badge {
    margin-top: 24px;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #166534;
    font-size: 12px;
    font-weight: 600;
}
/* Custom Searchable Dropdown Component */
.custom-select-container {
    position: relative;
    width: 100%;
}
.custom-select-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    background: #fff;
    transition: all 0.2s;
    box-sizing: border-box;
}
.custom-select-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.custom-select-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    z-index: 2;
}
.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}
.custom-select-dropdown.active {
    display: block;
    animation: customSelectSlideUp 0.2s ease-out;
}
@keyframes customSelectSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.custom-select-option {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.custom-select-option:hover {
    background: #f8fafc;
}
.custom-select-option .option-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef2ff;
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}
.custom-select-option .option-info {
    flex: 1;
    min-width: 0;
}
.custom-select-option .option-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.custom-select-option .option-role {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* ──────────────────────────────────────────────────────────── */
/* MODERN LIST FORMAT (TABLES) */
/* ──────────────────────────────────────────────────────────── */
.modern-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: transparent;
    margin-top: 16px;
}
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 13px;
    background: white;
}
.modern-table thead th {
    background: #4f46e5;
    color: white;
    font-weight: 600;
    padding: 16px;
    font-size: 13px;
    white-space: nowrap;
    border-bottom: none;
}
.modern-table thead th i.fa-sort {
    margin-left: 6px;
    opacity: 0.7;
    font-size: 11px;
    cursor: pointer;
}
.modern-table thead th:first-child { border-top-left-radius: 6px; }
.modern-table thead th:last-child { border-top-right-radius: 6px; }

.modern-table tbody tr {
    background: white;
    transition: background 0.2s;
}
.modern-table tbody tr:hover { background: #f8fafc; }
.modern-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}
.modern-table tbody tr:last-child td { border-bottom: none; }

.modern-checkbox {
    width: 16px; height: 16px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    accent-color: #4f46e5;
}

.modern-avatar-cell {
    display: flex; align-items: center; gap: 12px;
}
.modern-avatar {
    width: 32px; height: 32px;
    border-radius: 50%; object-fit: cover;
    background: #e0e7ff; color: #4f46e5;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.modern-name { font-weight: 700; color: #0f172a; font-size: 13px; }
.modern-subtext { font-size: 11px; color: #64748b; margin-top: 2px; }

.modern-badge {
    padding: 5px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 700; display: inline-block; white-space: nowrap;
}
.modern-badge-pending { background: #fef3c7; color: #d97706; }
.modern-badge-approved, .modern-badge-won { background: #dcfce7; color: #16a34a; }
.modern-badge-rejected, .modern-badge-lost { background: #fee2e2; color: #dc2626; }
.modern-badge-neutral { background: #f1f5f9; color: #475569; }

.modern-actions { display: flex; gap: 8px; align-items: center; }
.modern-action-btn {
    width: 30px; height: 30px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; cursor: pointer; background: transparent;
    transition: all 0.2s; text-decoration: none; border: none;
}
.modern-action-btn.approve { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: white; border: none; box-shadow: 0 4px 10px rgba(16,185,129,0.25); }
.modern-action-btn.approve:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(16,185,129,0.35); background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.modern-action-btn.reject { background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%); color: white; border: none; box-shadow: 0 4px 10px rgba(244,63,94,0.25); }
.modern-action-btn.reject:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(244,63,94,0.35); background: linear-gradient(135deg, #e11d48 0%, #be123c 100%); }
.modern-action-btn.view { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: white; border: none; box-shadow: 0 4px 10px rgba(37,99,235,0.25); }
.modern-action-btn.view:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(37,99,235,0.35); background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.modern-action-btn.edit { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); color: white; border: none; box-shadow: 0 4px 10px rgba(245,158,11,0.25); }
.modern-action-btn.edit:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(245,158,11,0.35); background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }
.modern-action-btn.delete { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: white; border: none; box-shadow: 0 4px 10px rgba(239,68,68,0.25); }
.modern-action-btn.delete:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(239,68,68,0.35); background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
