/* 업비트 스마트 자동매매 시스템 스타일 */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    line-height: 1.6;
}

/* 헤더 스타일 */
h1,
h2 {
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    background: linear-gradient(135deg, #007bff, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.8em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 테이블 스타일 */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

tr:last-child td {
    border-bottom: none;
}

/* 폼 요소 스타일 */
input,
select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 250px;
}

input:focus,
select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

input[type="number"] {
    width: 120px;
}

label {
    font-weight: 600;
    color: #555;
    display: inline-block;
    margin-bottom: 5px;
    margin-top: 10px;
}

/* 버튼 스타일 */
button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin: 8px 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 특별한 버튼 스타일 */
#start-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
}

#start-btn:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
}

#stop-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

#stop-btn:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
}

#backtest-btn {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
}

#backtest-btn:hover {
    background: linear-gradient(135deg, #5a32a3, #4c2a85);
}

#analysis-btn {
    background: linear-gradient(135deg, #fd7e14, #e8590c);
}

#analysis-btn:hover {
    background: linear-gradient(135deg, #e8590c, #d44806);
}

/* 상태 텍스트 */
#status-text {
    font-weight: bold;
    padding: 15px;
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 결과 컨테이너 */
.backtest-summary,
.analysis-summary {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.backtest-summary h3,
.analysis-summary h3 {
    margin-top: 0;
    color: #007bff;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* 메트릭 그리드 */
.metrics,
.indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.metric,
.indicator-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric:hover,
.indicator-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.value {
    font-weight: bold;
    font-size: 1.1em;
}

.value.positive {
    color: #28a745;
    text-shadow: 0 1px 2px rgba(40, 167, 69, 0.2);
}

.value.negative {
    color: #dc3545;
    text-shadow: 0 1px 2px rgba(220, 53, 69, 0.2);
}

.value.neutral {
    color: #6c757d;
}

/* 분석 헤더 */
.analysis-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    top: 0;
    left: 0;
}

.score-value {
    font-size: 28px;
    font-weight: bold;
    z-index: 1;
}

.score-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.recommendation {
    font-size: 20px;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recommendation.positive {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 2px solid #b8dacc;
}

.recommendation.negative {
    background: linear-gradient(135deg, #f8d7da, #f1b0b7);
    color: #721c24;
    border: 2px solid #f1b0b7;
}

.recommendation.neutral {
    background: linear-gradient(135deg, #e2e3e5, #d6d8db);
    color: #383d41;
    border: 2px solid #d6d8db;
}

/* 로딩 및 에러 상태 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    font-size: 1.1em;
}

.loading::before {
    content: '⏳ ';
    font-size: 1.5em;
}

.error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
    background: linear-gradient(135deg, #f8d7da, #f1b0b7);
    border-radius: 8px;
    border: 2px solid #f1b0b7;
    font-weight: 600;
}

.error::before {
    content: '❌ ';
    font-size: 1.2em;
}

/* 구분선 */
hr {
    border: none;
    height: 3px;
    background: linear-gradient(to right, transparent, #007bff, transparent);
    margin: 40px 0;
    border-radius: 2px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .metrics,
    .indicators {
        grid-template-columns: 1fr;
    }

    .analysis-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    input,
    select {
        width: 100%;
        max-width: 300px;
    }

    button {
        width: 100%;
        max-width: 300px;
        margin: 5px 0;
    }

    table {
        font-size: 0.9em;
    }

    th,
    td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    .score-circle {
        width: 70px;
        height: 70px;
    }

    .score-value {
        font-size: 20px;
    }

    .recommendation {
        font-size: 16px;
        padding: 8px 16px;
    }
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.backtest-summary,
.analysis-summary {
    animation: fadeIn 0.5s ease-out;
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
}

/* 포커스 접근성 */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* 프린트 스타일 */
@media print {
    body {
        background: white;
        color: black;
    }

    button {
        display: none;
    }

    .backtest-summary,
    .analysis-summary {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

* 매매 모드 선택 스타일 */ .trading-mode-selection {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.trading-mode-selection h3 {
    margin-top: 0;
    color: #007bff;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.mode-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.mode-option {
    cursor: pointer;
    display: block;
}

.mode-option input[type="radio"] {
    display: none;
}

.mode-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    height: 100%;
}

.mode-option input[type="radio"]:checked+.mode-card {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd, #ffffff);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    transform: translateY(-2px);
}

.mode-card:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mode-card h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.mode-card p {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 0.9em;
}

.mode-card ul {
    margin: 0;
    padding-left: 20px;
    color: #555;
    font-size: 0.85em;
}

.mode-card li {
    margin-bottom: 5px;
}

.simple-settings {
    margin-top: 15px;
}

.simple-settings label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
}

.simple-settings input {
    width: 80px;
    margin-left: 10px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .mode-options {
        grid-template-columns: 1fr;
    }

    .mode-card {
        padding: 15px;
    }

    .simple-settings input {
        width: 60px;
    }
}

/* 매매
 모드 선택 스타일 */
.trading-mode-selection {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.trading-mode-selection h3 {
    margin-top: 0;
    color: #007bff;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.mode-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.mode-option {
    cursor: pointer;
    display: block;
}

.mode-option input[type="radio"] {
    display: none;
}

.mode-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mode-card:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.15);
}

.mode-option input[type="radio"]:checked+.mode-card {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd, #f8f9fa);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.mode-card h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.mode-card p {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 0.9em;
}

.mode-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.mode-card li {
    padding: 5px 0;
    color: #555;
    font-size: 0.85em;
}

.mode-card li::before {
    content: '✓ ';
    color: #28a745;
    font-weight: bold;
}

.simple-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.simple-settings label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    color: #555;
}

.simple-settings input[type="number"] {
    width: 80px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
}

.trading-controls {
    text-align: center;
    margin: 20px 0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .mode-options {
        grid-template-columns: 1fr;
    }

    .simple-settings {
        gap: 10px;
    }

    .simple-settings label {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* 모드별 색상 구분 */
.mode-option input[type="radio"]:checked+.mode-card h4 {
    color: #007bff;
}

.mode-card.smart-mode {
    border-left: 4px solid #007bff;
}

.mode-card.simple-mode {
    border-left: 4px solid #28a745;
}

/* 매매 모
드 선택 스타일 */
.trading-mode-selection {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.trading-mode-selection h3 {
    margin-top: 0;
    color: #007bff;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.mode-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.mode-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-option input[type="radio"] {
    display: none;
}

.mode-card {
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    transition: all 0.3s ease;
    height: 100%;
}

.mode-option input[type="radio"]:checked+.mode-card {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd, #ffffff);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    transform: translateY(-2px);
}

.mode-card h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.mode-card p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.9em;
}

.mode-card ul {
    margin: 0;
    padding-left: 20px;
    color: #555;
    font-size: 0.85em;
}

.mode-card li {
    margin-bottom: 5px;
}

.simple-settings {
    margin-top: 15px;
}

.simple-settings label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
}

.simple-settings input {
    width: 80px;
    padding: 5px 8px;
    margin-left: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
}

/* 반응형 디자인 - 모바일에서는 세로로 배치 */
@media (max-width: 768px) {
    .mode-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mode-card {
        padding: 15px;
    }

    .simple-settings input {
        width: 60px;
    }
}

/*
 매매 모드 선택 스타일 */
.trading-mode-selection {
    margin: 20px 0;
}

.mode-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.mode-option {
    cursor: pointer;
    display: block;
}

.mode-option input[type="radio"] {
    display: none;
}

.mode-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    background: white;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mode-option input[type="radio"]:checked+.mode-card {
    border-color: #007bff;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.mode-card h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.mode-card p {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 0.9em;
}

.mode-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mode-card li {
    padding: 5px 0;
    color: #555;
    font-size: 0.85em;
}

.mode-card li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
}

.simple-settings {
    margin-top: 15px;
}

.simple-settings label {
    display: block;
    margin: 10px 0;
    font-size: 0.9em;
    color: #555;
}

.simple-settings input {
    width: 80px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 10px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .mode-options {
        grid-template-columns: 1fr;
    }

    .mode-card {
        padding: 15px;
    }
}

* 매매 모드 선택 스타일 */ .trading-mode-selection {
    margin: 20px 0;
}

.mode-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.mode-option {
    cursor: pointer;
    display: block;
}

.mode-option input[type="radio"] {
    display: none;
}

.mode-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    background: white;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mode-option input[type="radio"]:checked+.mode-card {
    border-color: #007bff;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.mode-card h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.2em;
}

.mode-card p {
    color: #666;
    margin: 0 0 15px 0;
    font-size: 0.9em;
}

.mode-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mode-card li {
    padding: 5px 0;
    color: #555;
    font-size: 0.85em;
}

.mode-card li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
}

.simple-settings {
    margin-top: 15px;
}

.simple-settings label {
    display: block;
    margin: 10px 0;
    font-size: 0.9em;
    color: #555;
}

.simple-settings input {
    width: 80px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 10px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .mode-options {
        grid-template-columns: 1fr;
    }

    .mode-card {
        padding: 15px;
    }
}

/* 
상태 표시 스타일 */
.status-running {
    color: #28a745;
    font-weight: bold;
}

.status-stopped {
    color: #dc3545;
    font-weight: bold;
}

/* 알림 메시지 */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: fadeIn 0.3s, fadeOut 0.3s 2.7s;
    opacity: 0;
    max-width: 300px;
    word-wrap: break-word;
}

.notification.error {
    background: rgba(220, 53, 69, 0.9);
}

.notification.success {
    background: rgba(40, 167, 69, 0.9);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* 상태 텍스트 강조 */
#status-text {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

/* 종목 제외
 설정 스타일 */
.exclude-markets-section {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: #f8f9fa;
}

.exclude-markets-section h3 {
    margin-top: 0;
    color: #dc3545;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exclude-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.exclude-controls label {
    font-weight: bold;
    color: #495057;
}

.exclude-controls select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    background: white;
    min-width: 200px;
}

.exclude-controls button {
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.exclude-controls button:hover {
    background: #c82333;
}

.excluded-markets h4 {
    margin-bottom: 10px;
    color: #495057;
}

.excluded-items {
    min-height: 50px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background: white;
}

.excluded-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px;
    padding: 6px 12px;
    background: #dc3545;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.excluded-item .market-name {
    font-family: monospace;
}

.excluded-item .remove-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: background-color 0.2s;
}

.excluded-item .remove-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.no-excluded {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    margin: 0;
    padding: 20px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .exclude-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .exclude-controls select {
        min-width: auto;
        width: 100%;
    }

    .exclude-controls button {
        width: 100%;
    }

    .excluded-item {
        margin: 2px;
        font-size: 12px;
    }
}

/* 골
든크로스/데드크로스 알림 스타일 */
.crossover-alert {
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border-left-color: #ffd700;
    animation: pulse 2s infinite;
}

.crossover-alert:has(.crossover-message:contains("데드크로스")) {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border-left-color: #dc3545;
}

.crossover-message {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.crossover-strength {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* 데드크로스용 펄스 애니메이션 */
.crossover-alert.dead-cross {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* 이동평균선 상태 표시 개선 */
.indicator-row:has(.label:contains("5일 이평")) .value,
.indicator-row:has(.label:contains("20일 이평")) .value {
    font-family: monospace;
    font-weight: bold;
}

/* 골든크로스/데드크로스 상태에 따른 이동평균선 색상 */
.golden-cross .indicator-row:has(.label:contains("5일 이평")) .value {
    color: #28a745;
}

.dead-cross .indicator-row:has(.label:contains("5일 이평")) .value {
    color: #dc3545;
}

/ * AI 모드 잠금 기능 스타일 */ .mode-card.disabled {
    opacity: 0.6;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-color: #ced4da;
    cursor: not-allowed;
}

.mode-card.disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #ced4da;
}

.mode-card.disabled h4 {
    color: #6c757d;
}

.mode-card.disabled p,
.mode-card.disabled li {
    color: #adb5bd;
}

.unlock-section {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.unlock-section input[type="password"] {
    width: 120px;
    padding: 8px 12px;
    border: 2px solid #007bff;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    font-family: monospace;
    letter-spacing: 2px;
    margin-right: 10px;
}

.unlock-section input[type="password"]:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.unlock-section button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.unlock-section button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* 잠금 해제된 AI 모드 스타일 */
.mode-card:not(.disabled) h4:contains("스마트 AI 모드") {
    color: #007bff;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .unlock-section {
        text-align: center;
    }

    .unlock-section input[type="password"] {
        width: 100px;
        margin-bottom: 10px;
        margin-right: 0;
    }

    .unlock-section button {
        width: 100%;
        max-width: 200px;
    }
}

/* 잠금 아이콘 애니메이션 */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-2px);
    }

    75% {
        transform: translateX(2px);
    }
}

.mode-card.disabled h4:contains("🔒") {
    animation: shake 0.5s ease-in-out;
}

/* 성공 알림 스타일 개선 */
.notification.success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.95), rgba(32, 201, 151, 0.95));
    border-left: 4px solid #28a745;
}

