/* Modern CSS Variables */
:root {
    /* Neutral Color Palette - Warmer Grays */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Primary Colors - Modern Blue */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;

    /* Semantic Colors */
    --success-400: #4ade80;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --warning-400: #fbbf24;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --error-400: #f87171;
    --error-500: #ef4444;
    --error-600: #dc2626;

    /* Background Hierarchy */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;

    /* Text Hierarchy */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-tertiary: var(--gray-500);

    /* Spacing System (4px base) */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.25rem;  /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-10: 2.5rem;  /* 40px */
    --space-12: 3rem;    /* 48px */

    /* Border Radius */
    --radius-sm: 0.25rem;  /* 4px */
    --radius: 0.375rem;    /* 6px */
    --radius-md: 0.5rem;   /* 8px */
    --radius-lg: 0.75rem;  /* 12px */
    --radius-xl: 1rem;     /* 16px */

    /* Modern 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);

    /* Typography Scale */
    --text-xs: 0.75rem;   /* 12px */
    --text-sm: 0.8125rem; /* 13px */
    --text-base: 0.875rem; /* 14px */
    --text-md: 0.9375rem; /* 15px */
    --text-lg: 1rem;      /* 16px */
    --text-xl: 1.125rem;  /* 18px */
    --text-2xl: 1.25rem;  /* 20px */
    --text-3xl: 1.5rem;   /* 24px */
}

/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", sans-serif, "Noto Sans KR";
    font-size: var(--text-base);
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    background: var(--bg-secondary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 화이트보드 전용 배경 */
body:has(.whiteboard-container) {
    background: #f5f5f5;
}

/* 로그인 페이지 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
}

.login-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--gray-100);
}

.login-card h1 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.login-card p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-8);
    font-size: var(--text-sm);
}

.form-control {
    background: var(--bg-primary);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-base);
    transition: all 150ms ease;
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.btn-login {
    background: var(--primary-600);
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    font-size: var(--text-base);
    width: 100%;
    transition: all 150ms ease;
    cursor: pointer;
}

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

/* 대시보드 */
.dashboard {
    min-height: 100vh;
    background: var(--bg-secondary);
    padding: 0;
}

.dashboard-header {
    background: var(--bg-primary);
    padding: var(--space-4) 0;
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: var(--space-5);
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 var(--space-6) var(--space-6) var(--space-6);
    grid-template-areas: 
        "tasks calendar chat-members feed";
}

/* 그리드 영역 지정 */
.task-area { grid-area: tasks; }
.calendar-area { grid-area: calendar; }
.chat-members-area { grid-area: chat-members; }
.feed-area { 
    grid-area: feed;
    display: block !important;
}

/* 카드 공통 스타일 */
.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    height: 800px;
    transition: all 0.3s ease;
    border: 1px solid #e8ecf1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.dashboard-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #d0d7e1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f3f7;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    letter-spacing: -0.02em;
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-1);
}

.more-btn {
    background: none;
    border: none;
    font-size: var(--text-lg);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: 50%;
    color: var(--text-tertiary);
    transition: all 150ms ease;
}

.more-btn:hover {
    background: var(--gray-100);
}

/* 탭 스타일 */
.nav-tabs {
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--space-5);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    padding: var(--space-3) 0;
    margin-right: var(--space-8);
    border-bottom: 2px solid transparent;
    background: none;
    transition: all 150ms ease;
    cursor: pointer;
}

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

.nav-tabs .nav-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--primary-500);
    font-weight: 500;
}

/* 기본 아바타 및 메시지 스타일 */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

/* 기본 chat-messages 스타일은 chat-messages-container에서 재정의됨 */

.message {
    margin-bottom: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    max-width: 70%;
    font-size: var(--text-base);
    line-height: 1.5;
}

.message.own {
    background: var(--primary-600);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: var(--radius-sm);
}

.message.other {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    border-bottom-left-radius: var(--radius-sm);
}

.message .small {
    font-size: var(--text-xs);
    opacity: 0.8;
}

/* 캘린더 */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-1);
    margin-bottom: var(--space-5);
    padding: var(--space-4) 0;
}

