body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 40px;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    font-size: 14px; /* 기본 폰트 크기 축소 */
}
.container {
    max-width: 1200px;
    margin: 0;
    background-color: #fff;
    padding: 10px 20px 20px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
h1 {
    color: #2c3e50;
    text-align: center;
    margin: 0 0 10px 0;
    font-size: 1.8em; /* 제목 크기 축소 */
}
h2 {
    color: #34495e;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
    margin-top: 15px;
    font-size: 1.2em; /* 부제목 크기 축소 */
}

/* Preview section layout */
.preview-section {
    display: flex !important;
    flex-direction: row !important;
    gap: 25px;
    margin: 0 0 8px 0;
    align-items: flex-start;
}

.preview-info {
    flex: 1.2;
    background-color: #f8f9fa;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.preview-info p {
    margin: 0;
    font-size: 0.85em; /* 미리보기 텍스트 크기 축소 */
    color: #555;
    background-color: transparent;
    border: none;
    padding: 0;
    line-height: 1.5;
}

.preview-content {
    flex: 1;
    width: 100%;
}
.input-section, .interpreter-section {
    background-color: #eaf1f6;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #d0e4f0;
}
.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap; /* Added for responsiveness */
}

/* Special styling for the first input group (symbol, date, time) */
.input-group:first-child {
    flex-wrap: nowrap;
    gap: 15px;
}
.input-group label {
    flex: 0 0 120px; /* Adjusted label width */
    font-weight: bold;
    color: #4a677e;
}

/* Smaller labels for the first row */
.input-group:first-child label {
    flex: 0 0 80px;
}
.input-group input[type="text"],
.input-group select {
    flex: 1;
    padding: 8px 10px; /* 패딩 축소 */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9em; /* 입력 필드 폰트 크기 축소 */
    margin-right: 10px;
    min-width: 100px; /* Adjusted min-width */
}
.input-group input[type="text"]:focus,
.input-group select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Highlight unselected select boxes */
.input-group select {
    background-color: #ffffff;
    color: #333;
}

.input-group select.unselected {
    background-color: #dee2e6 !important;
    color: #343a40 !important;
    border-color: #6c757d !important;
}
.input-group .time-input {
    width: 80px; /* Specific width for time */
    min-width: 80px;
}
.input-group .analysis-input {
    flex: 1;
    min-width: 150px; /* Adjust for analysis fields */
    margin-right: 5px; /* Less margin between analysis fields */
}
.input-group .analysis-input:last-child {
    margin-right: 0;
}
.input-group.full-width {
    flex-wrap: wrap;
}
.input-group.full-width input[type="text"] {
    flex: 1;
    width: auto;
}

/* Radio button styles */
.radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-right: 10px;
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    min-height: 40px;
    align-items: center;
}
.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    color: #333;
    padding: 5px 8px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}
.radio-label:hover {
    background-color: #e9ecef;
}
.radio-label input[type="radio"] {
    margin-right: 5px;
    cursor: pointer;
}
.radio-label span {
    font-size: 0.85em; /* 라디오 버튼 텍스트 크기 축소 */
}

/* Datepicker specific styles */
.ui-datepicker {
    font-size: 0.9em;
}

.filename-preview-item {
    position: relative;
    margin-bottom: 8px;
}

.filename-preview {
    background-color: #e8f4fd;
    padding: 10px 12px; /* 패딩 축소 */
    border-radius: 8px;
    margin-top: 0;
    font-size: 0.95em; /* 파일명 미리보기 폰트 크기 축소 */
    font-family: 'Courier New', Courier, monospace;
    color: #1565c0;
    word-break: break-all;
    position: relative;
    min-height: 30px; /* 높이 축소 */
    display: flex;
    align-items: center;
    font-weight: bold;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #90caf9;
}
.copy-preview-button {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 6px 12px; /* 패딩 축소 */
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8em; /* 버튼 폰트 크기 축소 */
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.copy-preview-button:hover {
    background-color: #218838;
}

.filename-options {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    background-color: #ffffff;
    padding: 18px;
    border-radius: 10px;
    border: 2px solid #3498db;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.copy-message {
    margin-top: 10px;
    text-align: center;
    color: #27ae60;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.copy-message.show {
    opacity: 1;
}
p {
    margin-top: 25px;
    font-size: 0.85em; /* 일반 텍스트 크기 축소 */
    color: #555;
    padding: 10px;
    background-color: #f9f9f9;
    border-left: 4px solid #3498db;
    border-radius: 5px;
}
.note {
    font-size: 0.75em; /* 참고 사항 폰트 크기 축소 */
    color: #777;
    margin-top: 30px;
    padding: 15px;
    background-color: #f0f8ff;
    border: 1px dashed #aed6f1;
    border-radius: 8px;
}
.interpreter-result {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0fff0; /* Light green for success */
    border: 1px solid #c2e0c6;
    border-radius: 8px;
    color: #216c2a;
    font-size: 0.9em; /* 해석 결과 폰트 크기 축소 */
    word-break: break-all;
    white-space: pre-wrap; /* Preserve line breaks */
    max-height: 300px; /* Limit height */
    overflow-y: auto; /* Add scroll if content overflows */
}
.interpreter-result p {
    margin: 5px 0;
    padding: 0;
    background-color: transparent;
    border: none;
    font-size: 0.9em; /* 해석 결과 내 문단 폰트 크기 축소 */
}
.interpreter-result strong {
    color: #004d00;
}
.interpreter-result.error {
    background-color: #fff0f0;
    border-color: #e0c2c2;
    color: #cc0000;
}

/* Market session background colors */
.session-tokyo {
    background-color: #fff3cd !important; /* 노란색 */
    transition: background-color 0.3s ease;
}

.session-london {
    background-color: #d1ecf1 !important; /* 에메랄드색 */
    transition: background-color 0.3s ease;
}

.session-newyork {
    background-color: #e2d9f3 !important; /* 보라색 */
    transition: background-color 0.3s ease;
}

/* Trend section background colors */
.trend-range {
    background-color: #e9ecef !important; /* 회색 (추세없음) */
    transition: background-color 0.3s ease;
}

.trend-uptrend {
    background-color: #d4edda !important; /* 연한 초록색 (상승추세) */
    transition: background-color 0.3s ease;
}

.trend-downtrend {
    background-color: #f8d7da !important; /* 연한 빨간색 (하락추세) */
    transition: background-color 0.3s ease;
}

/* Trade direction select box colors */
#tradeDirection.direction-range {
    background-color: #e9ecef !important; /* 회색 (Range) */
    color: #495057 !important;
    border-color: #adb5bd !important;
    transition: background-color 0.3s ease;
}

#tradeDirection.direction-buy {
    background-color: #d4edda !important; /* 연한 초록색 (Buy) */
    color: #155724 !important;
    border-color: #c3e6cb !important;
    transition: background-color 0.3s ease;
}

#tradeDirection.direction-sell {
    background-color: #f8d7da !important; /* 연한 빨간색 (Sell) */
    color: #721c24 !important;
    border-color: #f5c6cb !important;
    transition: background-color 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .input-group label {
        margin-bottom: 5px;
    }
    .input-group input[type="text"],
    .input-group select {
        width: calc(100% - 24px); /* Full width minus padding and border */
        margin-right: 0;
        margin-bottom: 10px;
    }
    .input-group .time-input {
        width: calc(100% - 24px); /* Full width minus padding and border */
    }
    .input-group .analysis-input {
        width: calc(100% - 24px); /* Full width minus padding and border */
        margin-right: 0;
    }
    .input-group.full-width input[type="text"] {
        width: calc(100% - 24px);
    }
} 