* {
    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;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.hidden {
    display: none;
}

.loading-content {
    text-align: center;
    color: white;
    max-width: 500px;
    padding: 40px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-content h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.loading-content p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: white;
    transition: width 0.3s ease;
    width: 0%;
}

.loading-details {
    font-size: 0.9em;
    opacity: 0.9;
    margin-top: 10px;
}

.btn-cancel {
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.3);
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    box-shadow: 0 6px 16px rgba(239, 83, 80, 0.4);
    transform: translateY(-2px);
}

.btn-cancel:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(239, 83, 80, 0.3);
}

.btn-cancel:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.loading-log {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
}

.loading-log::-webkit-scrollbar {
    width: 8px;
}

.loading-log::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.loading-log::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.loading-log-item {
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.9);
}

.loading-log-item.success {
    color: #4ade80;
}

.loading-log-item.error {
    color: #f87171;
}

.loading-log-item.warning {
    color: #fbbf24;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1400px;
    width: 95%;
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
    transition: max-width 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 20px;
}

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

.nav-tab {
    padding: 12px 30px;
    border: none;
    background: #f5f5f5;
    color: #666;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s;
}

.nav-tab:hover {
    background: #e0e0e0;
}

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

.page {
    display: none;
}

.page.active {
    display: block;
}

.controls {
    margin-bottom: 20px;
}

.controls-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.options-dropdown {
    margin-top: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-options {
    padding: 12px 24px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-options:hover {
    background: #667eea;
    color: white;
}

.btn-config {
    padding: 12px 20px;
    background: white;
    color: #764ba2;
    border: 2px solid #764ba2;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-config:hover {
    background: #764ba2;
    color: white;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
}

.input-group input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    width: 150px;
    transition: border-color 0.3s;
}

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

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    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.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.fixed-numbers-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.fixed-numbers-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.fixed-numbers-section h3:hover {
    opacity: 0.8;
}

.fixed-numbers-section.collapsed .fixed-numbers-content {
    display: none;
}

.fixed-numbers-section .toggle-icon {
    font-size: 0.8em;
    transition: transform 0.3s;
}

.fixed-numbers-section.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.fixed-numbers-desc {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.fixed-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
}

.fixed-number-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    background: white;
    color: #333;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixed-number-btn:hover {
    border-color: #667eea;
    transform: scale(1.1);
}

.fixed-number-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.fixed-numbers-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    font-size: 0.95em;
}

.fixed-numbers-selected span:first-child {
    color: #666;
    font-weight: 600;
}

.fixed-numbers-selected span:last-child {
    color: #667eea;
    font-weight: bold;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.smart-option-wrapper {
    width: 100%;
}

.config-btn {
    padding: 4px 10px;
    margin-left: 8px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.config-btn:hover {
    background: #667eea;
    color: white;
}

.smart-config-dropdown {
    margin-top: 10px;
    margin-left: 30px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: slideDown 0.2s ease-out;
}

.smart-config-dropdown label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
    font-size: 0.9em;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s;
}

.smart-config-dropdown label:hover {
    background: #f5f5f5;
}

.smart-config-dropdown input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #555;
    font-size: 0.95em;
    position: relative;
}

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

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #555;
    font-size: 0.95em;
    position: relative;
    padding: 8px;
    border-radius: 6px;
    background: white;
    border: 2px solid #e0e0e0;
    transition: all 0.2s;
}

.radio-label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 700;
}

.option-desc {
    color: #999;
    font-size: 0.85em;
    font-weight: 400;
    margin-left: 5px;
}

.tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: help;
    font-size: 0.9em;
    color: #667eea;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85em;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.analysis-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.analysis-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.analysis-section h3:hover {
    opacity: 0.8;
}

.analysis-section.collapsed .analysis-tabs,
.analysis-section.collapsed .analysis-content {
    display: none;
}

.toggle-icon {
    font-size: 0.8em;
    transition: transform 0.3s;
}

.analysis-section.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.analysis-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
}

.analysis-tabs::-webkit-scrollbar {
    height: 6px;
}

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

