/* =========================================
   TAXFluid - Elegant Accounting Software
   Modern, Clean, World-Class UI/UX
   ========================================= */

/* =========================================
   CSS Variables & Root Styles
   ========================================= */
:root {
    /* Primary Colors */
    --primary: #0a74ff;
    --primary-dark: #0860d4;
    --primary-light: #4a9bff;
    --primary-subtle: #e6f0ff;

    /* Secondary Colors */
    --secondary: #64748B;
    --secondary-dark: #475569;
    --secondary-light: #94A3B8;

    /* Status Colors */
    --success: #10B981;
    --success-subtle: #D1FAE5;
    --warning: #F59E0B;
    --warning-subtle: #FEF3C7;
    --danger: #EF4444;
    --danger-subtle: #FEE2E2;
    --info: #3B82F6;
    --info-subtle: #DBEAFE;

    /* Neutral Colors */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    /* Background */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;

    /* Sidebar */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
}

/* =========================================
   Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-secondary);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* =========================================
   LOGIN PAGE STYLES
   ========================================= */
.login-page {
    background: var(--bg-secondary);
    min-height: 100vh;
}

.login-container {
    min-height: 100vh;
}

/* Left Side - Branding */
.login-branding {
    background: linear-gradient(135deg, #052174 0%, #0a74ff 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* .login-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
} */

.branding-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-logo i {
    font-size: 2rem;
}

.login-branding h1 {
    line-height: 1.2;
}

.login-branding .lead {
    opacity: 0.9;
    font-size: 1.1rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-text h6 {
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-text p {
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 0;
}

.branding-footer {
    position: absolute;
    bottom: 2rem;
    left: 3rem;
    opacity: 0.7;
    font-size: 0.875rem;
}

/* Right Side - Login Form */
.login-form-container {
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-form-wrapper {
    width: 100%;
    max-width: 420px;
}

.brand-logo-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.brand-logo-mobile i {
    font-size: 2rem;
}

.login-header {
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.login-header p {
    color: var(--gray-500);
}

.login-form .form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.login-form .input-group-text {
    background: var(--bg-secondary);
    border: 1px solid var(--gray-200);
    border-right: none;
    color: var(--gray-400);
}

.login-form .form-control {
    border: 1px solid var(--gray-200);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.login-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.login-form .input-group .form-control {
    border-left: none;
}

.login-form .input-group .form-control:focus {
    border-left: none;
}

.login-form .input-group:focus-within .input-group-text {
    border-color: var(--primary);
}

.toggle-password {
    border: 1px solid var(--gray-200);
    border-left: none;
    background: var(--bg-secondary);
    color: var(--gray-400);
}

.toggle-password:hover {
    color: var(--gray-600);
    background: var(--gray-100);
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

.forgot-link:hover {
    color: var(--primary-dark);
}

.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.login-form .btn-primary {
    background: var(--primary);
    border: none;
    padding: 0.875rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.login-form .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.social-login {
    display: flex;
    gap: 1rem;
}

.social-login .btn {
    flex: 1;
    padding: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-login .btn:hover {
    background: var(--gray-50);
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.login-footer p {
    font-size: 0.875rem;
}

/* MFA Section */
.mfa-section {
    text-align: center;
}

.mfa-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.otp-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.otp-input {
    width: 50px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.resend-link,
.back-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
}

/* =========================================
   DASHBOARD LAYOUT
   ========================================= */
.dashboard-body {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--bg-primary);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition-slow);
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar .brand-logo {
    color: var(--primary);
    font-size: 1.25rem;
}

.sidebar .brand-logo i {
    font-size: 1.5rem;
}

.sidebar-toggle {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: var(--gray-500);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    display: block;
    padding: 0 1.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

.nav-list {
    list-style: none;
    padding-left: 0px;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.5rem;
    color: var(--gray-600);
    font-weight: 500;
    transition: var(--transition);
}

.nav-item a:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.nav-item.active a {
    background: var(--primary-subtle);
    color: var(--primary);
}

.nav-item a i {
    width: 20px;
    font-size: 1rem;
    text-align: center;
}

.nav-item .badge {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    background: var(--gray-100);
    color: var(--gray-600);
}

.nav-item .badge.badge-warning {
    background: var(--warning-subtle);
    color: var(--warning);
}

.nav-item .badge.badge-danger {
    background: var(--danger-subtle);
    color: var(--danger);
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.storage-info .progress {
    background: var(--gray-100);
    border-radius: 10px;
    overflow: hidden;
}

.storage-info .progress-bar {
    background: var(--primary);
    border-radius: 10px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: calc(100vw - var(--sidebar-width));
    overflow-x: hidden;
}

/* Top Header */
.top-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    min-width: 300px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.search-box i {
    color: var(--gray-400);
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    flex: 1;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.search-box input::placeholder {
    color: var(--gray-400);
}

.search-box kbd {
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    padding: 0.125rem 0.375rem;
    font-size: 0.7rem;
    color: var(--gray-500);
    font-family: inherit;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--gray-500);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.header-btn:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0.75rem;
    border: none;
    background: none;
    border-radius: var(--radius);
    transition: var(--transition);
}

.user-menu:hover {
    background: var(--gray-100);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-info {
    text-align: left;
}

.user-name {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.875rem;
    line-height: 1.2;
}

.user-role {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.user-menu .fa-chevron-down {
    font-size: 0.625rem;
    color: var(--gray-400);
}

/* Page Content */
.page-content {
    padding: 1.5rem;
    flex: 1;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--gray-500);
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* =========================================
   CARDS
   ========================================= */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Stat Cards */
.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: var(--transition);
}

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

.stat-card-body {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

.stat-change .text-muted {
    color: var(--gray-400) !important;
    font-weight: 400;
}

/* Small Stat Cards */
.stat-card-sm {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.stat-card-sm.clickable {
    cursor: pointer;
}

.stat-card-sm.clickable:hover {
    border-color: var(--primary);
}

.stat-icon-sm {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Background Colors */
.bg-primary {
    background: var(--primary) !important;
}

.bg-primary-subtle {
    background: var(--primary-subtle) !important;
}

.bg-success-subtle {
    background: var(--success-subtle) !important;
}

.bg-warning-subtle {
    background: var(--warning-subtle) !important;
}

.bg-danger-subtle {
    background: var(--danger-subtle) !important;
}

.bg-info-subtle {
    background: var(--info-subtle) !important;
}

.bg-secondary-subtle {
    background: var(--gray-100) !important;
}

/* =========================================
   CHARTS
   ========================================= */
.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* =========================================
   DEADLINES
   ========================================= */
.deadline-list {
    display: flex;
    flex-direction: column;
}

.deadline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.deadline-item:last-child {
    border-bottom: none;
}

.deadline-item:hover {
    background: var(--gray-50);
}

.deadline-date {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.deadline-item.urgent .deadline-date {
    background: var(--danger-subtle);
    color: var(--danger);
}

.deadline-item.warning .deadline-date {
    background: var(--warning-subtle);
    color: var(--warning);
}

.deadline-date .day {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.deadline-date .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 500;
}

.deadline-info {
    flex: 1;
    min-width: 0;
}

.deadline-info h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.125rem;
}

.deadline-info p {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0;
}

.deadline-badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 10px;
    background: var(--gray-100);
    color: var(--gray-600);
}

.deadline-badge.urgent {
    background: var(--danger-subtle);
    color: var(--danger);
}

.deadline-badge.warning {
    background: var(--warning-subtle);
    color: var(--warning);
}

/* =========================================
   TASKS
   ========================================= */
.task-list {
    display: flex;
    flex-direction: column;
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.task-item:last-child {
    border-bottom: none;
}

.task-item:hover {
    background: var(--gray-50);
}

.task-checkbox {
    margin-top: 2px;
}

.task-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    cursor: pointer;
}

.task-content {
    flex: 1;
    min-width: 0;
}

.task-content h6 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.375rem;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.task-priority {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

.task-priority.high {
    background: var(--danger-subtle);
    color: var(--danger);
}

.task-priority.medium {
    background: var(--warning-subtle);
    color: var(--warning);
}

.task-priority.low {
    background: var(--gray-100);
    color: var(--gray-600);
}

.task-due {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* =========================================
   CLIENT REQUEST LIST
   ========================================= */
.client-request-list {
    display: flex;
    flex-direction: column;
}

.client-request-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}

.client-request-item:last-child {
    border-bottom: none;
}

.client-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.client-avatar.blue {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.client-avatar.green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.client-avatar.purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.client-avatar.orange {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.request-info {
    flex: 1;
    min-width: 0;
}

.request-info h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.125rem;
}

.request-info p {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 0.125rem;
}

.request-time {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* =========================================
   ACTIVITY TIMELINE
   ========================================= */
.activity-timeline {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.activity-content strong {
    font-weight: 600;
    color: var(--gray-800);
}

.activity-time {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* =========================================
   TEAM CAPACITY
   ========================================= */
.team-capacity-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.team-member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.member-avatar.blue {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.member-avatar.green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.member-avatar.purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.member-info h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.125rem;
}

.member-info span {
    font-size: 0.75rem;
}

.member-capacity {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.375rem;
    width: 150px;
}

.capacity-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.capacity-bar .progress {
    flex: 1;
    height: 6px;
    background: var(--gray-100);
    border-radius: 10px;
}

.capacity-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    width: 32px;
    text-align: right;
}

.task-count {
    font-size: 0.7rem;
    color: var(--gray-400);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-secondary {
    border-color: var(--gray-300);
    color: var(--gray-700);
}

.btn-outline-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-800);
}

.btn-outline-secondary.active {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-800);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-ghost {
    background: none;
    border: none;
    color: var(--gray-400);
    padding: 0.25rem 0.5rem;
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-link {
    color: var(--primary);
    padding: 0;
}

.btn-link:hover {
    color: var(--primary-dark);
}

.btn-xs {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
}

/* Button Groups */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* =========================================
   TABLES
   ========================================= */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--gray-500);
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.table td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
}

.filter-group .form-select {
    min-width: 150px;
}

.table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.pagination .page-link {
    border: none;
    color: var(--gray-600);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    margin: 0 2px;
}

.pagination .page-link:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: var(--gray-300);
}

/* Client Cell */
.client-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.client-info .client-name {
    font-weight: 600;
    color: var(--gray-800);
    display: block;
}

.client-info .client-name:hover {
    color: var(--primary);
}

.client-info .client-id {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* Entity Badge */
.entity-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Service Tags */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.service-tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--primary-subtle);
    color: var(--primary);
}

.service-tag.more {
    background: var(--gray-100);
    color: var(--gray-500);
}

/* Assigned User */
.assigned-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.user-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.7rem;
}

.user-avatar-sm.blue {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.user-avatar-sm.green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

/* Status Badge */
.status-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 10px;
}

.status-badge.active {
    background: var(--success-subtle);
    color: var(--success);
}

.status-badge.prospect {
    background: var(--warning-subtle);
    color: var(--warning);
}

.status-badge.inactive {
    background: var(--gray-100);
    color: var(--gray-500);
}

/* =========================================
   DOCUMENTS PAGE
   ========================================= */
.folder-tree {
    display: flex;
    flex-direction: column;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
}

.folder-item:hover {
    background: var(--gray-50);
    color: var(--gray-800);
}

.folder-item.active {
    background: var(--primary-subtle);
    color: var(--primary);
}

.folder-item i {
    font-size: 1rem;
}

.folder-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--gray-400);
}

.folder-item.active .folder-count {
    color: var(--primary);
}

.quick-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: none;
    background: none;
    color: var(--gray-600);
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-align: left;
}

.filter-btn:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.filter-btn.active {
    background: var(--primary-subtle);
    color: var(--primary);
}

/* File Cell */
.file-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.file-icon.pdf {
    background: #FEE2E2;
    color: #DC2626;
}

.file-icon.excel {
    background: #D1FAE5;
    color: #059669;
}

.file-icon.word {
    background: #DBEAFE;
    color: #2563EB;
}

.file-info .file-name {
    font-weight: 500;
    color: var(--gray-800);
    display: block;
}

.file-info .file-version {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* Client Mini */
.client-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.avatar-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.6rem;
}

.avatar-sm.blue {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.avatar-sm.green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.avatar-sm.purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

/* Category Tags */
.category-tag {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.category-tag.tax {
    background: var(--primary-subtle);
    color: var(--primary);
}

.category-tag.bank {
    background: var(--success-subtle);
    color: var(--success);
}

.category-tag.engagement {
    background: var(--info-subtle);
    color: var(--info);
}

.category-tag.payroll {
    background: var(--warning-subtle);
    color: var(--warning);
}

.category-tag.advisory {
    background: #F3E8FF;
    color: #7C3AED;
}

.category-tag.uncategorized {
    background: var(--gray-100);
    color: var(--gray-600);
}

.category-tag.financial {
    background: #DCFCE7;
    color: #16A34A;
}

.category-tag.w2 {
    background: #FEE2E2;
    color: #DC2626;
}

/* Dropdown toggle styling for category and status */
.category-tag.dropdown-toggle,
.doc-status.dropdown-toggle {
    outline: none;
}

.category-tag.dropdown-toggle:hover,
.doc-status.dropdown-toggle:hover {
    opacity: 0.85;
}

.category-tag.dropdown-toggle::after,
.doc-status.dropdown-toggle::after {
    margin-left: 0.4em;
    font-size: 0.65em;
    vertical-align: middle;
}

/* Document Status */
.doc-status {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 10px;
}

.doc-status.new {
    background: var(--info-subtle);
    color: var(--info);
}

.doc-status.pending-review {
    background: var(--warning-subtle);
    color: var(--warning);
}

.doc-status.reviewed {
    background: var(--success-subtle);
    color: var(--success);
}

.doc-status.signed {
    background: #D1FAE5;
    color: #059669;
}

.doc-status.draft {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.upload-icon {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.upload-zone:hover .upload-icon {
    color: var(--primary);
}

/* =========================================
   KANBAN BOARD
   ========================================= */
.kanban-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    min-height: 0;
}

.page-content {
    overflow-x: hidden;
}

.kanban-column {
    min-width: 280px;
    max-width: 280px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}

.kanban-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.kanban-header h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.kanban-count {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    background: var(--gray-200);
    color: var(--gray-600);
}

.kanban-count.warning {
    background: var(--warning-subtle);
    color: var(--warning);
}

.kanban-count.success {
    background: var(--success-subtle);
    color: var(--success);
}

.kanban-cards {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    max-height: calc(100vh - 350px);
}

.kanban-card {
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.kanban-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.kanban-card.active {
    border-left: 3px solid var(--primary);
}

.kanban-card.waiting {
    border-left: 3px solid var(--warning);
}

.kanban-card.review {
    border-left: 3px solid var(--info);
}

.kanban-card.completed {
    opacity: 0.7;
}

.kanban-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.workflow-type {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.workflow-type.tax {
    background: var(--primary-subtle);
    color: var(--primary);
}

.workflow-type.bookkeeping {
    background: var(--success-subtle);
    color: var(--success);
}

.workflow-type.payroll {
    background: var(--warning-subtle);
    color: var(--warning);
}

.workflow-type.advisory {
    background: #F3E8FF;
    color: #7C3AED;
}

.kanban-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.375rem;
}

.kanban-card-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.kanban-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kanban-assignee .avatar-xs {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.6rem;
}

.kanban-assignee .avatar-xs.blue {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.kanban-assignee .avatar-xs.green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.kanban-assignee .avatar-xs.purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.kanban-due {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.kanban-completed {
    font-size: 0.75rem;
    color: var(--success);
}

.kanban-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.kanban-progress .progress {
    flex: 1;
    height: 4px;
    background: var(--gray-100);
    border-radius: 10px;
}

.progress-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-500);
}

.kanban-waiting-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--warning);
    margin-bottom: 0.75rem;
}

.kanban-review-info {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-stage {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--gray-400);
}

.review-stage i {
    font-size: 0.6rem;
}

.review-stage.active {
    color: var(--primary);
    font-weight: 600;
}

/* =========================================
   QUICK ACTIONS
   ========================================= */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.quick-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    color: var(--gray-600);
    transition: var(--transition);
}

.quick-action-item:hover {
    background: var(--primary-subtle);
    border-color: var(--primary);
    color: var(--primary);
}

.quick-action-item i {
    font-size: 1.5rem;
}

.quick-action-item span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* =========================================
   MODALS
   ========================================= */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

/* =========================================
   FORMS
   ========================================= */
.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 0.625rem 0.875rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.form-control-sm,
.form-select-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.875rem;
}

/* =========================================
   DROPDOWNS
   ========================================= */
.dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.dropdown-item:hover {
    background: var(--gray-100);
}

.dropdown-item.text-danger:hover {
    background: var(--danger-subtle);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--gray-100);
}

/* =========================================
   RESPONSIVE STYLES
   ========================================= */
@media (max-width: 1199.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .kanban-column {
        min-width: 260px;
        max-width: 260px;
    }
}

@media (max-width: 991.98px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box {
        min-width: 200px;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    html {
        font-size: 13px;
    }

    .page-content {
        padding: 1rem;
    }

    .stat-card-sm {
        flex-direction: column;
        text-align: center;
    }

    .table-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group {
        flex-wrap: wrap;
        width: 100%;
    }

    .filter-group .form-select {
        min-width: 100%;
    }

    .table-pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .kanban-board {
        flex-direction: column;
    }

    .kanban-column {
        min-width: 100%;
        max-width: 100%;
    }

    .kanban-cards {
        max-height: 300px;
    }
}

@media (max-width: 575.98px) {
    .search-box {
        display: none;
    }

    .search-box.mobile-show {
        display: flex;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        padding: 1rem;
        z-index: 100;
        border-bottom: 1px solid var(--gray-200);
    }

    .user-info {
        display: none !important;
    }

    .page-actions {
        width: 100%;
    }

    .page-actions .btn {
        flex: 1;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   SCROLLBAR STYLES
   ========================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* =========================================
   UTILITY CLASSES
   ========================================= */
.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-info {
    color: var(--info) !important;
}

.fw-semibold {
    font-weight: 600;
}

/* View Toggle */
.view-toggle .btn {
    padding: 0.375rem 0.625rem;
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumb-item a {
    color: var(--gray-500);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--gray-800);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--gray-400);
}

/* Badge overrides */
.badge {
    font-weight: 500;
}

.badge.bg-warning-subtle {
    color: var(--warning) !important;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 0.5rem;
}

/* =========================================
   Dashboard - Additional Sections
   ========================================= */

/* Document List */
.document-list {
    padding: 0;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.document-item:last-child {
    border-bottom: none;
}

.document-item:hover {
    background: var(--gray-50);
}

.document-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-info h6 {
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-info span {
    font-size: 0.75rem;
}

/* Invoice List */
.invoice-list {
    padding: 0;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}

.invoice-item:last-child {
    border-bottom: none;
}

.invoice-info h6 {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.125rem;
}

.invoice-info span {
    font-size: 0.8rem;
}

.invoice-amount {
    text-align: right;
}

.invoice-amount .amount {
    font-weight: 600;
    font-family: 'SF Mono', monospace;
    color: var(--gray-800);
    display: block;
    margin-bottom: 0.25rem;
}

/* Schedule List */
.schedule-list {
    padding: 1rem;
}

.schedule-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.schedule-item:last-child {
    margin-bottom: 0;
}

.schedule-time {
    text-align: right;
    min-width: 60px;
}

.schedule-time .time {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.85rem;
}

.schedule-time .duration {
    font-size: 0.7rem;
    color: var(--gray-400);
}

.schedule-content {
    flex: 1;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.schedule-content.border-success {
    border-left-color: var(--success);
}

.schedule-content.border-warning {
    border-left-color: var(--warning);
}

.schedule-content.border-info {
    border-left-color: var(--info);
}

.schedule-content h6 {
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.schedule-content span {
    font-size: 0.75rem;
}

/* Metric Card */
.metric-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.metric-info {
    flex: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    display: block;
}

.metric-value {
    font-weight: 700;
    color: var(--gray-800);
    margin: 0.25rem 0;
}

.metric-change {
    font-size: 0.75rem;
}

.metric-change.positive {
    color: var(--success);
}

.metric-change.negative {
    color: var(--danger);
}

/* Announcement List */
.announcement-list {
    padding: 0;
}

.announcement-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.announcement-content h6 {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.announcement-content p {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.announcement-time {
    font-size: 0.7rem;
    color: var(--gray-400);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    border: none;
    color: var(--gray-500);
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Avatar small sizes */
.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.avatar-sm.blue {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.avatar-sm.green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.avatar-sm.purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

/* Secondary subtle background */
.bg-secondary-subtle {
    background-color: var(--gray-100) !important;
}

/* =========================================
   CLIENT DETAIL PAGE
   ========================================= */

/* Client Profile Header */
.client-profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, #4F46E5 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.client-profile-header .client-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    border: 3px solid rgba(255,255,255,0.3);
}

.client-profile-header .client-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.client-profile-header .client-meta {
    opacity: 0.9;
    font-size: 0.875rem;
}

.client-profile-header .status-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.client-profile-header .status-badge.active::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* Profile Quick Stats */
.profile-quick-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.profile-stat {
    text-align: center;
}

.profile-stat .value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.profile-stat .label {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Profile Nav Tabs */
.profile-tabs {
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.profile-tabs .nav-link {
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.profile-tabs .nav-link:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.profile-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

/* Info Cards */
.info-card {
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}

.info-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-card-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.info-card-body {
    padding: 1.25rem;
}

/* Detail Rows */
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.detail-row .label {
    color: var(--gray-500);
    font-size: 0.85rem;
}

.detail-row .value {
    font-weight: 500;
    color: var(--gray-800);
    font-size: 0.85rem;
    text-align: right;
}

.detail-row .value.masked {
    font-family: monospace;
    letter-spacing: 1px;
}

/* Contact Cards */
.contact-card {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.contact-card:last-child {
    margin-bottom: 0;
}

.contact-card .contact-role {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: var(--primary-subtle);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.contact-card .contact-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0.5rem 0 0.25rem;
}

.contact-card .contact-info {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.contact-card .contact-pref {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.contact-card .contact-pref i {
    font-size: 0.6rem;
}

/* Engagement Cards */
.engagement-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.engagement-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.engagement-card .engagement-type {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.engagement-card .engagement-type.tax {
    background: #FEE2E2;
    color: #DC2626;
}

.engagement-card .engagement-type.bookkeeping {
    background: #DBEAFE;
    color: #2563EB;
}

.engagement-card .engagement-type.payroll {
    background: #D1FAE5;
    color: #059669;
}

.engagement-card .engagement-type.advisory {
    background: #FEF3C7;
    color: #D97706;
}

.engagement-card .engagement-title {
    font-weight: 600;
    margin: 0.5rem 0 0.25rem;
}

.engagement-card .engagement-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.engagement-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.engagement-status.active {
    background: #D1FAE5;
    color: #059669;
}

.engagement-status.pending {
    background: #FEF3C7;
    color: #D97706;
}

/* Client Detail Document List */
.client-detail .document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.client-detail .document-item:hover {
    background: var(--gray-50);
}

.client-detail .document-item:last-child {
    border-bottom: none;
}

.client-detail .document-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.client-detail .document-icon.pdf {
    background: #FEE2E2;
    color: #DC2626;
}

.client-detail .document-icon.excel {
    background: #D1FAE5;
    color: #059669;
}

.client-detail .document-icon.word {
    background: #DBEAFE;
    color: #2563EB;
}

.client-detail .document-icon.image {
    background: #F3E8FF;
    color: #9333EA;
}

.client-detail .document-info {
    flex: 1;
}

.client-detail .document-info .doc-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-800);
}

.client-detail .document-info .doc-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.document-version {
    font-size: 0.7rem;
    background: var(--gray-100);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--gray-600);
}

/* Client Detail Activity Timeline */
.client-detail .activity-timeline {
    position: relative;
    padding-left: 1.5rem;
}

.client-detail .activity-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.client-detail .activity-item {
    position: relative;
    padding-bottom: 1.25rem;
}

.client-detail .activity-item:last-child {
    padding-bottom: 0;
}

.client-detail .activity-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--gray-300);
}

.client-detail .activity-item.success::before {
    border-color: #22C55E;
    background: #22C55E;
}

.client-detail .activity-item.warning::before {
    border-color: #F59E0B;
    background: #F59E0B;
}

.client-detail .activity-item.info::before {
    border-color: var(--primary);
    background: var(--primary);
}

.client-detail .activity-content {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
}

.client-detail .activity-content .activity-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.client-detail .activity-content .activity-desc {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.client-detail .activity-content .activity-time {
    font-size: 0.7rem;
    color: var(--gray-400);
}

/* Request Status */
.request-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.request-item:last-child {
    border-bottom: none;
}

.request-status-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.request-status-icon.requested {
    background: #FEF3C7;
    color: #D97706;
}

.request-status-icon.uploaded {
    background: #DBEAFE;
    color: #2563EB;
}

.request-status-icon.reviewed {
    background: #D1FAE5;
    color: #059669;
}

.request-info {
    flex: 1;
}

.request-info .request-title {
    font-weight: 500;
    font-size: 0.85rem;
}

.request-info .request-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Notes Section */
.note-item {
    background: #FFFBEB;
    border-left: 3px solid #F59E0B;
    padding: 1rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 0.75rem;
}

.note-item .note-text {
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.note-item .note-meta {
    font-size: 0.7rem;
    color: var(--gray-500);
}

/* Quick Actions Bar */
.quick-actions-bar {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--gray-700);
    transition: var(--transition);
    min-width: 180px;
    flex: 1;
}

.quick-action-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--gray-800);
}

.quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.quick-action-icon.primary {
    background: var(--primary-subtle);
    color: var(--primary);
}

.quick-action-icon.success {
    background: var(--success-subtle);
    color: var(--success);
}

.quick-action-icon.warning {
    background: var(--warning-subtle);
    color: var(--warning);
}

.quick-action-icon.danger {
    background: var(--danger-subtle);
    color: var(--danger);
}

.quick-action-icon.info {
    background: var(--info-subtle);
    color: var(--info);
}

.quick-action-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.quick-action-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-800);
}

.quick-action-desc {
    font-size: 0.7rem;
    color: var(--gray-500);
}

/* Legacy Quick Action Button (keeping for compatibility) */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-700);
    transition: var(--transition);
}

.quick-action-btn:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
    color: var(--primary);
}

.quick-action-btn i {
    font-size: 1.25rem;
}

.quick-action-btn span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive Quick Actions */
@media (max-width: 991.98px) {
    .quick-actions-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .quick-action-card {
        min-width: 160px;
        flex: 0 0 auto;
    }
}

@media (max-width: 575.98px) {
    .main-content{
        max-width: 100%;
     }
    .quick-action-card {
        padding: 0.75rem 1rem;
        min-width: 140px;
    }

    .quick-action-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .quick-action-label {
        font-size: 0.8rem;
    }

    .quick-action-desc {
        display: none;
    }
}

/* Avatar XS Size */
.avatar-xs {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.6rem;
    flex-shrink: 0;
}

.avatar-xs.blue {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.avatar-xs.green {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.avatar-xs.purple {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}
