/* Dark theme colors */
body {
    background-color: #0E1117;
    color: #FAFAFA;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Header styles */
.header {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
    padding-top: 60px;
}

.header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #FAFAFA;
}

.header p {
    margin: 10px 0;
    color: #B0B0B0;
}

.auth-section {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.user-greeting {
    color: #FAFAFA;
    font-weight: 500;
}

.text-link {
    color: #B0B0B0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.text-link:hover {
    text-decoration: underline;
}

.login-link {
    color: #60A5FA;
}

.login-link:hover {
    color: #93C5FD;
}

.admin-link {
    color: #FCA5A5;
}

.admin-link:hover {
    color: #FECACA;
}

.logout-link {
    color: #9CA3AF;
}

.logout-link:hover {
    color: #D1D5DB;
}

.separator {
    color: #6B7280;
    font-weight: 300;
}

.divider {
    border: none;
    border-top: 1px solid #3E3E3E;
    margin: 20px 0;
}

/* Login page styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-box {
    background-color: #262730;
    border: 1px solid #3E3E3E;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #FAFAFA;
}

.login-subtitle {
    color: #B0B0B0;
    margin-bottom: 30px;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #FAFAFA;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: #1E1E1E;
    color: #FAFAFA;
    border: 1px solid #3E3E3E;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #4E4E4E;
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #1E1E1E;
    color: #FAFAFA;
    border: 1px solid #3E3E3E;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background-color: #2E2E2E;
    border-color: #4E4E4E;
}

.demo-credentials {
    margin-top: 30px;
    padding: 15px;
    background-color: #1E1E1E;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #B0B0B0;
}

.error-message {
    background-color: #4A1A1A;
    color: #FF6B6B;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #6B2C2C;
}

/* Controls */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.year-month-selector {
    display: flex;
    gap: 15px;
    align-items: center;
}

.selector-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.selector-group label {
    color: #FAFAFA;
    font-weight: 500;
}

.selector {
    padding: 8px 12px;
    background-color: #262730;
    color: #FAFAFA;
    border: 1px solid #3E3E3E;
    border-radius: 4px;
    font-size: 1rem;
}

.selector:focus {
    outline: none;
    border-color: #4E4E4E;
}

.view-mode {
    display: flex;
    gap: 15px;
    align-items: center;
}

.view-mode input[type="radio"] {
    margin-right: 5px;
}

.view-mode label {
    color: #FAFAFA;
    cursor: pointer;
}

/* Schedule container - no split layout */
.schedule-container {
    min-height: 70vh;
    border: 1px solid #3E3E3E;
    border-radius: 6px;
    overflow: hidden;
    background-color: #1B1C21;
}

.schedule-pane {
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}
    background: #4B5563;
}

/* Table styles */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #262730;
    color: #FAFAFA;
    border: 1px solid #3E3E3E;
}

.schedule-table th {
    background-color: #1E1E1E;
    color: #FAFAFA;
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #3E3E3E;
}

.schedule-table td {
    background-color: #262730;
    color: #FAFAFA;
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #3E3E3E;
    vertical-align: middle;
}

.job-title {
    font-weight: 500;
}

/* Calendar styles */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #262730;
    border: 1px solid #3E3E3E;
}

.calendar-table th {
    background-color: #1E1E1E;
    color: #FAFAFA;
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #3E3E3E;
}

.calendar-day {
    width: 14.28%;
    height: 140px;
    vertical-align: top;
    padding: 8px;
    background-color: #262730;
    border: 1px solid #3E3E3E;
    position: relative;
    overflow-y: auto;
}

.empty-day {
    background-color: #1E1E1E;
    border: 1px solid #3E3E3E;
}

.day-number {
    font-weight: bold;
    margin-bottom: 5px;
    color: #FAFAFA;
}

.today-marker {
    color: #FF4B4B;
}

.today-marker::after {
    content: " ●";
    color: #FF4B4B;
}

