/* 바닥미장 Smart Work System - 메인 스타일시트 */

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

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 로그인 페이지 */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--secondary-color);
    font-size: 14px;
}

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

.login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* 네비게이션 */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

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

.logo-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.navbar-brand h1 {
    font-size: 20px;
    color: var(--primary-color);
}

/* 햄버거 메뉴 버튼 */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.navbar-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.navbar-menu li {
    position: relative;
}

.navbar-menu li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: #cbd5e1;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 6px;
}

.navbar-menu a:hover {
    color: var(--primary-color);
    background: #f8fafc;
}

.menu-icon {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 폼 스타일 - 컴팩트 버전 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-color);
}

.form-group label.required::after {
    content: " *";
    color: var(--error-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="month"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: white;
    color: var(--text-color);
    font-family: inherit;
    line-height: 1.5;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 40px;
}

.form-group select:hover {
    border-color: #94a3b8;
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: white;
}

.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="month"] {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 70px;
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: var(--secondary-color);
    font-size: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.form-section h3 {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
    font-size: 16px;
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
}

/* 버튼 - 컴팩트 버전 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(1px);
}

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

.btn-primary:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    height: 30px;
}

.btn-block {
    width: 100%;
}

/* 알림 - 컴팩트 버전 */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert-success {
    background-color: #d1fae5;
    border-left: 4px solid var(--success-color);
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border-left: 4px solid var(--error-color);
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    border-left: 4px solid var(--warning-color);
    color: #92400e;
}

/* 테이블 */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table thead {
    background-color: #f1f5f9;
}

.table th,
.table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.table th {
    font-weight: 600;
    color: var(--text-color);
    font-size: 13px;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

.table .actions {
    white-space: nowrap;
}

.table .text-center {
    text-align: center;
}

/* 배지 - 컴팩트 버전 */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.badge-planned { background: #dbeafe; color: #1e40af; }
.badge-in_progress { background: #fef3c7; color: #92400e; }
.badge-completed { background: #d1fae5; color: #065f46; }
.badge-suspended { background: #fee2e2; color: #991b1b; }
.badge-pending { background: #e0e7ff; color: #3730a3; }
.badge-assigned { background: #ddd6fe; color: #5b21b6; }
.badge-accepted { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }

/* 통계 카드 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 36px;
}

.stat-info h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--secondary-color);
    font-size: 14px;
}

/* 대시보드 - 컴팩트 버전 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dashboard-section {
    background: white;
    padding: 18px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    font-size: 16px;
    font-weight: 600;
}

/* 필터 */
/* 필터 */
.filter-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

.filter-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.filter-group select,
.filter-group input {
    height: 45px;
}

/* 푸터 */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: var(--secondary-color);
    font-size: 14px;
}

/* 유틸리티 */
.text-muted {
    color: var(--secondary-color);
}

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

.mb-20 {
    margin-bottom: 20px;
}

/* 체크박스 리스트 */
.worker-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

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

.checkbox-item:hover {
    background-color: #f8fafc;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.checkbox-item span {
    font-weight: 500;
}

.checkbox-item small {
    color: var(--secondary-color);
    font-size: 13px;
    margin-left: auto;
}

/* 작업자 선택 그리드 */
.worker-selection {
    margin-top: 15px;
}

.worker-header {
    margin-bottom: 15px;
}

.worker-actions-simple {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.selected-badge {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-left: auto;
}

.worker-list-container {
    max-height: 500px;
    overflow-y: auto;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
}

.worker-list-container::-webkit-scrollbar {
    width: 10px;
}

.worker-list-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.worker-list-container::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 5px;
}

.worker-list-container::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.worker-item {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

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

.worker-item:hover {
    background: #f8fafc;
}

.worker-item:has(input:checked) {
    background: #eff6ff;
    border-left: 4px solid var(--primary-color);
}

.worker-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    margin: 0;
}

.worker-checkbox-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.worker-details {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.worker-name {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
    min-width: 100px;
}

.worker-contact {
    color: #64748b;
    font-size: 14px;
}

/* 토큰 URL 박스 */
.token-url-box {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.token-url-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: monospace;
}

.token-input {
    font-family: monospace;
    font-size: 12px;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 100%;
}

/* 이슈 */
.issue-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.issue-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid;
}

.issue-item.priority-low { border-left-color: #94a3b8; }
.issue-item.priority-medium { border-left-color: #fbbf24; }
.issue-item.priority-high { border-left-color: #f97316; }
.issue-item.priority-urgent { border-left-color: #ef4444; }

.issue-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.issue-type {
    padding: 4px 8px;
    background: #e0e7ff;
    border-radius: 4px;
    font-size: 12px;
}

.issue-priority {
    padding: 4px 8px;
    background: #fee2e2;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.issue-item h4 {
    margin-bottom: 8px;
}

.issue-meta {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--secondary-color);
}

/* ========================================
   모바일 반응형 디자인
   ======================================== */
@media (max-width: 768px) {
    /* 네비게이션 */
    .navbar {
        flex-wrap: wrap;
        padding: 12px 15px;
    }

    .navbar-brand {
        flex: 1;
    }

    .logo {
        gap: 8px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-title {
        font-size: 14px;
    }

    .logo-subtitle {
        font-size: 9px;
        display: none; /* 작은 화면에서 부제목 숨김 */
    }

    .navbar-brand h1 {
        font-size: 16px;
    }

    /* 햄버거 메뉴 버튼 표시 */
    .navbar-toggle {
        display: flex;
        order: 2;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 80px 0 20px 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-menu li {
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
    }

    .navbar-menu li:last-child {
        border-bottom: none;
    }

    .navbar-menu li::after {
        display: none; /* 모바일에서 세로 구분선 숨김 */
    }

    .navbar-menu a {
        display: block;
        padding: 16px 20px;
        font-size: 15px;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 12px;
        border-radius: 0;
    }

    .navbar-menu .menu-icon {
        font-size: 20px;
        min-width: 24px;
    }

    .navbar-menu a:hover,
    .navbar-menu a:active {
        background: #f8fafc;
        color: var(--primary-color);
        padding-left: 25px;
    }

    .navbar-user {
        font-size: 13px;
        gap: 8px;
        order: 3;
    }

    .navbar-user-name {
        display: none; /* 모바일에서 이름 숨김 */
    }

    .navbar-user .btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* 메뉴 오버레이 */
    .navbar-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        width: calc(100vw - 280px);
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    /* 컨테이너 */
    .container {
        padding: 10px;
    }

    /* 페이지 헤더 */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .page-header > div {
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .page-header .btn {
        flex: 1;
        justify-content: center;
    }

    /* 통계 카드 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
        gap: 8px;
    }

    .stat-icon {
        font-size: 28px;
    }

    .stat-info h3 {
        font-size: 22px;
        margin-bottom: 2px;
    }

    .stat-info p {
        font-size: 12px;
    }

    /* 대시보드 */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dashboard-section {
        padding: 15px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-header h2 {
        font-size: 16px;
    }

    /* 필터 */
    .filter-section {
        padding: 15px;
    }

    .filter-form {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-form .btn {
        width: 100%;
    }

    /* 테이블 */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        font-size: 13px;
        min-width: 600px;
    }

    .table th,
    .table td {
        padding: 10px 8px;
        white-space: nowrap;
    }

    .table .btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* 모바일 카드형 테이블 */
    .mobile-table-card {
        display: none;
        background: white;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

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

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

    .mobile-card-label {
        font-weight: 600;
        color: #64748b;
        font-size: 13px;
    }

    .mobile-card-value {
        text-align: right;
        font-size: 14px;
        color: #1e293b;
    }

    .mobile-card-actions {
        display: flex;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 2px solid #f1f5f9;
    }

    .mobile-card-actions .btn {
        flex: 1;
        font-size: 13px;
    }

    /* 폼 */
    .form-section {
        padding: 15px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

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

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* iOS zoom 방지 */
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
        padding: 14px;
        font-size: 15px;
    }

    /* 네비게이션 */
    .nav-menu {
        flex-direction: column;
        gap: 5px;
    }

    .nav-menu a {
        width: 100%;
        text-align: left;
    }

    /* 이슈 */
    .issue-header {
        flex-wrap: wrap;
    }

    .issue-meta {
        flex-direction: column;
        gap: 8px;
    }

    /* 체크박스 리스트 */
    .worker-list {
        max-height: 250px;
    }

    .checkbox-item {
        flex-wrap: wrap;
    }

    .checkbox-item small {
        margin-left: 28px;
        width: 100%;
    }

    /* 작업자 선택 UI */
    .worker-actions-simple {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    .worker-actions-simple .btn {
        width: 100%;
    }

    .selected-badge {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }

    .worker-list-container {
        max-height: 400px;
    }

    .worker-label {
        padding: 12px 15px;
    }

    .worker-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .worker-name {
        min-width: auto;
    }

    .btn-view-logs {
        padding: 5px 10px;
        font-size: 16px;
    }

    /* 모달 반응형 */
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-large {
        max-width: 95%;
    }

    .modal-body {
        padding: 16px;
    }

    .worker-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 22px;
    }

    .work-logs-table th,
    .work-logs-table td {
        padding: 8px 10px;
        font-size: 12px;
    }

    /* 프로젝트 카드 모바일 */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .project-card-header {
        padding: 12px 16px;
    }

    .project-card-title {
        font-size: 14px;
    }

    .project-card-body {
        padding: 16px;
    }

    .project-info-row {
        flex-direction: column;
        gap: 4px;
        padding: 8px 0;
    }

    .info-label {
        min-width: auto;
        font-size: 12px;
    }

    .info-value {
        font-size: 13px;
    }

    /* 토큰 URL */
}

/* 작은 모바일 (360px 이하) */
@media (max-width: 360px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .table {
        font-size: 12px;
        min-width: 500px;
    }

    .stat-info h3 {
        font-size: 20px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .navbar-brand h1 {
        font-size: 14px;
    }

    .btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* 태블릿 가로 모드 */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

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

/* 작업자 근무 기록 모달과 관련 스타일 추가 */
.btn-view-logs {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    margin-left: auto;
}

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

/* 모달 스타일 */
.modal {
    display: none !important;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

/* 모달이 활성화되었을 때만 표시 */
.modal.show {
    display: flex !important;
}

/* 페이지 로드 시 모든 모달과 오버레이 강제 숨김 */
body:not(.modal-open) .modal,
body:not(.modal-open) .modal-overlay,
body:not(.modal-open) [class*="overlay"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* body 기본 스타일 (오버레이 방지) */
body {
    overflow: auto !important;
    position: static !important;
}

/* body에 modal-open 클래스가 있을 때만 스크롤 방지 */
body.modal-open {
    overflow: hidden !important;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-large {
    max-width: 900px;
}

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

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #64748b;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.loading-spinner {
    text-align: center;
    padding: 30px;
    color: #64748b;
    font-size: 14px;
}

/* 작업자 통계 카드 */
.worker-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

/* 근무 기록 테이블 */
.work-logs-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.work-logs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.work-logs-table thead {
    background: #f8fafc;
}

.work-logs-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.work-logs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.work-logs-table tbody tr:hover {
    background: #f8fafc;
}

.work-logs-table tbody tr:last-child td {
    border-bottom: none;
}

/* 프로젝트 카드 그리드 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.project-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.project-card-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.project-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: white;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-card-body {
    padding: 20px;
}

.project-info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}

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

.info-label {
    font-weight: 600;
    color: #64748b;
    min-width: 85px;
    font-size: 13px;
}

.info-value {
    color: #1e293b;
    font-size: 14px;
    flex: 1;
    word-break: break-word;
}

/* 상태 배지 */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-planned {
    background: #dbeafe;
    color: #1e40af;
}

.status-progress {
    background: #dcfce7;
    color: #166534;
}

.status-completed {
    background: #f3e8ff;
    color: #6b21a8;
}

.status-suspended {
    background: #fee2e2;
    color: #991b1b;
}

/* 토큰 URL 박스 */