.notification.error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.95), rgba(200, 35, 51, 0.95));
    border-left: 4px solid #dc3545;
}

/* 매도 버튼 섹션 스타일 */
.sell-buttons-section {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ffc107;
}

.sell-buttons-section h3 {
    margin-top: 0;
    color: #ffc107;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.sell-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sell-btn.profitable {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.sell-btn.profitable:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.sell-btn.losing {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.sell-btn.losing:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.sell-btn.all {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    color: white;
}

.sell-btn.all:hover {
    background: linear-gradient(135deg, #5a32a3, #4c2a85);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

.sell-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .sell-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .sell-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}/*
 심플 모드 옵션 그룹 스타일 */
.simple-option-group {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.simple-option-group h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.simple-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.simple-radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
}

.simple-radio-option:hover {
    border-color: #007bff;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.simple-radio-option input[type="radio"] {
    display: none;
}

.simple-radio-option .radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #ced4da;
    border-radius: 50%;
    position: relative;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.simple-radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #007bff;
    background: #007bff;
}

.simple-radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.simple-radio-option input[type="radio"]:checked ~ .radio-text {
    color: #007bff;
    font-weight: 600;
}

.simple-radio-option .radio-text {
    font-size: 13px;
    color: #495057;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .simple-option-group {
        margin: 15px 0;
        padding: 12px;
    }
    
    .simple-radio-group {
        gap: 8px;
    }
    
    .simple-radio-option {
        padding: 6px 10px;
    }
    
    .simple-radio-option .radio-text {
        font-size: 12px;
    }
}