.calendar-day {
    text-align: center;
    padding: var(--space-2);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 150ms ease;
    position: relative;
    min-height: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.calendar-day:hover {
    background-color: var(--gray-100);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.calendar-day.today {
    background-color: var(--primary-500);
    color: white;
    font-weight: 500;
}

.calendar-day.today .day-number {
    color: white;
}

.calendar-day.other-month {
    color: var(--gray-400);
}

.calendar-day.has-tasks {
    cursor: pointer;
}

.day-number {
    font-size: var(--text-sm);
    font-weight: 500;
}

.day-tasks {
    display: flex;
    gap: 2px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.task-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.task-dot.task-completed {
    background-color: var(--success-500);
}

.task-dot.task-pending {
    background-color: var(--primary-500);
}

.task-dot.task-delayed {
    background-color: var(--warning-500);
}

/* 오늘 날짜의 업무 점들은 흰색 테두리 추가로 가시성 향상 */
.calendar-day.today .task-dot {
    box-shadow: 0 0 0 1.5px white;
}

.more-tasks {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-weight: 500;
}

.weekday-header {
    text-align: center;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    padding: var(--space-2) 0;
}

/* 월 선택 드롭다운 */
.month-selector {
    transition: all 0.2s ease;
    padding: 2px 8px;
    border-radius: 4px;
}

.month-selector:hover {
    background: #f0f0f0;
    color: #667eea;
}

.month-picker-dropdown {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4);
    z-index: 1000;
    min-width: 280px;
}

.month-picker-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.month-picker-header .year-input {
    width: 80px;
    text-align: center;
    font-weight: 600;
}

.month-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.month-picker-item {
    padding: var(--space-2);
    border: 1px solid var(--gray-200);
    background: var(--bg-primary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 150ms ease;
    font-size: var(--text-base);
}

.month-picker-item:hover {
    background: var(--gray-100);
    border-color: var(--primary-500);
    color: var(--primary-600);
}

.month-picker-item.active {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
}

.month-picker-footer {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}

/* 캘린더 범례 */
.calendar-legend {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #f8fafb;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* 월별 업무 목록 */
.month-task-list {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

.month-task-item {
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.month-task-item:hover {
    background-color: #f8fafc;
    border-color: #2272d2 !important;
}

.month-task-item.task-completed {
    background: #f0fdf4;
    border-color: #10b981;
}

.month-task-item.task-pending {
    background: #eff6ff;
    border-color: #cbd5e1;
}

.month-task-item.task-delayed {
    background: #fffbeb;
    border-color: #f59e0b;
}

/* 토글 버튼 */
.toggle-summary {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 150ms ease;
}

.toggle-summary.active {
    background-color: var(--primary-500);
    border-color: var(--primary-500);
    color: white;
}

/* 월별 요약 뷰 */
.month-summary-view {
    padding: 0.75rem;
    background: #f8fafb;
    border-radius: 8px;
    height: calc(800px - 200px);
    overflow-y: auto;
    flex: 1;
}

.summary-stats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: var(--space-3) var(--space-2);
    background: var(--bg-primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid transparent;
    transition: all 150ms ease;
}

.stat-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.stat-item.stat-pending {
    border-color: var(--primary-500);
}

.stat-item.stat-delayed {
    border-color: var(--warning-500);
}

.stat-item.stat-completed {
    border-color: var(--success-500);
}

.stat-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin: 0 auto 0.5rem;
}

.stat-item.stat-pending .stat-icon {
    background: #eff6ff;
    color: #3b82f6;
}

.stat-item.stat-delayed .stat-icon {
    background: #fffbeb;
    color: #f59e0b;
}

.stat-item.stat-completed .stat-icon {
    background: #f0fdf4;
    color: #10b981;
}

.stat-number {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1;
}

.summary-progress {
    background: var(--bg-primary);
    padding: var(--space-3);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-weight: 500;
}

.progress {
    height: 6px;
    background-color: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    transition: width 0.3s ease;
}

/* 작업 피드 히스토리 카드 */
.history-list {
    height: 600px;
    overflow-y: auto;
    padding-top: 5px;
}

.history-card {
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    cursor: pointer;
    transition: all 150ms ease;
}

.history-card:hover {
    border-color: var(--primary-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.history-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

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

.file-icon {
    background: #f0fdf4;
    color: #10b981;
}

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

.history-title {
    font-weight: 500;
    font-size: var(--text-base);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-subtitle {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.history-time {
    text-align: right;
    flex-shrink: 0;
}

.time-text {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.history-content {
    margin-top: 0.5rem;
    flex: 1;
    overflow-y: auto;
}

.message-preview {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.file-info {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    gap: var(--space-4);
}

.file-size {
    font-weight: 500;
}

.file-uploader {
    color: #9ca3af;
}

.history-actions {
    gap: 0.5rem;
}

/* 채팅 히스토리 카드 특별 스타일 */
.chat-history-card:hover .chat-icon {
    background: #3b82f6;
    color: white;
}

/* 파일 히스토리 카드 특별 스타일 */
.file-history-card:hover .file-icon {
    background: #10b981;
    color: white;
}

/* 업무 스페이스 관리 페이지 */
.workspace-manager {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
}

.workspace-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.workspace-content {
    padding: 2rem 0;
}

.workspace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.workspace-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    transition: all 200ms ease;
    cursor: pointer;
    border: 1px solid var(--gray-100);
}

.workspace-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(59, 130, 246, 0.2);
}

.workspace-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.workspace-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.workspace-actions .btn-ghost {
    background: none;
    border: none;
    color: #6b7280;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.workspace-actions .btn-ghost:hover {
    background: #f3f4f6;
    color: #374151;
}

.workspace-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.workspace-description {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.5;
    margin-bottom: var(--space-5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.workspace-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #6b7280;
    font-size: 0.8rem;
}

.stat-item i {
    font-size: 0.875rem;
}

.workspace-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.workspace-members {
    display: flex;
    align-items: center;
}

.member-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border: 2px solid white;
    margin-left: -6px;
    position: relative;
}

.member-avatar:first-child {
    margin-left: 0;
}

.member-avatar.more {
    background: #e5e7eb;
    color: #6b7280;
    font-size: 0.6rem;
}

.status-badge {
    padding: var(--space-1) var(--space-3);
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 500;
}

.status-badge.active {
    background: rgb(34 197 94 / 0.1);
    color: var(--success-600);
}

.status-badge.inactive {
    background: rgb(239 68 68 / 0.1);
    color: var(--error-600);
}

.status-badge.archived {
    background: var(--gray-100);
    color: var(--text-secondary);
}

/* 모달 스타일 */
.icon-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.icon-option {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 150ms ease;
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

.icon-option:hover {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.icon-option.active {
    border-color: var(--primary-500);
    background: var(--primary-500);
    color: white;
}

.color-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-option.active {
    border-color: white;
    box-shadow: 0 0 0 2px #3b82f6;
}

.empty-state {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
}

/* 반응형 */
@media (max-width: 768px) {
    .workspace-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .workspace-card {
        padding: 1rem;
    }
    
    .workspace-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* 구성원 */
.member-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    transition: background-color 0.2s;
    cursor: pointer;
}

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

.role-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    text-transform: uppercase;
}

.role-badge.admin {
    background: #ffe6e6;
    color: #d32f2f;
}


.role-badge.user {
    background: #e8f5e8;
    color: #2e7d32;
}

/* 로딩 및 에러 */
.loading, .empty-message {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    padding: 2rem;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid #ffcdd2;
}

/* 헤더 스타일 개선 */
.dashboard-header .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.02em;
}

.dashboard-header .fw-semibold {
    font-size: 0.95rem;
    color: #475569;
}

.dashboard-header .btn-outline-danger {
    border: 1px solid var(--error-500);
    color: var(--error-500);
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-weight: 500;
    background: transparent;
    transition: all 150ms ease;
    cursor: pointer;
}

.dashboard-header .btn-outline-danger:hover {
    background-color: var(--error-500);
    border-color: var(--error-600);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* 탭 스타일 개선 */
.nav-tabs {
    border-bottom: 2px solid #f0f3f7;
}

.nav-tabs .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 0;
    margin-right: 1.5rem;
}

/* 빈 상태 개선 */
.empty-message, .loading {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

/* 역할 배지 개선 */
.role-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

/* 피드 컴포넌트 */
.feed-card {
    height: 800px;
    display: flex;
    flex-direction: column;
}

.feed-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--gray-200);
    flex-wrap: wrap;
}

/* 제목 영역 */
.feed-card .card-header > div:first-child {
    flex-shrink: 0;
}

/* 필터 컨트롤 영역 */
.feed-card .feed-controls {
    flex: 1;
    justify-content: flex-end;
    min-width: 300px;
}

/* Feed Controls - 필터 스타일 통일 */
.feed-controls {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.date-filter,
.feed-search {
    flex: 1;
    min-width: 0;
}

.date-filter {
    max-width: 180px;
}

.feed-search {
    max-width: 245px;
}

/* 동일한 높이와 스타일로 통일 */
.feed-controls .form-select,
.feed-controls .form-control,
.date-filter select,
.feed-search input {
    height: 38px;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 150ms ease;
}

.feed-controls .form-select:focus,
.feed-controls .form-control:focus,
.date-filter select:focus,
.feed-search input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

/* Small 버전 스타일 오버라이드 */
.feed-controls .form-select-sm,
.feed-controls .form-control-sm {
    height: 38px !important;
    padding: var(--space-2) var(--space-3) !important;
    font-size: var(--text-sm) !important;
}

/* 사용자 지정 날짜 범위 */
.custom-date-range {
    display: flex;
    gap: var(--space-2);
}

.custom-date-range input[type="date"] {
    height: 38px;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
}

.new-post-area {
    padding: 1rem;
    border-bottom: 1px solid #e8ecf1;
    margin-bottom: 1rem;
    background-color: #f8fafb;
    border-radius: 12px;
    margin: 0 -0.5rem 1rem -0.5rem;
}

.new-post-area textarea {
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    resize: none;
    transition: border-color 0.2s;
}

.new-post-area textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.attachments-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.attachment-item {
    position: relative;
    display: inline-block;
}

.attachment-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e8ecf1;
}

.attachment-file {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    font-size: 0.9rem;
}

.btn-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--error-500);
    color: white;
    border: none;
    font-size: var(--text-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 150ms ease;
}

.btn-remove:hover {
    background: var(--error-600);
    transform: scale(1.1);
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.post-tools {
    display: flex;
    gap: 0.5rem;
}

.feed-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.5rem;
}

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

.feed-item {
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    transition: all 150ms ease;
}

.feed-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

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

.feed-author {
    font-weight: 500;
    color: var(--text-primary);
    font-size: var(--text-base);
}

.feed-time {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

.feed-content {
    margin-bottom: 1rem;
}

.feed-content p {
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #374151;
}

.feed-images {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feed-images.images-1 {
    grid-template-columns: 1fr;
}

.feed-images.images-2 {
    grid-template-columns: 1fr 1fr;
}

.feed-images.images-3 {
    grid-template-columns: 2fr 1fr 1fr;
}

.feed-images.images-4 {
    grid-template-columns: 1fr 1fr;
}

.feed-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.feed-image:hover {
    transform: scale(1.02);
}

.feed-files {
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 0.75rem;
    background: #f8fafb;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e8ecf1;
}

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

.file-name {
    flex: 1;
    font-size: 0.9rem;
    color: #374151;
}

.file-size {
    font-size: 0.8rem;
    color: #64748b;
}

.feed-footer {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f3f7;
}

.btn-action {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    border-radius: var(--radius);
    transition: all 150ms ease;
}

.btn-action:hover {
    background-color: var(--gray-100);
    color: var(--text-primary);
}

.btn-action.active {
    color: var(--error-500);
}

.comments-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f3f7;
}

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

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
    background: #f8fafb;
    padding: 0.75rem;
    border-radius: 12px;
}

.comment-author {
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.comment-content p {
    margin: 0;
    font-size: var(--text-base);
    color: var(--text-secondary);
}

.comment-time {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: var(--space-2);
}

.comment-input {
    margin-top: 1rem;
}

.comment-input .form-control {
    border-radius: 20px;
    border: 1px solid #e8ecf1;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--text-base);
    transition: all 150ms ease;
}

.btn-icon:hover {
    background-color: var(--gray-100);
    color: var(--error-500);
}

/* 파일 관리자 */
.file-manager {
    min-height: 100vh;
    background: var(--bg-secondary);
}

.file-manager-header {
    background: var(--bg-primary);
    padding: var(--space-6) 0;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-8);
    border-bottom: 1px solid var(--gray-200);
}

.file-manager-header h1 {
    color: #1a202c;
    font-weight: 700;
}

.breadcrumb-container {
    background: white;
    padding: 1rem 2rem;
    margin: 0 auto;
    max-width: 1800px;
    border-bottom: 1px solid #e8ecf1;
}

.breadcrumb {
    margin: 0;
    background: none;
    padding: 0;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #5a67d8;
}

.file-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    margin: 0 auto 2rem auto;
    max-width: 1800px;
    border-bottom: 1px solid #e8ecf1;
}

.file-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.loading-state, .error-state, .empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.loading-state .spinner-border {
    color: #667eea;
}

.error-state i, .empty-state i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.file-card {
    background: white;
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.file-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.file-card.selected {
    border-color: #667eea;
    background-color: #f0f4ff;
}

.file-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #64748b;
}

.file-name {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 0.8rem;
    color: #64748b;
}

.file-size {
    display: block;
    margin-bottom: 0.25rem;
}

.file-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    gap: 0.25rem;
}

.file-card:hover .file-actions {
    opacity: 1;
}

/* 작업 피드 다운로드 버튼 */
.history-content-with-download {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.history-content-with-download .description-text {
    flex: 1;
    margin: 0;
    padding-right: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.btn-download-small {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    margin-left: auto;
}

.btn-download-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-download-small:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.btn-download-small i {
    font-size: 1rem;
}


.file-actions .btn-icon {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e8ecf1;
    border-radius: 4px;
    padding: 0.25rem;
    font-size: 0.8rem;
}

.file-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.file-list .table {
    margin: 0;
}

.file-list .table th {
    border-top: none;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
}

.file-list .table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.file-list .table-hover tbody tr:hover {
    background-color: #f8fafb;
}

.file-list .table-active {
    background-color: #f0f4ff;
}

/* 반응형 */
@media (max-width: 768px) {
    .file-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .toolbar-left .input-group {
        width: 100%;
    }
    
    .file-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .file-content {
        padding: 0 1rem;
    }
    
    .breadcrumb-container, .file-toolbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 파일 첨부 뱃지 */
.file-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background-color: #e3f2fd;
    color: #1976d2;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.4rem;
    border-radius: 0.75rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.file-badge i {
    font-size: 0.7rem;
}

.task-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* 업무 상세 모달 - 작은 UI 스타일 */
.section-title-small {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.assignees-detail-compact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.assignee-detail-item-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.assignee-avatar-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    font-weight: 500;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.assignee-name-small {
    font-size: 0.8rem;
    color: #495057;
}

.task-detail-actions-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.task-detail-actions-compact .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

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

.edit-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 담당자 아바타 UI */
.assignees-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.assignees-label {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.assignees-management {
    position: relative;
}

.assignees-avatars {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.assignee-avatar-mini-wrapper {
    position: relative;
    display: inline-block;
}

.assignee-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.assignee-avatar-mini.clickable:hover {
    transform: scale(1.1);
}

.add-assignee-wrapper {
    position: relative;
    display: inline-block;
}

.btn-add-assignee {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    border: 1px dashed #adb5bd;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-assignee:hover {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.assignee-dropdown-mini {
    position: absolute;
    top: 25px;
    left: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 250px;
    z-index: 1000;
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-close-mini {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.1rem;
    border-radius: 0.2rem;
}

.btn-close-mini:hover {
    background-color: #e9ecef;
    color: #495057;
}

.dropdown-body {
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-item-assignee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-item-assignee:hover {
    background-color: #f8f9fa;
}

.member-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    font-weight: 500;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.member-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #495057;
}

.member-position {
    font-size: 0.7rem;
    color: #6c757d;
    margin-left: auto;
}

.no-members {
    padding: 1rem 0.75rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.8rem;
}

/* 담당자 옵션 모달 스타일 */
.assignee-options-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    width: 280px;
    z-index: 1001;
}

.assignee-options-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.assignee-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.assignee-options-body {
    padding: 0.5rem;
}

.option-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: none;
    background: none;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: left;
}

.option-btn:hover {
    background-color: #f8f9fa;
}

.option-btn.text-danger {
    color: #dc3545;
}

.option-btn.text-danger:hover {
    background-color: #fff5f5;
}

/* 삭제 확인 모달 스타일 */
.delete-confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    width: 380px;
    z-index: 1002;
}

.delete-confirm-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.delete-confirm-header i {
    font-size: 1.5rem;
}

.delete-confirm-header h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.delete-confirm-body {
    padding: 1rem;
}

.delete-confirm-body p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.warning-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #fff5f5;
    border-left: 3px solid #dc3545;
    border-radius: 0.25rem;
    padding: 0.75rem;
}

.warning-list li {
    font-size: 0.85rem;
    color: #842029;
    margin-bottom: 0.25rem;
}

.warning-list li:last-child {
    margin-bottom: 0;
}

.warning-list li::before {
    content: "•";
    margin-right: 0.5rem;
}

.delete-confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
}

.btn-close-small {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

.btn-close-small:hover {
    color: #495057;
}

.assignee-avatar-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: white;
    font-weight: 500;
    font-size: 0.6rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.assignee-avatar-mini.clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.assignee-avatar-mini.clickable:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 담당자 상세 모달 */
.assignee-modal {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 300px;
    max-width: 90vw;
    position: relative;
}

.assignee-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.assignee-avatar-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.assignee-modal-body {
    padding: 1rem;
}

.btn-close-small {
    background: none;
    border: none;
    padding: 0.25rem;
    border-radius: 0.25rem;
    color: #6c757d;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-close-small:hover {
    background-color: #f8f9fa;
    color: #495057;
}

/* 업무 채팅 UI */
.task-chat-section {
    height: 580px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e9ecef;
    padding-left: 1.5rem;
    min-height: 580px;
}

/* 업무 상세 모달 너비 확장 */
.modal-xl {
    max-width: 1400px !important;
    width: 95vw;
}

@media (max-width: 1450px) {
    .modal-xl {
        max-width: 95vw !important;
    }
}

/* 업무 상세 모달의 modal-body 높이 설정 */
.modal-xl .modal-body {
    height: 640px;
    overflow-y: auto;
}

/* 업무 상세 모달 내부 섹션 간격 조정 */
.modal-xl .modal-body .mb-4 {
    margin-bottom: 2rem !important;
}

/* 상태 정보 섹션 스타일 */
.status-info {
    background: #f8fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.status-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

/* 파일 업로드 영역 높이 조정 */
.file-upload-area {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e9ecef;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f8fafb;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    max-height: calc(800px - 200px);
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    margin-bottom: 1rem;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0 0.75rem;
    display: flex;
    flex-direction: column;
}

.chat-message.own-message {
    align-items: flex-end;
}

.chat-message.own-message .message-content {
    background-color: #667eea;
    color: white;
    margin-left: auto;
    text-align: left;
    width: fit-content;
    min-width: 50px;
    max-width: 290px;
}

.chat-message.own-message .message-header {
    justify-content: flex-end;
    text-align: right;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.message-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    font-weight: 500;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.message-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.message-sender {
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
}

.message-time {
    font-size: 0.65rem;
    color: #6c757d;
}

.message-content {
    background-color: #f0f0f0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    max-width: 290px;
    width: fit-content;
    min-width: 50px;
    word-break: normal;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: inline-block;
    text-align: left;
}

/* 메시지 버블 스타일 */
.message-bubble {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: stretch;
    justify-content: normal;
    align-items: normal;
    min-width: 60px;
    max-width: 290px;
    width: fit-content;
}

.message-wrapper.own .message-bubble {
    background-color: #667eea;
}

/* 메시지 텍스트 */
.message-text {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    word-wrap: break-word;
    color: #333;
}

.message-wrapper.own .message-text {
    color: white;
}

/* 답장 기능 스타일 */
.message-body {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.message-reply {
    background: #f7f8fa;
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    border-bottom: 1px solid #e0e0e0;
    display: block !important;
    cursor: pointer;
    transition: background 0.2s;
}

.message-reply:hover {
    background: #e8ecf4;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333 !important;
    font-size: 0.8rem;
}

.reply-header i {
    font-size: 0.875rem;
    color: #667eea;
}

.reply-sender {
    font-size: 0.8rem;
    color: #333 !important;
    font-weight: 600;
}

.reply-content {
    color: #333 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
    opacity: 1;
}


/* 답장 미리보기 */
.reply-preview {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.reply-preview-content {
    flex: 1;
}

.reply-preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.reply-preview-text {
    font-size: 0.875rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-cancel-reply {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
    font-size: 1.25rem;
}

.btn-cancel-reply:hover {
    color: #333;
}

/* 자신의 메시지인 경우 답장 스타일 조정 */
.message-wrapper.own .message-reply {
    background: rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.message-wrapper.own .reply-header {
    color: #fff !important;
}

.message-wrapper.own .reply-content {
    color: #fff !important;
    opacity: 0.95;
}

.message-wrapper.own .reply-sender {
    color: #fff !important;
}

.message-wrapper.own .reply-header i {
    color: #fff !important;
}

.own-message .message-avatar {
    order: 2;
}

.own-message .message-info {
    order: 1;
    align-items: flex-end;
}

.empty-chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    gap: 0.75rem;
}

.empty-chat i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.chat-input-area {
    flex-shrink: 0;
    padding: 0;
    background: white;
    border: none;
}


/* 채팅 스크롤바 스타일링 */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 반응형 */
@media (max-width: 1400px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "tasks calendar"
            "chat-members feed";
    }
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "tasks"
            "calendar"
            "chat-members"
            "feed";
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        padding: 0 1rem 2rem 1rem;
        gap: 1rem;
    }
    
    .dashboard-header {
        padding: 0.75rem 0;
    }
    
    .dashboard-header h1 {
        font-size: 1.25rem;
    }
    
    .dashboard-header .col-auto {
        margin-top: 0.5rem;
    }
    
    .login-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .dashboard-card {
        padding: 1.25rem;
    }
}

/* 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-card {
    animation: fadeIn 0.5s ease-out;
}

/* 일정 위젯과 채팅&구성원 위젯 높이 맞춤 */
.calendar-area .dashboard-card,
.chat-members-card {
    height: 800px;
    display: flex;
    flex-direction: column;
}

/* 채팅&구성원 영역 너비 제한 */
.chat-members-area {
    min-width: 0;
    max-width: 100%;
}

.chat-members-card {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.calendar-area .dashboard-card {
    overflow-y: auto;
}

.chat-members-card .card-header {
    flex-shrink: 0;
}

.chat-members-card .nav-tabs {
    flex-shrink: 0;
}

.members-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chats-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.member-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
    max-height: calc(800px - 150px);
}

.member-item {
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
}

.member-item:hover {
    background-color: #f8fafb;
}

.member-item.selected {
    background-color: #e7f3ff;
    border-color: #667eea;
}

.member-info {
    flex: 1;
    margin-left: 0.75rem;
    min-width: 0;
}

.member-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* 채팅 메시지 컨테이너 (개별 채팅방 내부) */
.chat-messages-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-room-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.chat-room-item:hover {
    background-color: #f8fafb;
}

.chat-room-item.active {
    background-color: #e7f3ff;
}

.chat-room-item.highlighted {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.chat-info {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.chat-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a202c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-last-message {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 읽지 않은 메시지가 있는 채팅방 강조 */
.chat-room-item:has(.badge) .chat-name {
    font-weight: 600;
    color: #1e293b;
}

.chat-room-item:has(.badge) .chat-last-message {
    color: #475569;
    font-weight: 500;
}

.chat-room-item:has(.badge) {
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

/* 시스템 메시지 스타일 */
.message-wrapper.system-message {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.system-message-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    max-width: 80%;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

.system-message-icon {
    color: #3b82f6;
    font-size: 1rem;
}

.system-message-text {
    font-weight: 500;
    flex: 1;
}

.system-message-time {
    font-size: 0.75rem;
    color: #94a3b8;
    opacity: 0.8;
}

.chat-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.chat-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

.chat-messages-container .chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #f8fafb;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e8ecf1;
    padding: 1rem;
}

/* 채팅 입력 */
.chat-input {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chat-input input {
    flex: 1;
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.chat-input input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-send {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-send:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 모달 스타일 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    animation: fadeIn 0.2s ease-out;
}

.modal-dialog {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

.modal-content {
    padding: 0;
}

.modal-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* 컴팩트 모달 헤더 */
.modal-header-compact {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    height: 56px;
    position: relative;
}

/* 좌측: 상태, 제목, 진행상태 */
.header-left-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.status-toggle-compact {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: var(--text-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 150ms ease;
}

.status-toggle-compact.completed {
    color: var(--success-500);
}

.status-toggle-compact:hover {
    transform: scale(1.1);
}

.title-compact {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.title-input-compact {
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    width: 200px;
}

.progress-select-compact {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-sm);
    font-weight: 500;
    background: var(--bg-primary);
    cursor: pointer;
    min-width: 90px;
    transition: all 150ms ease;
}

.progress-select-compact[data-status="requested"] {
    background: #fef3c7;
    color: #92400e;
}

.progress-select-compact[data-status="in_progress"] {
    background: #dbeafe;
    color: #1e40af;
}

.progress-select-compact[data-status="feedback"] {
    background: #fce7f3;
    color: #9f1239;
}

.progress-select-compact[data-status="completed"] {
    background: #d1fae5;
    color: #065f46;
}

/* 중앙: 담당자와 우선순위 */
.header-center-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.assignees-stack-compact {
    display: flex;
    align-items: center;
    position: relative;
}

.assignee-avatar-stack {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.assignee-avatar-stack:hover {
    transform: scale(1.1);
    z-index: 10 !important;
}

/* 구성원 제거 버튼 */
.assignee-avatar-stack .assignee-remove-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--error-500);
    color: white;
    border: 1px solid white;
    font-size: 10px;
    line-height: 1;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 150ms ease;
}

.assignee-avatar-stack:hover .assignee-remove-btn {
    display: flex;
}

.assignee-remove-btn:hover {
    background: var(--error-600);
    transform: scale(1.1);
}

.assignee-clickable {
    cursor: pointer;
}

.assignee-more {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.btn-add-compact {
    width: 26px;
    height: 26px;
    border: 1px dashed #cbd5e1;
    border-radius: 50%;
    background: white;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 0.5rem;
    font-size: 0.875rem;
}

.btn-add-compact:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #64748b;
}

.priority-tag-compact {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-tag-compact.priority-urgent {
    background: #fee2e2;
    color: #dc2626;
}

.priority-tag-compact.priority-high {
    background: #fed7aa;
    color: #ea580c;
}

.priority-tag-compact.priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.priority-tag-compact.priority-low {
    background: #d1fae5;
    color: #059669;
}

/* 우측: 액션 버튼들 */
.header-right-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon-compact {
    width: 28px;
    height: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: white;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-icon-compact:hover {
    background: #f1f5f9;
    color: #374151;
}

.btn-icon-compact.btn-save {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.btn-icon-compact.btn-delete:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #dc2626;
}

/* 담당자 드롭다운 (절대 위치) */
.assignee-dropdown-absolute {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 250px;
    margin-top: 0.5rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-close:hover {
    background: #e2e8f0;
    color: #374151;
}

.btn-close::before {
    content: "×";
    font-size: 24px;
    line-height: 1;
}

.modal-body {
    padding: var(--space-6);
}

.modal-body .form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.modal-body .form-control,
.modal-body .form-select {
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-base);
    transition: all 150ms ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
    outline: none;
}

.modal-body textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.modal-body .btn-primary {
    background: var(--primary-600);
    border: none;
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: var(--text-base);
    transition: all 150ms ease;
    color: white;
    cursor: pointer;
}

.modal-body .btn-primary:hover:not(:disabled) {
    background: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.modal-body .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.modal-body .btn-secondary {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: var(--text-base);
    transition: all 150ms ease;
    cursor: pointer;
}

.modal-body .btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
    color: var(--text-primary);
}

/* 단체방 참여자 목록 스타일 */
.participants-list {
    background: #f8fafb;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e8ecf1;
}

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

.user-avatar.small {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

.participant-name {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}

/* 채팅방 화면 스타일 */
.chat-room-view {
    display: flex;
    flex-direction: column;
    height: calc(800px - 80px);
    overflow: hidden;
}

.chat-room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e8ecf1;
    background: #f8fafb;
    border-radius: 12px 12px 0 0;
    margin: -0.5rem -0.5rem 0 -0.5rem;
}

.chat-room-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.chat-room-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.chat-messages-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    margin-bottom: 0;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.empty-chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    gap: 0.75rem;
}

.empty-chat i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.message-wrapper {
    margin-bottom: 1rem;
    padding: 0 0.75rem;
}

.message-wrapper.own {
    text-align: right;
}

.message-wrapper.own .message-header {
    justify-content: flex-end;
    text-align: right;
}

.message-wrapper.own .message-avatar {
    order: 2;
}

.message-wrapper.own .message-info {
    order: 1;
    align-items: flex-end;
}


/* 메시지 바디 스타일 */
.message-wrapper .message-body {
    margin-left: 3rem;
    max-width: 70%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.message-wrapper.own .message-body {
    margin-left: auto;
    margin-right: 3rem;
    cursor: default;
}

/* 다른 사람의 메시지에 호버 효과 */
.message-wrapper:not(.own) .message-body:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 다른 사람의 메시지 클릭 시 효과 */
.message-wrapper:not(.own) .message-body:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.message-sender {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.sender-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    font-weight: 500;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.message-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.sender-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
}

.message-content {
    background-color: #f0f0f0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    max-width: 290px;
    width: fit-content;
    min-width: 50px;
    word-break: normal;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: inline-block;
    text-align: left;
}

/* 메시지 버블 스타일 */
.message-bubble {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: stretch;
    justify-content: normal;
    align-items: normal;
    min-width: 60px;
    max-width: 290px;
    width: fit-content;
}

.message-wrapper.own .message-bubble {
    background-color: #667eea;
}

/* 메시지 텍스트 */
.message-text {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    word-wrap: break-word;
    color: #333;
}

.message-wrapper.own .message-text {
    color: white;
}

/* 답장 기능 스타일 */
.message-body {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.message-reply {
    background: #f7f8fa;
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    border-bottom: 1px solid #e0e0e0;
    display: block !important;
    cursor: pointer;
    transition: background 0.2s;
}

.message-reply:hover {
    background: #e8ecf4;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #333 !important;
    font-size: 0.8rem;
}

.reply-header i {
    font-size: 0.875rem;
    color: #667eea;
}

.reply-sender {
    font-size: 0.8rem;
    color: #333 !important;
    font-weight: 600;
}

.reply-content {
    color: #333 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
    opacity: 1;
}


/* 답장 미리보기 */
.reply-preview {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.reply-preview-content {
    flex: 1;
}

.reply-preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.reply-preview-text {
    font-size: 0.875rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-cancel-reply {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
    font-size: 1.25rem;
}

.btn-cancel-reply:hover {
    color: #333;
}

/* 자신의 메시지인 경우 답장 스타일 조정 */
.message-wrapper.own .message-reply {
    background: rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.message-wrapper.own .reply-header {
    color: #fff !important;
}

.message-wrapper.own .reply-content {
    color: #fff !important;
    opacity: 0.95;
}

.message-wrapper.own .reply-sender {
    color: #fff !important;
}

.message-wrapper.own .reply-header i {
    color: #fff !important;
}

/* 파일 첨부 스타일 */
.attached-files {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    max-height: 120px;
    overflow-y: auto;
}

.attached-file-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    border: 1px solid #dee2e6;
}

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

.attached-file-item .file-info {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0.5rem;
}

.attached-file-item .file-name {
    font-weight: 500;
    color: #333;
}

.attached-file-item .file-size {
    color: #666;
    font-size: 0.875rem;
}

.btn-remove-file {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-remove-file:hover {
    background: rgba(220, 53, 69, 0.1);
}

/* 메시지 내 파일 표시 */
.message-files {
    padding: 10px;
}

.message-file-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.message-file-item:hover {
    background: linear-gradient(135deg, #eef2f7 0%, #e8ecf2 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

/* Join 페이지 스타일 */
.join-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.join-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
}

.workspace-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.workspace-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.workspace-details h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.workspace-details p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.login-required, .join-actions {
    margin-top: 1.5rem;
}

.error-state {
    padding: 2rem 0;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-icon i {
    color: #ffc107;
}

.message-wrapper.own .message-file-item {
    background: rgba(255, 255, 255, 0.2);
}

/* 메시지 파일 아이콘 및 상세정보 */
.message-file-item .file-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message-file-item .file-icon i {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.message-wrapper.own .message-file-item {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.message-file-item .file-details {
    flex: 1;
    min-width: 0;
}

.message-file-item .file-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1f2937;
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-wrapper.own .message-file-item .file-name {
    color: white;
}

.message-file-item .file-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message-file-item .file-size {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.message-wrapper.own .message-file-item .file-size {
    color: rgba(255, 255, 255, 0.9);
}

.message-file-item .btn-download-file {
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #e5e7eb;
    color: #667eea;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.message-file-item .btn-download-file:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: scale(1.05);
}

.message-file-item .btn-download-file i {
    font-size: 1rem;
}

.message-wrapper.own .message-file-item .btn-download-file {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    color: #667eea;
}

.message-wrapper.own .message-file-item .btn-download-file:hover {
    background: white;
    border-color: white;
    color: #667eea;
}

/* 메시지 하이라이트 효과 */
.message-wrapper.highlighted {
    animation: messageHighlight 3s ease-out;
}

@keyframes messageHighlight {
    0% {
        background-color: rgba(102, 126, 234, 0.3);
        transform: scale(1.02);
    }
    50% {
        background-color: rgba(102, 126, 234, 0.2);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

.message-wrapper.highlighted .message-bubble {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    transition: box-shadow 0.3s ease-out;
}

/* 개선된 채팅 입력 스타일 */
.chat-input-container {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 24px;
    padding: 0.25rem;
    gap: 0.5rem;
    border: 1px solid #e0e0e0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-attach-file {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-size: 1.1rem;
}

.btn-attach-file:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.btn-attach-file:active {
    transform: scale(0.95);
}

.chat-message-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem;
    font-size: 0.95rem;
    outline: none;
    color: #333;
}

.chat-message-input::placeholder {
    color: #999;
}

.btn-send-message {
    background: #667eea;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-size: 0.9rem;
}

.btn-send-message:hover:not(:disabled) {
    background: #5a6fd8;
    transform: scale(1.05);
}

.btn-send-message:active:not(:disabled) {
    transform: scale(0.95);
}

.btn-send-message:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.message-time {
    font-size: 0.65rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.chat-input-area {
    flex-shrink: 0;
    padding: 0;
    background: white;
    border: none;
}


.chat-input {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.chat-input .form-control {
    flex: 1;
    border: 2px solid #e8ecf1;
    border-radius: 20px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: #f8fafb;
}

.chat-input .form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.chat-input .btn-send {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.chat-input .btn-send:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.chat-input .btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 채팅방 목록 개선 */
.chat-list-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-list-container {
    flex: 1;
    border-bottom: none;
    margin-bottom: 0;
    overflow-y: auto;
}

.chat-list {
    padding: 0.5rem 0;
}

/* 이 스타일은 위의 .chat-room-item과 중복되므로 제거하고 위 스타일에 통합 */
/* 추가 스타일만 여기에 유지 */
.chat-room-item {
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
}

.chat-room-item:hover {
    border-color: #e0e7ff;
}

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

/* 아이콘 버튼 스타일 */
.btn-icon-round {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-icon-round:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-icon-round:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-icon-round.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-icon-round.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-icon-round.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-icon-round.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-icon-round.btn-outline-primary {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-icon-round.btn-outline-primary:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 툴팁 스타일을 위한 기본 설정 */
.btn-icon-round[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    animation: tooltipFadeIn 0.2s ease-out;
}

.btn-icon-round[title]:hover::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 0, 0, 0.8);
    z-index: 1000;
    animation: tooltipFadeIn 0.2s ease-out;
}

@keyframes tooltipFadeIn {
    from { 
        opacity: 0; 
        transform: translateX(-50%) translateY(5px);
    }
    to { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0);
    }
}

/* 담당자 선택 드롭다운 스타일 */
.assignee-dropdown .dropdown-menu {
    border: 2px solid #e8ecf1;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.assignee-dropdown .dropdown-item-container:hover {
    background-color: #f8fafb;
}

.assignee-dropdown .dropdown-item {
    border: none;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s;
}

.assignee-dropdown .dropdown-item:hover {
    background-color: #f0f4ff;
}

/* 선택된 담당자 해시태그 스타일 */
.selected-assignees {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.assignee-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    gap: 0.5rem;
    animation: tagFadeIn 0.2s ease-out;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.assignee-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-remove-assignee {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.btn-remove-assignee:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes tagFadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.8) translateY(10px);
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0);
    }
}

/* 업무 리스트 스타일 */
.task-list-container {
    max-height: calc(800px - 200px);
    overflow-y: auto;
    padding: 0.5rem 0;
    flex: 1;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-item {
    background: var(--bg-primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    transition: all 150ms ease;
    border-left: 3px solid var(--gray-200);
    cursor: pointer;
}

.task-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.task-item.delayed {
    border-left-color: var(--error-500);
    background: rgb(239 68 68 / 0.05);
}

.task-item.priority-low {
    border-left-color: var(--success-500);
}

.task-item.priority-medium {
    border-left-color: var(--warning-500);
}

.task-item.priority-high {
    border-left-color: var(--error-500);
}

.task-item.priority-urgent {
    border-left-color: var(--error-600);
    box-shadow: 0 0 0 1px rgb(239 68 68 / 0.1);
}

.task-item.completed {
    border-left-color: var(--success-500);
    background: rgb(34 197 94 / 0.05);
    opacity: 0.9;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.task-title {
    font-weight: 500;
    color: var(--text-primary);
    font-size: var(--text-base);
    line-height: 1.4;
    flex: 1;
    margin-right: var(--space-4);
}

.task-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.task-item:hover .task-actions {
    opacity: 1;
}

.btn-task-action {
    background: none;
    border: none;
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: var(--text-base);
    transition: all 150ms ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-task-action:hover {
    background-color: var(--gray-100);
    color: var(--text-primary);
}

.btn-task-action:first-child:hover {
    background-color: #dcfce7;
    color: #16a34a;
}

.btn-task-action:last-child:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

.task-description {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.4;
    margin-bottom: var(--space-3);
}

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

.task-assignees {
    display: flex;
    gap: 0.25rem;
}

.assignee-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.7rem;
    flex-shrink: 0;
    border: 2px solid white;
    cursor: pointer;
    transition: transform 0.2s;
}

.assignee-avatar:hover {
    transform: scale(1.1);
    z-index: 1;
}

.assignee-avatar:not(:first-child) {
    margin-left: -8px;
}

.assignee-avatar.assignee-more {
    background-color: #e5e7eb !important;
    color: #6b7280;
    font-size: 0.65rem;
    border: 2px solid white;
    margin-left: -8px;
}

.assignee-avatar.assignee-more:hover {
    background-color: #d1d5db !important;
    transform: scale(1.15);
}

.task-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.task-due-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
}

.task-due-date.overdue {
    color: #dc2626;
    font-weight: 500;
}

.task-completed-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #10b981;
    font-weight: 500;
}

.completed-title {
    opacity: 0.8;
}

.task-priority {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.task-priority.priority-low {
    background: #dcfce7;
    color: #166534;
}

.task-priority.priority-medium {
    background: #fef3c7;
    color: #92400e;
}

.task-priority.priority-high {
    background: #fee2e2;
    color: #991b1b;
}

.task-priority.priority-urgent {
    background: #fecaca;
    color: #7f1d1d;
    animation: urgentPulse 2s infinite;
}

@keyframes urgentPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* 업무 카운트 개선 */
.nav-tabs .nav-link {
    position: relative;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 스크롤바 스타일링 */
.task-list-container::-webkit-scrollbar {
    width: 6px;
}

.task-list-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.task-list-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.task-list-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 업무 카드 클릭 커서 */
.task-item {
    cursor: pointer;
}

/* 업무 상세 모달 스타일 */
.modal-lg {
    max-width: 800px;
}

.task-status-icon {
    font-size: 1.5rem;
}

.section-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    padding-bottom: 6px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.task-detail-description {
    background: #f8fafb;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e8ecf1;
    line-height: 1.8;
    color: #4b5563;
    margin: 0;
    min-height: 120px;
}

.status-info {
    background: #f8fafb;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e8ecf1;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e8ecf1;
}

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

.status-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.9rem;
}

.status-value {
    font-weight: 600;
    font-size: 0.9rem;
}

.assignees-detail {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.assignee-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafb;
    border-radius: 8px;
    border: 1px solid #e8ecf1;
}

.assignee-avatar-large {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.assignee-name {
    font-weight: 500;
    color: #374151;
}

.task-detail-actions {
    background: #f8fafb;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e8ecf1;
}

/* 파일 업로드 스타일 */
.file-upload-area {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #f9fafb;
    transition: all 0.2s;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
}

.file-upload-label:hover {
    color: #667eea;
}

.selected-files {
    background: #f8fafb;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 1rem;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    transition: all 0.2s;
}

.file-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-color: #d0d7e1;
}

.file-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

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

.file-name {
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

.file-size {
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.btn-remove-file {
    background: #fee2e2;
    border: none;
    color: #dc2626;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-remove-file:hover {
    background: #fecaca;
    transform: scale(1.1);
}

/* 업무 상세 모달의 파일 관련 스타일 */
.task-files {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8fafb;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    transition: all 0.2s;
}

.task-file-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-color: #d0d7e1;
}

.file-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #667eea;
}

.file-info {
    flex: 1;
}

.file-info .file-name {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.file-info .file-size {
    font-size: 0.875rem;
    color: #64748b;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

.file-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* shadcn/ui 스타일 워크스페이스 관리 페이지 */
.workspace-manager {
    min-height: 100vh;
    background: #ffffff !important;
}

.workspace-header {
    background: #ffffff !important;
    border-bottom: 1px solid hsl(214.3 31.8% 91.4%) !important;
    padding: 1rem 0;
}

.workspace-header h1 {
    color: hsl(222.2 84% 4.9%) !important;
    font-weight: 600 !important;
    font-size: 1.5rem !important;
    letter-spacing: -0.025em;
}

.workspace-header p {
    color: hsl(215.4 16.3% 46.9%) !important;
    font-size: 0.875rem;
    font-weight: 400;
}

.workspace-header .fw-semibold {
    color: hsl(222.2 84% 4.9%) !important;
    font-size: 0.875rem;
}

.workspace-header .text-muted {
    color: hsl(215.4 16.3% 46.9%) !important;
    font-size: 0.75rem;
}

.workspace-header .btn-outline-danger {
    background: transparent !important;
    border: 1px solid hsl(0 84.2% 60.2%) !important;
    color: hsl(0 84.2% 60.2%) !important;
    font-weight: 500;
    font-size: 0.875rem;
    height: 36px;
    padding: 0 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.workspace-header .btn-outline-danger:hover {
    background: hsl(0 84.2% 60.2%) !important;
    border-color: hsl(0 84.2% 60.2%) !important;
    color: white !important;
}

.workspace-content {
    padding: 24px 0 !important;
    max-width: 1200px;
    margin: 0 auto;
}

.workspace-content .container-fluid {
    padding: 0 24px;
}

/* shadcn/ui 섹션 헤더 */
.workspace-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title {
    color: hsl(222.2 84% 4.9%) !important;
    font-weight: 600 !important;
    font-size: 1.125rem !important;
    letter-spacing: -0.025em;
    margin: 0 !important;
}

.workspace-count {
    background: hsl(210 40% 98%);
    color: hsl(215.4 16.3% 46.9%);
    font-weight: 500;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid hsl(214.3 31.8% 91.4%);
}

.btn-create-workspace {
    background: hsl(222.2 84% 4.9%);
    border: 1px solid hsl(214.3 31.8% 91.4%);
    color: hsl(210 40% 98%);
    padding: 0 16px;
    height: 36px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-create-workspace:hover {
    background: hsl(222.2 84% 4.9% / 0.9);
}

.btn-create-workspace i {
    font-size: 14px;
}

.btn-create-primary {
    background: hsl(222.2 84% 4.9%);
    border: 1px solid hsl(214.3 31.8% 91.4%);
    color: hsl(210 40% 98%);
    padding: 0 24px;
    height: 40px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-create-primary:hover {
    background: hsl(222.2 84% 4.9% / 0.9);
    color: hsl(210 40% 98%);
}

.btn-create-primary i {
    font-size: 16px;
}

/* shadcn/ui 워크스페이스 그리드 */
.workspace-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 16px !important;
}

.workspace-card {
    background: hsl(0 0% 100%) !important;
    border: 1px solid hsl(214.3 31.8% 91.4%) !important;
    border-radius: 8px !important;
    padding: 24px !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.workspace-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border-color: hsl(215.4 16.3% 46.9%) !important;
}

/* shadcn/ui 워크스페이스 카드 내부 */
.workspace-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 16px !important;
}

.workspace-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: hsl(210 40% 98%) !important;
    font-size: 1.25rem !important;
    border: 1px solid hsl(214.3 31.8% 91.4%);
}

.workspace-actions .btn-ghost {
    background: transparent !important;
    border: none !important;
    color: hsl(215.4 16.3% 46.9%) !important;
    padding: 8px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    font-size: 16px !important;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workspace-actions .btn-ghost:hover {
    background: hsl(210 40% 96%) !important;
    color: hsl(222.2 84% 4.9%) !important;
}

.workspace-title {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: hsl(222.2 84% 4.9%) !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
    letter-spacing: -0.025em;
}

.workspace-description {
    color: hsl(215.4 16.3% 46.9%) !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.workspace-stats {
    display: flex !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
    padding: 12px !important;
    background: hsl(210 40% 98%) !important;
    border-radius: 6px !important;
    border: 1px solid hsl(214.3 31.8% 91.4%) !important;
}

.stat-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: hsl(215.4 16.3% 46.9%) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

.stat-item i {
    font-size: 14px !important;
    color: hsl(215.4 16.3% 46.9%) !important;
}

.workspace-card-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 16px !important;
    border-top: 1px solid hsl(214.3 31.8% 91.4%) !important;
}

.workspace-members {
    display: flex !important;
    align-items: center !important;
}

.member-avatar {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: hsl(210 40% 98%) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    border: 2px solid hsl(0 0% 100%) !important;
    margin-left: -6px !important;
    position: relative !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.member-avatar:first-child {
    margin-left: 0 !important;
}

.member-avatar.more {
    background: hsl(210 40% 96%) !important;
    color: hsl(215.4 16.3% 46.9%) !important;
    font-size: 0.625rem !important;
}

.status-badge {
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    text-transform: none;
    letter-spacing: 0;
}

.status-badge.active {
    background: hsl(143 85% 96%) !important;
    color: hsl(140 100% 27%) !important;
    border: 1px solid hsl(141 76% 85%);
}

.status-badge.inactive {
    background: hsl(0 93% 94%) !important;
    color: hsl(0 84% 37%) !important;
    border: 1px solid hsl(0 93% 87%);
}

/* shadcn/ui 빈 상태 */
.empty-state {
    padding: 48px 24px !important;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: hsl(210 40% 98%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 1px solid hsl(214.3 31.8% 91.4%);
}

.empty-icon i {
    font-size: 2rem !important;
    color: hsl(215.4 16.3% 46.9%) !important;
}

.empty-title {
    color: hsl(222.2 84% 4.9%) !important;
    font-weight: 600 !important;
    font-size: 1.125rem !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.025em;
}

.empty-desc {
    color: hsl(215.4 16.3% 46.9%) !important;
    font-size: 0.875rem !important;
    line-height: 1.5;
    margin-bottom: 24px !important;
}

/* shadcn/ui 모달 */
.workspace-manager .modal-content {
    border: 1px solid hsl(214.3 31.8% 91.4%) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.workspace-manager .modal-header {
    background: hsl(0 0% 100%) !important;
    border-bottom: 1px solid hsl(214.3 31.8% 91.4%) !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 24px !important;
}

.workspace-manager .modal-title {
    font-weight: 600 !important;
    color: hsl(222.2 84% 4.9%) !important;
    font-size: 1.125rem !important;
    letter-spacing: -0.025em;
}

.workspace-manager .modal-body {
    padding: 24px !important;
}

.workspace-manager .form-label {
    font-weight: 500 !important;
    color: hsl(222.2 84% 4.9%) !important;
    margin-bottom: 8px !important;
    font-size: 0.875rem;
}

.workspace-manager .form-control, 
.workspace-manager .form-select {
    border: 1px solid hsl(214.3 31.8% 91.4%) !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
    height: 40px;
}

.workspace-manager .form-control:focus, 
.workspace-manager .form-select:focus {
    border-color: hsl(222.2 84% 4.9%) !important;
    box-shadow: 0 0 0 2px hsl(222.2 84% 4.9% / 0.2) !important;
    outline: none !important;
}

/* shadcn/ui 아이콘 선택기 */
.workspace-manager .icon-selector {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.workspace-manager .icon-option {
    width: 40px !important;
    height: 40px !important;
    border: 1px solid hsl(214.3 31.8% 91.4%) !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 1rem !important;
    color: hsl(215.4 16.3% 46.9%) !important;
    background: hsl(0 0% 100%) !important;
}

.workspace-manager .icon-option:hover {
    border-color: hsl(222.2 84% 4.9%) !important;
    background: hsl(210 40% 98%) !important;
    color: hsl(222.2 84% 4.9%) !important;
}

.workspace-manager .icon-option.active {
    border-color: hsl(222.2 84% 4.9%) !important;
    background: hsl(222.2 84% 4.9%) !important;
    color: hsl(210 40% 98%) !important;
}

/* shadcn/ui 색상 선택기 */
.workspace-manager .color-selector {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.workspace-manager .color-option {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    border: 2px solid transparent !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

.workspace-manager .color-option:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.workspace-manager .color-option.active {
    border-color: hsl(222.2 84% 4.9%) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.workspace-manager .color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* shadcn/ui 모달 버튼 */
.workspace-manager .modal-footer .btn {
    height: 36px;
    padding: 0 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.workspace-manager .modal-footer .btn-secondary {
    background: transparent;
    border: 1px solid hsl(214.3 31.8% 91.4%);
    color: hsl(215.4 16.3% 46.9%);
}

.workspace-manager .modal-footer .btn-secondary:hover {
    background: hsl(210 40% 98%);
    border-color: hsl(214.3 31.8% 91.4%);
    color: hsl(222.2 84% 4.9%);
}

.workspace-manager .modal-footer .btn-primary {
    background: hsl(222.2 84% 4.9%);
    border: 1px solid hsl(222.2 84% 4.9%);
    color: hsl(210 40% 98%);
}

.workspace-manager .modal-footer .btn-primary:hover {
    background: hsl(222.2 84% 4.9% / 0.9);
    border-color: hsl(222.2 84% 4.9% / 0.9);
}

.workspace-manager .modal-footer .btn-primary:disabled {
    background: hsl(210 40% 96%);
    border-color: hsl(214.3 31.8% 91.4%);
    color: hsl(215.4 16.3% 46.9%);
    cursor: not-allowed;
}


/* 반응형 */
@media (max-width: 768px) {
    .workspace-manager::before {
        height: 300px !important;
        border-radius: 0 0 30px 30px !important;
    }
    
    .workspace-header h1 {
        font-size: 2rem !important;
    }
    
    .workspace-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .workspace-card {
        padding: 1.5rem !important;
    }
    
    .workspace-stats {
        flex-wrap: wrap !important;
        gap: 1rem !important;
    }
}

/* 칸반 모드 스타일 */
.dashboard-grid.kanban-mode {
    grid-template-columns: 1fr;
    grid-template-areas: "";
}

.dashboard-grid.kanban-mode .task-area {
    width: 100%;
    max-width: none;
}

/* 칸반 보드 스타일 */
.kanban-board {
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
    max-height: calc(800px - 120px);
}

.kanban-columns {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.kanban-column {
    flex: 1;
    min-width: 300px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
}

.kanban-column-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.kanban-column-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-count {
    background: #e2e8f0;
    color: #64748b;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: auto;
}

.task-count.warning {
    background: #fef3c7;
    color: #92400e;
}

.task-count.success {
    background: #d1fae5;
    color: #065f46;
}

.kanban-column-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 60vh;
    overflow-y: auto;
}

.kanban-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
}

.kanban-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.kanban-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    border-left: 3px solid #e2e8f0;
}

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

.kanban-card.priority-high {
    border-left-color: #ef4444;
}

.kanban-card.priority-urgent {
    border-left-color: #dc2626;
}

.kanban-card.priority-medium {
    border-left-color: #f59e0b;
}

.kanban-card.priority-low {
    border-left-color: #10b981;
}

.kanban-card.delayed {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.kanban-card.completed {
    border-left-color: #10b981;
    background: #f0fdf4;
}

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

.kanban-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.4;
    flex: 1;
}

.kanban-card-title.completed-title {
    color: #059669;
}

.kanban-card-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.kanban-card:hover .kanban-card-actions {
    opacity: 1;
}

.btn-kanban-action {
    background: none;
    border: none;
    padding: 0.25rem;
    border-radius: 4px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.btn-kanban-action:hover {
    background: #f1f5f9;
    color: #334155;
}

.kanban-card-description {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.kanban-card-assignees {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.kanban-assignee-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.7rem;
    border: 2px solid white;
    margin-left: -0.25rem;
}

.kanban-assignee-avatar:first-child {
    margin-left: 0;
}

.kanban-assignee-more {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb;
    color: #6b7280;
    font-size: 0.65rem;
    font-weight: 600;
    border: 2px solid white;
    margin-left: -0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.kanban-assignee-more:hover {
    background-color: #d1d5db;
    transform: scale(1.1);
}

.kanban-card-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.75rem;
}

.kanban-due-date {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.kanban-due-date.overdue {
    color: #dc2626;
}

.kanban-completed-date {
    color: #059669;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.kanban-file-count {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 체크리스트 정보 표시 스타일 */
.task-checklist-info,
.kanban-checklist-info {
    color: #059669;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(5, 150, 105, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.task-checklist-info i,
.kanban-checklist-info i {
    font-size: 0.8rem;
}

/* 체크리스트 완료 애니메이션 */
.checklist-item .form-check-label.completed {
    text-decoration: line-through;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.checklist-item .form-check-input:checked + .form-check-label {
    animation: checkComplete 0.3s ease;
}

@keyframes checkComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 체크리스트 진척률별 색상 */
.task-checklist-info.checklist-complete,
.kanban-checklist-info.checklist-complete {
    color: #065f46;
    background: rgba(6, 95, 70, 0.15);
    border-color: rgba(6, 95, 70, 0.3);
}

.task-checklist-info.checklist-half,
.kanban-checklist-info.checklist-half {
    color: #d97706;
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(217, 119, 6, 0.2);
}

.task-checklist-info.checklist-started,
.kanban-checklist-info.checklist-started {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.task-checklist-info.checklist-none,
.kanban-checklist-info.checklist-none {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.2);
}

/* 뷰 모드 토글 버튼 스타일 */
.view-mode-toggle {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2px;
    display: inline-flex;
    gap: 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-mode-toggle .btn {
    border: none;
    background: transparent;
    color: #64748b;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-mode-toggle .btn:hover {
    color: #475569;
    background: rgba(255, 255, 255, 0.5);
}

.view-mode-toggle .btn.active {
    background: white;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    font-weight: 600;
}

.view-mode-toggle .btn i {
    font-size: 1rem;
}

.view-mode-toggle .btn:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
    outline: none;
}

/* 토글 버튼 애니메이션 효과 */
.view-mode-toggle .btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border-radius: 10px;
    z-index: -1;
}

/* 다크 모드를 위한 추가 스타일 (선택사항) */
@media (prefers-color-scheme: dark) {
    .view-mode-toggle {
        background: #1e293b;
        border-color: #334155;
    }
    
    .view-mode-toggle .btn {
        color: #94a3b8;
    }
    
    .view-mode-toggle .btn:hover {
        color: #cbd5e1;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .view-mode-toggle .btn.active {
        background: #334155;
        color: #f1f5f9;
    }
}

/* 칸반 모드 반응형 */
@media (max-width: 1200px) {
    .kanban-columns {
        gap: 1rem;
    }
    
    .kanban-column {
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .kanban-columns {
        flex-direction: column;
        overflow-x: visible;
    }
    
    .kanban-column {
        min-width: auto;
        width: 100%;
    }
    
    .kanban-column-content {
        max-height: 40vh;
    }
    
    /* 모바일에서 토글 버튼 크기 조정 */
    .view-mode-toggle .btn {
        padding: 6px 10px;
        min-width: 40px;
    }
}

/* 체크리스트 스타일 */
.checklist-progress {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.checklist-progress .progress {
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.checklist-progress .progress-bar {
    transition: width 0.3s ease;
}

.checklist-container {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fafbfc;
}

.checklist-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.2s ease;
}

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

.checklist-item:hover {
    background-color: #f8fafc;
}

.checklist-item .form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.checklist-item .form-check-input {
    margin: 0;
    cursor: pointer;
    transform: scale(1.1);
}

.checklist-item .form-check-input:checked {
    background-color: #10b981;
    border-color: #10b981;
}

.checklist-item .form-check-label {
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex: 1;
    font-size: 0.9rem;
    color: #374151;
    transition: all 0.2s ease;
}

.checklist-item .form-check-label.completed {
    text-decoration: line-through;
    color: #9ca3af;
}

.checklist-item .form-check-label:hover {
    color: #1f2937;
}

.checklist-item .form-check-label span {
    flex: 1;
    padding: 0.25rem 0;
}

.checklist-item .form-check-label input.form-control {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
}

.checklist-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checklist-item:hover .checklist-actions {
    opacity: 1;
}

.btn-checklist-action {
    background: none;
    border: none;
    padding: 0.25rem;
    border-radius: 4px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.btn-checklist-action:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.btn-checklist-action.text-danger:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

.add-checklist-item {
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 0 0 8px 8px;
}

.add-checklist-item .input-group {
    gap: 0.5rem;
}

.add-checklist-item .form-control {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.add-checklist-item .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.add-checklist-item .btn {
    border-radius: 6px;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.add-checklist-item .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 체크리스트 애니메이션 */
.checklist-item {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 체크리스트 반응형 */
@media (max-width: 768px) {
    .checklist-item {
        padding: 0.5rem 0.75rem;
    }
    
    .checklist-item .form-check {
        gap: 0.5rem;
    }
    
    .checklist-item .form-check-label {
        font-size: 0.85rem;
    }
    
    .add-checklist-item {
        padding: 0.5rem 0.75rem;
    }
    
    .add-checklist-item .input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-checklist-action {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* 진행 상태 관리 UI */
.task-progress-status {
    display: flex;
    align-items: center;
}

.task-progress-status .form-select {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: white;
    color: #374151;
    transition: all 0.2s ease;
    cursor: pointer;
}

.task-progress-status .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    outline: none;
}

.task-progress-status .form-select:disabled {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

/* 진행 상태별 색상 */
.task-progress-status .form-select option[value="requested"] {
    color: #6b7280;
}

.task-progress-status .form-select option[value="in_progress"] {
    color: #2563eb;
}

.task-progress-status .form-select option[value="feedback"] {
    color: #f59e0b;
}

.task-progress-status .form-select option[value="completed"] {
    color: #059669;
}

/* 상태별 select 박스 배경색 변경 */
.form-select[data-status="requested"] {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #64748b;
}

.form-select[data-status="in_progress"] {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.form-select[data-status="feedback"] {
    background-color: #fffbeb;
    border-color: #f59e0b;
    color: #d97706;
}

.form-select[data-status="completed"] {
    background-color: #f0fdf4;
    border-color: #10b981;
    color: #059669;
}

/* 진행 상태 뱃지 */
.progress-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.375rem;
    border: 1px solid;
    white-space: nowrap;
    text-transform: none;
}

/* 칸반 모드에서는 더 작게 */
.kanban-status-badge {
    font-size: 0.6875rem;
    padding: 0.1875rem 0.375rem;
    border-radius: 0.25rem;
}

/* 진행 상태별 색상 */
.status-requested {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #64748b;
}

.status-in-progress {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.status-feedback {
    background-color: #fffbeb;
    border-color: #f59e0b;
    color: #d97706;
}

.status-completed {
    background-color: #f0fdf4;
    border-color: #10b981;
    color: #059669;
}

/* 호버 효과 */
.progress-status-badge:hover {
    opacity: 0.8;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* 화이트보드 스타일 */
.whiteboard-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.whiteboard-header {
    border-bottom: 1px solid #dee2e6;
}

.whiteboard-toolbar {
    background-color: #f8f9fa;
}

.whiteboard-main {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
}

.whiteboard-canvas {
    display: block;
    cursor: crosshair;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* 스티커 패널 */
.sticker-panel {
    width: 200px;
    overflow-y: auto;
}

.sticker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sticker-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.sticker-item:hover {
    border-color: #667eea;
    background-color: #f3f4f6;
    transform: scale(1.1);
}

.sticker-emoji {
    font-size: 24px;
}

/* 텍스트 입력 모달 */
.text-input-modal {
    position: absolute;
    z-index: 1000;
    min-width: 200px;
}

/* 사용자 커서 */
.user-cursor {
    position: absolute;
    pointer-events: none;
    z-index: 999;
}

.user-cursor i {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.user-cursor-name {
    position: absolute;
    top: 20px;
    left: 10px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* 툴바 버튼 스타일 */
.whiteboard-toolbar .btn-group .btn {
    padding: 0.5rem 0.75rem;
}

.whiteboard-toolbar .btn-group .btn i {
    font-size: 1rem;
}

.whiteboard-toolbar .form-range {
    height: 30px;
}

/* 색상 선택기 스타일 */
.form-control-color {
    padding: 0.25rem;
    border: 1px solid #dee2e6;
}

/* 선택 박스 스타일 */
.selection-box {
    position: absolute;
    border: 2px solid #667eea;
    background: transparent;
    pointer-events: none;
    z-index: 1000;
}

.selection-handle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #667eea;
    border: 1px solid white;
    border-radius: 2px;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .sticker-panel {
        width: 150px;
    }
    
    .sticker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .whiteboard-toolbar {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .postit-note {
        width: 150px;
        height: 120px;
    }
}

/* 채팅 메시지 버블 크기 최적화 */
.message-text {
    word-break: normal;
    white-space: pre-wrap;
    width: fit-content;
    min-width: 50px;
    max-width: 290px;
    overflow-wrap: break-word;
    text-align: left;
}

/* 짧은 메시지를 위한 최적화 */
.message-body {
    width: fit-content;
    min-width: 50px;
    max-width: 290px;
    display: inline-block;
    text-align: left;
}

/* 메시지 텍스트 자연스러운 줄바꿈 통합 설정 */
.message-content,
.chat-message .message-content {
    word-break: normal;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    hyphens: none;
    text-align: left;
}

/* 날짜 입력 필드 전체 클릭 가능하게 만들기 */
input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
}

input[type="date"] {
    position: relative;
    cursor: pointer;
}

/* 날짜 입력 필드 호버 효과 */
input[type="date"]:hover {
    background-color: #f8f9fa;
}

/* 업로드된 파일 목록 스타일 */
.uploaded-files-list {
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    max-height: 200px;
    overflow-y: auto;
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

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

.uploaded-file-item:hover {
    background-color: #ffffff;
}

.uploaded-file-item .file-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    margin-right: 0.75rem;
}

.uploaded-file-item .file-icon i {
    font-size: 1.1rem;
}

.uploaded-file-item .file-info {
    flex: 1;
    min-width: 0;
}

.uploaded-file-item .file-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uploaded-file-item .file-meta {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.uploaded-file-item .file-meta .file-size {
    font-weight: 500;
}

.uploaded-file-item .file-meta .file-uploader,
.uploaded-file-item .file-meta .file-date {
    color: #8a8a8a;
}

.uploaded-file-item .file-actions {
    flex-shrink: 0;
    display: flex;
    gap: 0.25rem;
}

.uploaded-file-item .file-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.uploaded-file-item .file-actions .btn i {
    font-size: 0.8rem;
}

/* 채팅방 파일 다운로드 개선 스타일 */
.file-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6c757d;
}

/* file-download-hint removed - not needed anymore */
}

.btn-download-file.enhanced {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.btn-download-file.enhanced:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.btn-download-file.enhanced:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 123, 255, 0.3);
}

.btn-download-file.enhanced .download-text {
    font-weight: 500;
}

@media (max-width: 768px) {
    .btn-download-file.enhanced .download-text {
        display: none;
    }
    
    .btn-download-file.enhanced {
        padding: 0.25rem 0.5rem;
    }
}

/* 파일 아이콘 그리드 스타일 */
.file-icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    min-height: 100px;
}

.file-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    position: relative;
}

.file-icon-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.file-icon-item:active {
    transform: translateY(0);
}

.file-icon-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.file-main-icon {
    font-size: 1.75rem;
    color: #6c757d;
}

/* 파일 타입별 아이콘 색상 */
.file-main-icon.bi-file-earmark-pdf {
    color: #dc3545;
}

.file-main-icon.bi-file-earmark-word {
    color: #0062cc;
}

.file-main-icon.bi-file-earmark-excel {
    color: #28a745;
}

.file-main-icon.bi-file-earmark-ppt {
    color: #fd7e14;
}

.file-main-icon.bi-file-earmark-image {
    color: #6f42c1;
}

.file-main-icon.bi-file-earmark-code {
    color: #20c997;
}

.file-main-icon.bi-file-earmark-zip {
    color: #6c757d;
}

.file-icon-name {
    font-size: 0.75rem;
    text-align: center;
    word-break: break-all;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #495057;
}

.btn-delete-file {
    position: absolute;
    top: -6px;
    right: -6px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.file-icon-item:hover .btn-delete-file {
    opacity: 1;
}

.btn-delete-file i {
    color: #dc3545;
    font-size: 1rem;
}

.btn-delete-file:hover {
    transform: scale(1.1);
}

/* 반응형 디자인 */
@media (max-width: 576px) {
    .file-icon-item {
        width: 70px;
    }
    
    .file-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .file-main-icon {
        font-size: 1.5rem;
    }
}

/* 작업 피드 채팅 메시지 스타일 */
.history-message-content {
    margin-top: 0.25rem;
}

/* 작업 피드용 message-bubble */
.history-message-content .message-bubble {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.2;
}

.message-bubble i {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.message-bubble .message-text {
    color: #495057;
    word-break: break-word;
    display: inline;
    white-space: pre-wrap;
}