.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 8px;
}

.alert-warning h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.alert-warning p {
    margin: 5px 0;
}

.page-header {
    margin-bottom: 30px;
}
.report-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.report-form, .report-list {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

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

.btn-secondary:hover {
    background: #5a6268;
}

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

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

.image-upload {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.image-upload:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.image-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.image-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

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

.image-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.report-table th,
.report-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 13px;
}

.report-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
}

.report-table tr:hover {
    background: #f8f9fa;
    cursor: pointer;
}

.search-box {
    margin-bottom: 15px;
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.alert {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.calendar-input {
    display: flex;
    gap: 5px;
}

.calendar-input input {
    flex: 1;
}

.calendar-btn {
    padding: 10px 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.mobile-list-toggle {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 998;
    transition: all 0.3s;
}

.mobile-list-toggle:active {
    transform: scale(0.95);
}

.mobile-list-toggle.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 모바일 탭 스타일 */
.mobile-tabs {
    display: none;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.mobile-tab {
    flex: 1;
    padding: 15px;
    border: none;
    background: white;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.mobile-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8f9fa;
}

@media (max-width: 1024px) {
    .mobile-tabs {
        display: flex;
    }

    .report-container {
        display: block;
        grid-template-columns: none;
    }
    
    /* 탭에 따라 보이기/숨기기 */
    .report-form, .report-list {
        display: none;
        width: 100%;
    }
    
    .report-container.show-form .report-form {
        display: block;
    }
    
    .report-container.show-list .report-list {
        display: block;
        position: static;
        width: 100%;
        max-width: none;
        height: auto;
        z-index: auto;
        margin: 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* 기존 토글 버튼 숨김 */
    .mobile-list-toggle, 
    .mobile-overlay, 
    .list-close-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .report-container {
        padding: 0;
    }
    
    .report-form {
        padding: 20px 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .image-item {
        width: 80px;
        height: 80px;
    }
    
    .report-table {
        font-size: 12px;
    }
    
    .report-table th,
    .report-table td {
        padding: 8px 5px;
    }
}

/* 미리보기 모달 스타일 */
.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.preview-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.preview-header {
    padding: 20px 25px;
    border-bottom: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-header h2 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.preview-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    transition: color 0.2s;
}

.preview-close:hover {
    color: #333;
}

.preview-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.preview-footer {
    padding: 20px 25px;
    border-top: 2px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 미리보기 내용 스타일 */
.report-preview {
    max-width: 100%;
}

.report-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    color: #333;
}

.report-section {
    margin-bottom: 25px;
}

.report-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    color: #333;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.preview-table th,
.preview-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 14px;
}

.preview-table th {
    background: #f8f9fa;
    font-weight: 600;
    width: 25%;
    color: #555;
}

.report-content {
    padding: 15px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 14px;
}

.preview-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.preview-images img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .preview-modal {
        padding: 10px;
    }
    
    .preview-modal-content {
        max-height: 95vh;
    }
    
    .preview-header {
        padding: 15px;
    }
    
    .preview-header h2 {
        font-size: 18px;
    }
    
    .preview-body {
        padding: 15px;
    }
    
    .preview-footer {
        padding: 15px;
        flex-direction: column;
    }
    
    .preview-footer .btn {
        width: 100%;
    }
    
    .report-title {
        font-size: 20px;
    }
    
    .report-section h3 {
        font-size: 15px;
    }
    
    .preview-table th,
    .preview-table td {
        padding: 8px;
        font-size: 13px;
    }
    
    .preview-images {
        grid-template-columns: 1fr;
    }
}