.event-item {
    font-size: 0.75rem;
    margin-bottom: 3px;
    padding: 4px 6px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    line-height: 1.3;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.event-time {
    font-weight: bold;
    font-size: 0.7rem;
    color: #FFD700;
    margin-bottom: 2px;
    flex-shrink: 0;
}

.event-title {
    color: #FAFAFA;
    font-weight: 500;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.event-location {
    font-size: 0.65rem;
    color: #B0B0B0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 0;
}

.event-done {
    opacity: 0.5;
    color: #888888;
}

.event-working {
    color: #FFD700;
}

.event-pending {
    color: #9CA3AF;
}

.event-pending .event-time,
.event-pending .event-title,
.event-pending .event-location {
    color: #9CA3AF;
}

/* Chat panel styles */
.chat-header {
    font-weight: 700;
    font-size: 1.05rem;
    color: #FAFAFA;
    border-bottom: 1px solid #2F3138;
    padding-bottom: 8px;
}

.chat-messages {
    flex: 1;
    background-color: #111217;
    border: 1px solid #2F3138;
    border-radius: 6px;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    display: flex;
}

.chat-message.user { justify-content: flex-end; }
.chat-message.bot { justify-content: flex-start; }

.chat-bubble {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
}

.chat-message.user .chat-bubble {
    background: #2563EB;
    color: #FFFFFF;
}

.chat-message.bot .chat-bubble {
    background: #262730;
    color: #FAFAFA;
    border: 1px solid #2F3138;
}

.chat-input-row {
    display: flex;
    gap: 10px;
}

.chat-input-row input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    background-color: #111217;
    color: #FAFAFA;
    border: 1px solid #2F3138;
    border-radius: 6px;
}

.chat-input-row button {
    padding: 10px 14px;
    background-color: #2563EB;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.chat-input-row button:hover {
    background-color: #1D4ED8;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .schedule-container {
        min-height: 60vh;
    }
    
    .schedule-pane {
        padding: 10px;
    }

    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .year-month-selector {
        justify-content: center;
    }
    
    .view-mode {
        justify-content: center;
    }
    
    .auth-section {
        position: static;
        justify-content: center;
        margin-bottom: 20px;
        gap: 8px;
        font-size: 0.8rem;
    }
    
    .user-greeting {
        font-size: 0.8rem;
    }
    
    .text-link {
        font-size: 0.8rem;
    }
    
    .separator {
        font-size: 0.7rem;
    }
    
    .schedule-table {
        font-size: 0.9rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 6px 4px;
    }
    
    .calendar-day {
        height: 100px;
        padding: 4px;
    }
    
    .event-item {
        font-size: 0.65rem;
        padding: 2px 4px;
        margin-bottom: 2px;
        display: flex;
        flex-direction: column;
    }
    
    .event-time {
        font-size: 0.6rem;
        flex-shrink: 0;
    }
    
    .event-title {
        font-size: 0.65rem;
        flex-shrink: 0;
    }
    
    .event-location {
        font-size: 0.55rem;
        flex-shrink: 0;
    }
    
    .login-box {
        padding: 30px 20px;
        margin: 20px;
    }
}

/* Form improvements */
input, select, button {
    transition: all 0.3s ease;
}

input:hover, select:hover {
    border-color: #4E4E4E;
}

button:hover {
    background-color: #2E2E2E;
    border-color: #4E4E4E;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Admin Portal Styles */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: #0E1117;
    width: 100%;
    margin: 0;
    padding: 0;
}

