﻿.note-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 515px;
    height: 100vh;
    background: #1a1a1a;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100000;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.8);
}

    .note-panel.active {
        transform: translateX(0);
    }

/* 헤더 */
.note-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14.5px;
    padding-bottom: 14.5px;
    padding-left: 24px;
    padding-right: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .note-panel-header h3 {
        font-size: 20px;
        font-weight: 600;
        color: #fff;
        margin: 0;
    }

.note-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .note-close-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

/* 컨텐츠 영역 */
.note-panel-content {
    height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 24px;
}

    .note-panel-content::-webkit-scrollbar {
        width: 4px;
    }

    .note-panel-content::-webkit-scrollbar-track {
        background: transparent;
    }

    .note-panel-content::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
    }

/* 종목 요약 섹션 */
.note-summary-section {
    margin-bottom: 20px;
}

.stock-info-card {
    border-radius: 12px;
    padding: 16px;
}

.stock-name-large {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}


/* 통계 그리드 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor:pointer;
}

.stat-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

    .stat-value.accent {
        color: #E85454;
    }


/* 종목 정보 헤더 */
.stock-info-header {
    display: flex;
    align-items: center;
    padding: 16px 0;
    margin: 0 0 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stock-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.stock-code {
    font-size: 15px;
    margin-left:5px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 5px;
    border-radius: 6px;
}


/* 액션 카드 */
.note-actions-section {
    margin-bottom: 32px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .action-card:hover {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.15);
        transform: translateX(4px);
    }

.action-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-content {
    flex: 1;
}

.action-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.action-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.action-arrow {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.3);
}



/* 종목 정보 바 */
.note-memo-stock-bar {
    padding: 12px 0;
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
}

.note-memo-stock-badge {
    padding: 4px 12px;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    color: #fa4646;
}

.note-memo-code-badge {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 노트 입력 */
.note-memo-input-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.note-memo-input {
    width: 100%;
    min-height: 500px;
    padding: 16px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    resize: vertical;
    outline: none;
}
.note-memo-input-wrapper:has(.note-memo-input:focus) {
    border-color: rgba(244, 67, 54, 0.3);
    background: rgba(244, 67, 54, 0.02);
    transition: all 0.2s ease;
}

.note-memo-input:focus {
    outline: none;
}

.note-memo-char-count {
    color: rgba(255, 255, 255, 0.7);
    align-content:center;
}

.note-memo-input-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
}

.note-memo-save-btn {
    padding: 6px 20px;
    background: #fa4646;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
}

.note-memo-section-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}


.price-alert-container {
    max-width: 400px;
    margin: 0 auto;
}

/* 종목 정보 바 */
.note-memo-stock-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.note-memo-stock-badge,
.note-memo-code-badge {
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* 탭 선택 영역 */
.price-alert-type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.price-alert-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

    .price-alert-tab.active {
        background: #fa4646;
        color: #fff;
        box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
    }

    .price-alert-tab:hover:not(.active) {
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.8);
    }

/* 지정가 입력 섹션 */
.price-alert-input-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(20px);
}

.price-alert-input-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
    font-weight: 500;
}

.price-alert-input-group {
    position: relative;
    margin-bottom: 16px;
}

.price-alert-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

    .price-alert-input:focus {
        border-color: #ff4757;
        background: rgba(0, 0, 0, 0.5);
        box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
    }

.price-alert-input-label {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    pointer-events: none;
}

/* 계산기 섹션 */
.price-alert-calculator {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
}

.price-alert-calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.price-alert-calc-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.price-alert-calc-current {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 슬라이더 영역 */
.price-alert-slider-container {
    margin-bottom: 24px;
    padding: 10px 0;
}

.price-alert-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.price-alert-slider-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.2s ease;
}

    .price-alert-slider-label:hover {
        color: rgba(255, 255, 255, 0.7);
    }

.price-alert-slider-wrapper {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    padding-top: 20px;
}

.price-alert-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #3b82f6 0%, #3b82f6 50%, #ff4757 50%, #ff4757 100%);
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

    .price-alert-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fff;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        transition: transform 0.2s ease;
        position: relative;
        z-index: 2;
    }

        .price-alert-slider::-webkit-slider-thumb:hover {
            transform: scale(1.1);
        }

.price-alert-percentage {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    /* 선택 및 이벤트 방지 */
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
/* 계산 결과 */
.price-alert-results {
    display: flex;
    gap: 12px;
}

.price-alert-result-box {
    flex: 1;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.price-alert-result-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.price-alert-result-icon {
    font-size: 14px;
}

.price-alert-result-value {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.price-alert-result-box.upper .price-alert-result-value {
    color: #ff4757;
}

.price-alert-result-box.lower .price-alert-result-value {
    color: #3b82f6;
}

.price-alert-submit {
    padding-top: 8px;
    display: flex;
}

/* 저장 버튼 */
.price-alert-save-btn {
    width: 50%;
    padding: 8px;
    margin-left:10px;
    background: #fa4646;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .price-alert-save-btn:active {
        transform: translateY(0);
    }

.price-alert-apply-btn {
    width: 50%;
    margin-left: auto;
    padding: 8px;
    background: #2196f3;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .price-alert-apply-btn:active {
        transform: translateY(0);
    }


.price-alert-input-section,
.price-alert-calculator {
    animation: slideIn 0.4s ease-out;
}

.price-alert-stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -10px;
    margin-bottom: 20px;
}

.price-alert-stock-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.price-alert-stock-code {
    font-size: 15px;
    margin-left: 5px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 5px;
    border-radius: 6px;
}

.price-alert-delete-btn {
    margin-left: auto;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0; /* 크기 고정 */
    white-space: nowrap; /* 줄바꿈 방지 */
}

    .price-alert-delete-btn:hover {
        background: rgba(255, 59, 48, 0.2);
        transform: scale(1.05);
    }