.analysis-tabs::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.tab-btn {
    padding: 8px 15px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.number-grid::-webkit-scrollbar {
    width: 8px;
}

.number-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.number-grid::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.number-grid::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.analysis-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.analysis-number:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.analysis-number-value {
    font-size: 1.1em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 4px;
}

.analysis-number-count {
    font-size: 0.85em;
    color: #999;
}

.analysis-number.hot {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
}

.analysis-number.hot .analysis-number-value {
    color: #ef5350;
}

.analysis-number.cold {
    background: linear-gradient(135deg, #f5f5ff 0%, #e5e5ff 100%);
}

.analysis-number.cold .analysis-number-value {
    color: #42a5f5;
}

/* 구간 분포 스타일 */
.range-stats, .consecutive-stats, .trend-stats {
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.range-stats h4, .consecutive-stats h4, .trend-stats h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1em;
}

.range-item, .consecutive-item {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.range-name, .consecutive-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.range-bar-container, .consecutive-bar-container {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.range-bar, .consecutive-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.range-value, .consecutive-value {
    text-align: right;
    font-size: 0.9em;
    color: #666;
}

/* 트렌드 스타일 */
.trend-warning, .trend-info {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

.trend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.trend-item {
    padding: 12px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
    border-radius: 8px;
    text-align: center;
    border: 2px solid #ef5350;
}

.trend-number {
    font-size: 1.3em;
    font-weight: bold;
    color: #ef5350;
    margin-bottom: 5px;
}

.trend-info-text {
    font-size: 0.8em;
    color: #666;
}

/* 동반 출현 스타일 */
.companion-stats, .sumrange-stats, .oddeven-stats, .interval-stats {
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.companion-stats h4, .sumrange-stats h4, .oddeven-stats h4, .interval-stats h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1em;
}

.companion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.companion-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.2s;
}

.companion-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.companion-pair {
    font-size: 1.1em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.companion-count {
    font-size: 0.85em;
    color: #666;
}

/* 합계 분석 스타일 */
.avg-sum {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    border-radius: 6px;
    color: #333;
}

.avg-sum strong {
    color: #667eea;
    font-size: 1.2em;
}

/* 홀짝 패턴 스타일 */
.oddeven-item {
    margin-bottom: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.oddeven-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95em;
}

/* 간격 분석 스타일 */
.interval-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.interval-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.2s;
}

.interval-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.interval-value {
    font-size: 1.3em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.interval-count {
    font-size: 0.85em;
    color: #666;
}

.results {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 8px 15px;
    border-radius: 6px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.game-header {
    font-weight: 700;
    color: #667eea;
    font-size: 0.95em;
    min-width: 24px;
    text-align: center;
}

.numbers {
    display: flex;
    gap: 6px;
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
}

.number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.95em;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    animation: pop 0.3s ease-out;
    flex-shrink: 0;
}

@keyframes pop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.number.color-1 { background: linear-gradient(135deg, #fbc02d 0%, #f57f17 100%); }
.number.color-2 { background: linear-gradient(135deg, #42a5f5 0%, #1565c0 100%); }
.number.color-3 { background: linear-gradient(135deg, #ef5350 0%, #c62828 100%); }
.number.color-4 { background: linear-gradient(135deg, #66bb6a 0%, #2e7d32 100%); }
.number.color-5 { background: linear-gradient(135deg, #ab47bc 0%, #6a1b9a 100%); }

.statistics {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.statistics.compact {
    padding: 15px;
    margin-top: 15px;
}

.statistics h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.statistics.compact h3 {
    font-size: 1em;
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.statistics.compact .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.statistics.compact .stat-item {
    padding: 8px 10px;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

.statistics.compact .stat-label {
    font-size: 0.8em;
}

.stat-value {
    color: #667eea;
    font-weight: bold;
    font-size: 1.1em;
}

.statistics.compact .stat-value {
    font-size: 1em;
}

footer {
    margin-top: 40px;
    text-align: center;
    color: #999;
    font-size: 0.9em;
}

.disclaimer {
    margin-top: 5px;
    font-size: 0.85em;
    color: #bbb;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .input-group input {
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .number {
        width: 45px;
        height: 45px;
        font-size: 1em;
    }

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

.update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.update-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.data-management {
    padding: 20px 0;
}

.data-status-card,
.data-actions,
.data-info-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.data-status-card h3,
.data-actions h3,
.data-info-card h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3em;
}

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

.status-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-label {
    color: #999;
    font-size: 0.9em;
}

.status-value {
    color: #667eea;
    font-weight: bold;
    font-size: 1.3em;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    display: none;
}

.btn-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.btn-action:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.btn-action.danger:hover {
    border-color: #ef5350;
    box-shadow: 0 4px 12px rgba(239, 83, 80, 0.2);
}

.btn-action .btn-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.btn-action span:nth-child(2) {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.btn-action .btn-desc {
    font-size: 0.9em;
    color: #999;
    font-weight: normal;
}

.btn-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 12px;
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    color: #555;
    line-height: 1.6;
}

.info-list li strong {
    color: #667eea;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .results.compact {
        grid-template-columns: 1fr;
    }
    
    .results.compact .number {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .number-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 8px;
    }
    
    .data-status-card {
        padding: 15px;
    }
    
    .btn-action {
        padding: 15px;
    }
    
    .btn-action .btn-icon {
        font-size: 1.5em;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .container {
        max-width: 900px;
    }
    
    .results.compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .container {
        max-width: 1200px;
    }
    
    .results.compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .results.compact {
        grid-template-columns: repeat(3, 1fr);
    }
}