.sidebar {
    width: 180px;
    background-color: #1E1E1E;
    border-right: 1px solid #3E3E3E;
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.sidebar-header {
    padding: 12px 15px 8px 15px;
    border-bottom: 1px solid #3E3E3E;
}

.sidebar-header h3 {
    margin: 0 0 6px 0;
    color: #FAFAFA;
    font-size: 1rem;
}

.admin-user-info {
    color: #B0B0B0;
    font-size: 0.8rem;
}

.admin-user-info small {
    display: block;
    color: #888;
    font-size: 0.7rem;
}

.sidebar-nav {
    flex: 1;
    padding: 10px 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #B0B0B0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
    font-size: 0.85rem;
}

.nav-link:hover {
    background-color: #2E2E2E;
    color: #FAFAFA;
}

.nav-item.active .nav-link {
    background-color: #1E3A8A;
    color: #FAFAFA;
    border-left-color: #3B82F6;
}

.nav-icon {
    margin-right: 10px;
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 12px 15px;
    border-top: 1px solid #3E3E3E;
}

.logout-link {
    color: #DC2626;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.logout-link:hover {
    color: #EF4444;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #0E1117;
    width: calc(100% - 180px);
    margin: 0;
    padding: 0;
}

.content-header {
    padding: 10px 15px;
    border-bottom: 1px solid #3E3E3E;
    background-color: #1E1E1E;
    width: 100%;
    box-sizing: border-box;
}

.content-header h1 {
    margin: 0 0 6px 0;
    color: #FAFAFA;
    font-size: 1.4rem;
}

.breadcrumb {
    color: #B0B0B0;
    font-size: 0.8rem;
}

.breadcrumb a {
    color: #3B82F6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.content-body {
    flex: 1;
    padding: 15px 30px;
    width: 100%;
    box-sizing: border-box;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    width: 100%;
}

/* 대시보드 반응형 디자인 */
@media (min-width: 1400px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .sidebar {
        width: 160px;
        min-width: 160px;
    }
    
    .main-content {
        width: calc(100% - 160px);
    }
}

@media (max-width: 991px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 575px) {
    .dashboard-grid {
        gap: 0.8rem;
    }
}

.dashboard-card {
    background-color: #1E1E1E;
    border: 1px solid #3E3E3E;
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    padding: 20px;
    background-color: #262730;
    border-bottom: 1px solid #3E3E3E;
}

.card-header h3 {
    margin: 0;
    color: #FAFAFA;
    font-size: 1.1rem;
}

.card-body {
    padding: 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #3E3E3E;
}

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

.stat-label {
    color: #B0B0B0;
    font-size: 0.9rem;
}

.stat-value {
    color: #FAFAFA;
    font-size: 1.2rem;
    font-weight: bold;
}

.recent-events {
    space-y: 10px;
}

/* 이번주 이벤트 스타일 */
.event-item {
    background-color: #262730;
    border: 1px solid #3E3E3E;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.event-item:hover {
    border-color: #4E4E4E;
    background-color: #2E2E2E;
}

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

.event-date {
    color: #60A5FA;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.event-time {
    color: #FFD700;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.event-title {
    color: #FAFAFA;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.event-client {
    color: #B0B0B0;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.event-location {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.event-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
}

.status-planned {
    background-color: #1E3A8A;
    color: #60A5FA;
}

.status-working {
    background-color: #FFD700 !important;
    color: #000000 !important;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

.status-done {
    background-color: #14532D;
    color: #86EFAC;
}

.status-cancelled {
    background-color: #374151;
    color: #9CA3AF;
}

.no-data {
    color: #888;
    text-align: center;
    font-style: italic;
    margin: 20px 0;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: #262730;
    color: #FAFAFA;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid #3E3E3E;
}

.action-btn:hover {
    background-color: #1E3A8A;
    border-color: #3B82F6;
    color: #FAFAFA;
}

.action-icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Mobile optimization for admin portal */
@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }
    
    .sidebar-nav ul {
        display: flex;
        gap: 10px;
    }
    
    .nav-item {
        flex-shrink: 0;
    }
    
    .nav-link {
        padding: 8px 16px;
        border-radius: 6px;
        border-left: none;
    }
    
    .nav-item.active .nav-link {
        border-left: none;
    }
    
    .content-header {
        padding: 15px 20px;
    }
    
    .content-body {
        padding: 15px 30px;
        width: 100%;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        flex-direction: column;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #4E4E4E;
    outline-offset: 2px;
}

/* 이벤트 관리 스타일 */
.event-management {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.event-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    background-color: #1e1e1e;
    border-radius: 4px;
    border: 1px solid #333;
    width: 100%;
    box-sizing: border-box;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.toggle-slider {
    position: relative;
    height: 24px;
    width: 48px;
    background-color: #444;
    border-radius: 24px;
    transition: background-color 0.3s;
    margin-right: 8px;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #4CAF50;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-label {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

/* To-do 관리 스타일 */
.todo-management {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.todo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
    width: 100%;
    box-sizing: border-box;
}

.todo-header h2 {
    color: #fff;
    margin: 0;
}

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

.add-todo-main-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}

.add-todo-main-btn:hover {
    background-color: #45a049;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.project-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0.6rem;
    transition: border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.project-card:hover {
    border-color: #555;
}

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

.project-info {
    flex: 1;
}

.project-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.project-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.todo-count {
    color: #888;
    font-size: 0.9rem;
}

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

.add-todo-btn {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s;
}

.add-todo-btn:hover {
    background-color: #1976D2;
}

.project-description {
    color: #ccc;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.todos-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.todo-item {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.todo-item:hover {
    border-color: #666;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

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

.todo-title {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    flex: 1;
    min-width: 200px;
}

.todo-title.completed {
    text-decoration: line-through;
    color: #888;
}

.todo-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 심플한 To-do 항목 스타일 */
.todo-item-simple {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 3px;
    padding: 0.4rem 0.5rem;
    margin: 0;
    transition: all 0.3s ease;
}

.todo-item-simple:hover {
    border-color: #666;
    background-color: #333;
}

.todo-item-simple .todo-title {
    flex: 1;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    min-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.todo-item-simple .todo-status {
    min-width: 80px;
}

.todo-item-simple .todo-priority {
    min-width: 70px;
}

.todo-item-simple .todo-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
}

.todo-item-simple .todo-completed-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
    font-size: 0.8rem;
    color: #666;
}

.todo-item-simple .completed-date-text {
    background-color: #e8f5e8;
    color: #2d5a2d;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 500;
}

.todo-item-simple .completed-date-text:contains("미완료") {
    background-color: #f0f0f0;
    color: #666;
}

/* 클릭 가능한 요소 스타일 */
.todo-item-simple .clickable {
    cursor: pointer;
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    transition: all 0.3s ease;
    position: relative;
}

.todo-item-simple .clickable:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.todo-item-simple .clickable::after {
    content: '✏️';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.todo-item-simple .clickable:hover::after {
    opacity: 1;
}

.todo-item-simple .progress-text {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.85rem;
    min-width: 35px;
}

.todo-item-simple .progress-bar-mini {
    width: 50px;
    height: 4px;
    background-color: #333;
    border-radius: 2px;
    overflow: hidden;
}

.todo-item-simple .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.todo-item-simple .todo-actions {
    display: flex;
    gap: 0.5rem;
    min-width: 80px;
}

.todo-item-simple .edit-btn-mini,
.todo-item-simple .delete-btn-mini {
    background: none;
    border: none;
    padding: 0.3rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.todo-item-simple .edit-btn-mini:hover {
    background-color: #4CAF50;
    opacity: 1;
    transform: scale(1.1);
}

.todo-item-simple .delete-btn-mini:hover {
    background-color: #f44336;
    opacity: 1;
    transform: scale(1.1);
}

/* 프로젝트 한 줄 레이아웃 스타일 */
.project-header-simple {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    margin: 0;
    transition: all 0.3s ease;
}

.project-drag-handle {
    cursor: grab;
    color: #666;
    font-size: 12px;
    padding: 4px;
    user-select: none;
    display: inline-block;
    margin-right: 8px;
    transition: color 0.2s ease;
}

.project-drag-handle:hover {
    color: #999;
}

.project-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.project-card {
    transition: transform 0.2s ease;
}

.project-card:hover {
    transform: translateY(-1px);
}

.project-drop-indicator {
    height: 3px;
    background-color: #007bff;
    margin: 5px 0;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}

.project-drop-indicator.active {
    opacity: 1;
}

/* To-do 요약 스타일 */
.todo-summary {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.summary-stats .stat-item {
    background-color: #2a2a2a;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #444;
}

.summary-stats .stat-label {
    display: block;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.summary-stats .stat-value {
    display: block;
    color: #FAFAFA;
    font-size: 1.5rem;
    font-weight: bold;
}

.summary-stats .stat-value.completed {
    color: #4CAF50;
}

.summary-stats .stat-value.pending {
    color: #FF9800;
}

.projects-status, .priority-stats, .recent-todos {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #444;
    margin-bottom: 1.5rem;
}

.projects-status h4, .priority-stats h4, .recent-todos h4 {
    color: #FAFAFA;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid #444;
    padding-bottom: 1rem;
}

.status-grid, .priority-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}

/* 반응형 디자인 */

/* 대형 화면 (1400px 이상) */
@media (min-width: 1400px) {
    .summary-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .todo-summary {
        gap: 3rem;
    }
    
    .status-grid, .priority-grid {
        gap: 3rem;
    }
    
    .status-item, .priority-item {
        padding: 2.5rem 2rem;
        min-height: 120px;
    }
}

/* 중대형 화면 (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .summary-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }
    
    .todo-summary {
        gap: 2.5rem;
    }
    
    .status-grid, .priority-grid {
        gap: 2.5rem;
    }
}

/* 중형 화면 (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .summary-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .todo-summary {
        gap: 2rem;
    }
    
    .status-grid, .priority-grid {
        gap: 2rem;
    }
    
    .status-item, .priority-item {
        padding: 1.8rem 1.5rem;
        min-height: 90px;
    }
}

/* 소형 화면 (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .todo-summary {
        gap: 1.8rem;
    }
    
    .status-grid, .priority-grid {
        gap: 1.8rem;
    }
    
    .projects-status, .priority-stats, .recent-todos {
        padding: 1.5rem;
    }
    
    .status-item, .priority-item {
        padding: 1.5rem 1.2rem;
        min-height: 85px;
        margin-bottom: 1.5rem;
    }
    
    .status-item .status-badge, .priority-item .priority-badge {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }
    
    .status-count, .priority-count {
        font-size: 1.2rem;
        padding: 0.5rem 0.8rem;
    }
}

/* 모바일 화면 (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .todo-summary {
        gap: 1.5rem;
    }
    
    .status-grid, .priority-grid {
        gap: 1.5rem;
    }
    
    .projects-status, .priority-stats, .recent-todos {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .projects-status h4, .priority-stats h4, .recent-todos h4 {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .status-item, .priority-item {
        padding: 1.3rem 1rem;
        min-height: 80px;
        margin-bottom: 1.2rem;
    }
    
    .status-item .status-badge, .priority-item .priority-badge {
        font-size: 0.85rem;
        padding: 0.6rem 0.9rem;
        min-width: 70px;
    }
    
    .status-count, .priority-count {
        font-size: 1.1rem;
        padding: 0.4rem 0.7rem;
        min-width: 45px;
    }
}

/* 소형 모바일 화면 (575px 이하) */
@media (max-width: 575px) {
    .summary-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .todo-summary {
        gap: 1.2rem;
    }
    
    .status-grid, .priority-grid {
        gap: 1.2rem;
    }
    
    .projects-status, .priority-stats, .recent-todos {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .projects-status h4, .priority-stats h4, .recent-todos h4 {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .status-item, .priority-item {
        padding: 1.2rem 0.8rem;
        min-height: 75px;
        margin-bottom: 1rem;
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    
    .status-item .status-badge, .priority-item .priority-badge {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        min-width: 60px;
    }
    
    .status-count, .priority-count {
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
        min-width: 40px;
    }
    
    .recent-todos-list {
        gap: 0.6rem;
    }
    
    .recent-todo-item {
        padding: 0.8rem;
    }
    
    .todo-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .todo-date {
        margin-left: 0;
    }
}

/* 전체 레이아웃 반응형 */
@media (max-width: 991px) {
    .admin-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .sidebar-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sidebar-nav li {
        margin: 0.5rem;
    }
    
    .content-body {
        padding: 1rem 2rem;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .sidebar-nav ul {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sidebar-nav li {
        margin: 0.2rem 0;
    }
    
    .nav-link {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .content-body {
        padding: 0.8rem 1.5rem;
        width: 100%;
    }
    
    .sidebar-header h3 {
        font-size: 1.2rem;
    }
}

.status-item, .priority-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1a1a1a;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    min-height: 100px;
    margin-bottom: 2rem;
}

.status-item .status-badge, .priority-item .priority-badge {
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

.status-item:hover, .priority-item:hover {
    border-color: #555;
    background-color: #222;
    transform: translateY(-2px);
}

.status-count, .priority-count {
    color: #FAFAFA;
    font-weight: bold;
    font-size: 1.4rem;
    background-color: #333;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    min-width: 50px;
    text-align: center;
    border: 2px solid #555;
}

.recent-todos-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.recent-todo-item {
    background-color: #1a1a1a;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.recent-todo-item:hover {
    border-color: #444;
    background-color: #222;
}

.todo-info {
    margin-bottom: 0.5rem;
}

.todo-title {
    color: #FAFAFA;
    font-weight: 600;
    display: block;
    margin-bottom: 0.2rem;
}

.todo-project {
    color: #888;
    font-size: 0.8rem;
}

.todo-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.todo-date {
    color: #666;
    font-size: 0.8rem;
    margin-left: auto;
}

.project-toggle {
    min-width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.project-toggle:hover {
    background-color: #444;
}

.toggle-icon {
    color: #888;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    user-select: none;
}

.toggle-icon:hover {
    color: #fff;
}

/* To-do 목록 컨테이너 스타일 */
.todo-list-container {
    margin-left: 1rem;
    margin-bottom: 0;
    border-left: 2px solid #444;
    padding-left: 0.5rem;
    transition: all 0.3s ease;
    display: none; /* 기본적으로 접힌 상태 */
}

.todo-list-container.collapsed {
    display: none;
}

.todo-list-container.expanded {
    display: block;
}

.project-header-simple:hover {
    border-color: #666;
    background-color: #333;
}

.project-header-simple .project-title {
    flex: 1;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 200px;
}

.project-header-simple .project-status {
    min-width: 100px;
}

.project-header-simple .project-priority {
    min-width: 80px;
}

.project-progress-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.project-progress-mini .progress-text {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 35px;
}

.project-progress-mini .progress-bar-mini {
    width: 60px;
    height: 4px;
    background-color: #333;
    border-radius: 2px;
    overflow: hidden;
}

.project-progress-mini .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.project-actions-mini {
    display: flex;
    gap: 0.5rem;
    min-width: 120px;
}

.project-completed-date {
    min-width: 100px;
    font-size: 0.8rem;
}

.project-header-simple .edit-btn-mini,
.project-header-simple .delete-btn-mini,
.project-header-simple .add-todo-btn-mini {
    background: none;
    border: none;
    padding: 0.3rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.project-header-simple .edit-btn-mini:hover {
    background-color: #4CAF50;
    opacity: 1;
    transform: scale(1.1);
}

.project-header-simple .delete-btn-mini:hover {
    background-color: #f44336;
    opacity: 1;
    transform: scale(1.1);
}

.project-header-simple .add-todo-btn-mini:hover {
    background-color: #2196F3;
    opacity: 1;
    transform: scale(1.1);
}

/* 프로젝트 진행률 섹션 스타일 (기존 큰 버전) */
.project-progress-section {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #444;
}

.project-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.project-progress-header .progress-label {
    color: #ccc;
    font-weight: 600;
    font-size: 0.95rem;
}

.project-progress-text {
    color: #4CAF50;
    font-weight: 700;
    font-size: 1.1rem;
}

.project-progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #333;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A, #CDDC39);
    border-radius: 5px;
    transition: width 0.5s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.project-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 진행률 섹션 스타일 */
.progress-section {
    background-color: #1e1e1e;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.progress-label {
    color: #ccc;
    font-weight: 500;
    font-size: 0.9rem;
}

.progress-text {
    color: #4CAF50;
    font-weight: 600;
    font-size: 1rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.progress-slider {
    flex: 1;
    min-width: 150px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-slider::-webkit-slider-thumb:hover {
    background: #45a049;
    transform: scale(1.1);
}

.progress-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.progress-btn {
    background-color: #555;
    color: #fff;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.progress-btn:hover {
    background-color: #4CAF50;
    transform: translateY(-1px);
}

.todo-type-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.todo-type-badge.type-simple {
    background-color: #4CAF50;
    color: white;
}

.todo-type-badge.type-hierarchical {
    background-color: #FF9800;
    color: white;
}

.priority-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.priority-badge.priority-low {
    background-color: #4CAF50;
    color: white;
}

.priority-badge.priority-medium {
    background-color: #FF9800;
    color: white;
}

.priority-badge.priority-high {
    background-color: #F44336;
    color: white;
}

.priority-badge.priority-critical {
    background-color: #9C27B0;
    color: white;
}

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

.add-subtask-btn {
    background-color: #9C27B0;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s;
}

.add-subtask-btn:hover {
    background-color: #7B1FA2;
}

.todo-description {
    color: #ccc;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.subtask-info {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.todo-assigned, .todo-due-date {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.no-projects, .no-todos {
    text-align: center;
    color: #888;
    padding: 2rem;
    background-color: #1e1e1e;
    border-radius: 8px;
    border: 1px dashed #444;
}

.no-projects p, .no-todos {
    margin: 0 0 1rem 0;
}

/* 유형 선택 카드 스타일 */
.category-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.category-option {
    flex: 1;
    cursor: pointer;
}

.category-option input[type="radio"] {
    display: none;
}

.category-card {
    background-color: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-option input[type="radio"]:checked + .category-card {
    border-color: #4CAF50;
    background-color: #1e3a1e;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
}

.filter-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.filter-select {
    padding: 0.5rem;
    background-color: #262730;
    color: #fafafa;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 0.9rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background-color: #0056b3;
}

.add-event-btn {
    padding: 0.5rem 1rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.add-event-btn:hover {
    background-color: #1e7e34;
}

.events-list {
    background-color: #1e1e1e;
    border-radius: 8px;
    border: 1px solid #333;
    overflow: hidden;
}

.events-table {
    overflow-x: auto;
}

.events-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1e1e1e;
    table-layout: fixed;
}

.events-table th {
    background-color: #262730;
    color: #fafafa;
    padding: 0.4rem 0.25rem;
    text-align: center;
    border-bottom: 1px solid #444;
    font-weight: 600;
    font-size: 0.75rem;
    white-space: nowrap;
}

.events-table th:nth-child(1) { width: 80px; }  /* 날짜 */
.events-table th:nth-child(2) { width: 100px; } /* 시간 */
.events-table th:nth-child(3) { width: 200px; } /* 업무 */
.events-table th:nth-child(4) { width: 120px; } /* 고객 */
.events-table th:nth-child(5) { width: 80px; }  /* 상태 */
.events-table th:nth-child(6) { width: 120px; } /* 위치 */
.events-table th:nth-child(7) { width: 100px; } /* 수익 */
.events-table th:nth-child(8) { width: 60px; }  /* 공개 */
.events-table th:nth-child(9) { width: 100px; } /* 액션 */

.events-table td {
    padding: 0.3rem 0.25rem;
    border-bottom: 1px solid #333;
    color: #fafafa;
    vertical-align: middle;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 0;
}

.events-table td:nth-child(3) { max-width: 200px; } /* 업무 */
.events-table td:nth-child(4) { max-width: 120px; } /* 고객 */
.events-table td:nth-child(6) { max-width: 120px; } /* 위치 */

.events-table tr:hover {
    background-color: #2a2a2a;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background-color: #2196F3;
    color: white;
}

.status-planned {
    background-color: #6c757d;
    color: white;
}

.status-working {
    background-color: #FFD700 !important;
    color: #000000 !important;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

/* 달력 화면에서 Working 상태 강조 */
.calendar-event.working,
.event-item.working,
.schedule-item.working,
.event-working {
    color: #FFD700 !important;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
}

.calendar-event.working .event-title,
.event-item.working .event-title,
.schedule-item.working .event-title,
.event-working .event-title {
    color: #FFD700 !important;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
}

.event-working .event-time,
.event-working .event-location {
    color: #FFD700 !important;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(255, 215, 0, 0.3);
}

/* 리스트 뷰에서 Working 상태 강조 */
tr.event-working,
tr.event-working td {
    color: #FFD700 !important;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(255, 215, 0, 0.3);
}

tr.event-working .job-title {
    color: #FFD700 !important;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
}

/* 달력 이벤트 수정 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #1e1e1e;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #333;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    margin: 0;
    color: #FAFAFA;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #FAFAFA;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #FAFAFA;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #2a2a2a;
    color: #FAFAFA;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.status-done {
    background-color: #28a745;
    color: white;
}

.status-cancelled {
    background-color: #dc3545;
    color: white;
}

.status-completed {
    background-color: #28a745;
    color: white;
}

.status-on-hold {
    background-color: #ff9800;
    color: white;
}

.edit-btn, .delete-btn {
    padding: 0.25rem 0.5rem;
    margin: 0 0.25rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    min-width: 50px;
    white-space: nowrap;
    display: inline-block;
}

.edit-btn {
    background-color: #007bff;
    color: white;
}

.edit-btn:hover {
    background-color: #0056b3;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
}

.delete-btn:hover {
    background-color: #c82333;
}

.no-events {
    padding: 2rem;
    text-align: center;
    color: #888;
}

/* 월별 Summary 스타일 */
.monthly-summary {
    margin-top: 1rem;
    padding: 0.8rem;
    background-color: #262730;
    border-radius: 6px;
    border: 1px solid #3E3E3E;
    width: 100%;
    box-sizing: border-box;
}

.monthly-summary h3 {
    color: #FAFAFA;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    border-bottom: 2px solid #444;
    padding-bottom: 0.3rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.primary-stats {
    margin-bottom: 1rem;
}

.secondary-stats {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.summary-card {
    background-color: #1e1e1e;
    padding: 0.6rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

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

/* 주요 통계 카드 스타일 */
.primary-stats .summary-card:nth-child(1) {
    border-left: 4px solid #2196F3; /* 총 이벤트 - 파란색 */
}

.primary-stats .summary-card:nth-child(2) {
    border-left: 4px solid #FFD700; /* 계획 매출 - 금색 */
}

.primary-stats .summary-card:nth-child(3) {
    border-left: 4px solid #4CAF50; /* 장소 수 - 녹색 */
}

/* 상세 통계 카드 스타일 */
.secondary-stats .summary-card {
    border-left: 4px solid #666; /* 상세 통계 - 회색 */
}

.summary-number {
    font-size: 1.3rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 0.3rem;
}

.summary-label {
    color: #B0B0B0;
    font-size: 0.7rem;
}

.status-summary {
    margin-top: 0.8rem;
}

.status-summary h4 {
    color: #FAFAFA;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.status-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.status-label {
    min-width: 60px;
    color: #FAFAFA;
    font-size: 0.7rem;
}

.status-progress {
    flex: 1;
    height: 14px;
    background-color: #333;
    border-radius: 7px;
    overflow: hidden;
    position: relative;
}

.status-fill {
    height: 100%;
    border-radius: 7px;
    transition: width 0.3s ease;
}

.status-fill.status-planned {
    background-color: #4CAF50;
}

.status-fill.status-working {
    background-color: #FF9800;
}

.status-fill.status-done {
    background-color: #2196F3;
}

.status-fill.status-cancelled {
    background-color: #F44336;
}

.status-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 60px;
}

.status-count {
    color: #FFD700;
    font-weight: bold;
    font-size: 0.7rem;
    margin-bottom: 1px;
}

.status-revenue {
    color: #4CAF50;
    font-weight: 500;
    font-size: 0.65rem;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #1e1e1e;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #444;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #444;
    background-color: #262730;
}

.modal-header h3 {
    margin: 0;
    color: #fafafa;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #fafafa;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fafafa;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    background-color: #262730;
    color: #fafafa;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #444;
    background-color: #262730;
}

.save-btn, .cancel-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.save-btn {
    background-color: #28a745;
    color: white;
}

.save-btn:hover {
    background-color: #1e7e34;
}

.cancel-btn {
    background-color: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background-color: #545b62;
}

/* 이벤트 관리 모바일 최적화 */
@media (max-width: 768px) {
    .event-filters {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filter-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-controls {
        margin-left: 0;
        justify-content: space-between;
        width: 100%;
    }
    
    .toggle-label {
        font-size: 0.8rem;
    }
    
    .toggle-slider {
        height: 20px;
        width: 40px;
    }
    
    .toggle-slider:before {
        height: 14px;
        width: 14px;
        left: 3px;
        top: 3px;
    }
    
    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(20px);
    }
    
    /* To-do 관리 모바일 스타일 */
    .todo-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .header-buttons {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .project-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-actions {
        justify-content: flex-start;
    }
    
    .todo-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .todo-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .todo-title {
        min-width: auto;
    }
    
    .todo-actions {
        justify-content: flex-start;
        width: 100%;
    }
    
    /* 유형 선택 카드 모바일 스타일 */
    .category-options {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .category-icon {
        font-size: 1.5rem;
    }
    
    .category-title {
        font-size: 1rem;
    }
    
    .category-description {
        font-size: 0.8rem;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .events-table {
        font-size: 0.8rem;
    }
    
    .events-table th,
    .events-table td {
        padding: 0.4rem 0.2rem;
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .events-table td:nth-child(3) { max-width: 150px; } /* 업무 - 모바일에서 더 작게 */
    .events-table td:nth-child(4) { max-width: 100px; } /* 고객 - 모바일에서 더 작게 */
    .events-table td:nth-child(6) { max-width: 100px; } /* 위치 - 모바일에서 더 작게 */
    
    .events-table th {
        font-size: 0.8rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    /* Summary 모바일 최적화 */
    .monthly-summary {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .monthly-summary h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .primary-stats {
        margin-bottom: 0.8rem;
    }
    
    .secondary-stats {
        margin-bottom: 1.5rem;
    }
    
    .summary-number {
        font-size: 1.2rem;
    }
    
    .summary-card {
        padding: 0.8rem;
    }
    
    .summary-number {
        font-size: 1.4rem;
    }
    
    .summary-label {
        font-size: 0.8rem;
    }
    
    .status-summary h4 {
        font-size: 1rem;
    }
    
    .status-bar {
        gap: 0.5rem;
    }
    
    .status-label {
        min-width: 60px;
        font-size: 0.8rem;
    }
    
    .status-progress {
        height: 16px;
    }
    
    .status-info {
        min-width: 60px;
    }
    
    .status-count {
        font-size: 0.8rem;
        margin-bottom: 1px;
    }
    
    .status-revenue {
        font-size: 0.7rem;
    }
}

