* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 95vw;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: white;
    margin-bottom: 20px;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.info-panel {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cursor-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

#acceleration-level {
    color: #ff5722;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

#acceleration-level.accelerating {
    color: #ff0000;
    font-weight: 900;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    animation: pulse-acceleration 0.5s ease-in-out infinite alternate;
}

@keyframes pulse-acceleration {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.jump-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(33, 150, 243, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.jump-controls label {
    font-weight: bold;
    color: #1976d2;
    white-space: nowrap;
}

#jump-col-input {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    text-align: center;
}

#jump-col-input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

#jump-col-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    white-space: nowrap;
}

#jump-col-btn:hover {
    background: #1976d2;
}

#jump-col-btn:active {
    transform: translateY(1px);
}

#reset-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

#reset-btn:hover {
    background: #45a049;
}

.table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    height: 70vh;
    overflow: auto;
    cursor: crosshair;
}

.scroll-indicator {
    position: absolute;
    background: rgba(255, 0, 0, 0.3);
    z-index: 1000;
    pointer-events: none;
}

.scroll-indicator.horizontal {
    height: 3px;
    top: 0;
    left: 0;
    right: 0;
}

.scroll-indicator.vertical {
    width: 3px;
    top: 0;
    bottom: 0;
    left: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    min-width: 80px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 100;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #e3f2fd;
    transition: background-color 0.2s;
}

td.highlight {
    background-color: #ffeb3b !important;
    font-weight: bold;
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stats {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stats div {
    text-align: center;
}

/* 스크롤바 스타일링 */
.table-container::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .info-panel {
        flex-direction: column;
        gap: 10px;
    }
    
    .stats {
        flex-direction: column;
        gap: 10px;
    }
    
    th, td {
        min-width: 60px;
        padding: 6px;
        font-size: 11px;
    }
}
