/* reset.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-y: auto;
}

ul, ol {
    list-style: none;
}

button, input {
    outline: none;
    border: none;
    background: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/* main style.css */
:root {
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --bg-light: #1e1e1e;
    --bg-lighter: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: #333333;
    --red-up: #fa4646;
    --blue-down: #208ef5;
    --blue-accent: #2d7cd0;
    --yellow-accent: #f0c54a;
    --header-height: 40px;
    --top-menu-height: 36px;
    --footer-height: 30px;
    /* ¾Ö´Ï¸ÞÀÌ¼Ç °ü·Ã º¯¼ö */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
}
/* Dark Theme */
.dark-theme {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.main-header {
    height: var(--header-height);
    background-color: var(--bg-darker);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    border-bottom: 1px solid #fa4646;
}

.top-menubar {
    height: var(--top-menu-height);
    background-color: var(--bg-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    border-bottom: 1px solid var(--border-color);
}

.main-content {
    display: flex;
    flex: 1;
    height: calc(100vh - var(--header-height) - var(--top-menu-height) - var(--footer-height));
    padding-left: 20px;
    padding-right: 20px;
}

.center-area {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 760px;
}

.left-sidebar {
    width: 350px;
    min-width: 250px;
    background-color: var(--bg-dark);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.chart-area {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
    min-height: 400px;
}

.right-sidebar {
    width: 500px;
    min-width: 315px;
    background-color: var(--bg-dark);
    border-left: 1px solid var(--border-color);
    overflow-y: auto;
}

.infomation-area {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
    min-height: 400px;
}


/* ±âÁ¸ Layout CSS */
body {
    display: flex;
    flex-direction: column;
}

.main-header {
    height: var(--header-height);
    background-color: var(--bg-darker);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    border-bottom: 1px solid #fa4646;
}

.top-menubar {
    height: var(--top-menu-height);
    background-color: var(--bg-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    border-bottom: 1px solid var(--border-color);
}

/*.main-footer {
    height: var(--footer-height);
    background-color: var(--bg-darker);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
}*/

/* Header Styling */
.logo-area {
    display: flex;
    align-items: center;
}

    .logo-area img {
        height: 24px;
        margin-right: 5px;
    }

.logo-text {
    font-weight: bold;
    margin-right: 10px;
}

.platform-type {
    color: var(--text-secondary);
    margin-right: 10px;
}

.version-container {
    position: relative;
    height: 24px;
    overflow: hidden;
    min-width: 200px;
    background: transparent;
}

.version {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    transform: translateY(0);
    opacity: 1;
    transition: none;
}

    .version.slide-up-out {
        animation: slideUpOut 0.4s ease-in-out forwards;
    }

    .version.slide-up-in {
        animation: slideUpIn 0.4s ease-in-out forwards;
    }

@keyframes slideUpOut {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-30px);
        opacity: 0;
    }
}

@keyframes slideUpIn {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    border-radius: 3px;
    padding: 0 10px;
    height: 28px;
    width: 200px;
}

    .search-box input {
        background: transparent;
        color: var(--text-primary);
        width: 100%;
    }

        .search-box input::placeholder {
            color: var(--text-muted);
        }

.user-menu {
    display: flex;
    align-items: center;
}

    .user-menu button {
        margin-left: 10px;
        color: var(--text-primary);
        cursor: pointer;
    }

.my-info-btn {
    background-color: var(--blue-accent);
    border-radius: 3px;
    padding: 3px 10px;
}

/* Top Menu Bar Styling */
.watchlist-area, .stock-info-header, .market-info, .quick-menu {
    display: flex;
    align-items: center;
}

.tab-title, .tab-actions {
    display: flex;
    align-items: center;
}

.tab-title {
    margin-right: 10px;
}

    .tab-title i, .tab-actions button {
        margin-right: 5px;
        color: var(--text-secondary);
        cursor: pointer;
    }

.btn-star.active {
    color: var(--yellow-accent);
}

.stock-name {
    font-weight: bold;
    padding-left: 5px;
    font-size: 17px;
}

    .stock-name .code {
        color: var(--text-secondary);
        font-weight: normal;
    }

.stock-holding-info {
    font-size: 14px;
    color: #666;
    padding-left: 5px;
}

    .stock-holding-info.up {
        color: var(--red-up);
    }

    .stock-holding-info.down {
        color: var(--blue-down);
    }

    .stock-holding-info.same {
        color: #666;
    }

.stock-price {
    margin-left: 10px;
}

.current-price {
    font-weight: bold;
    font-size: 16px;
}

.change-rate {
    margin-left: 5px;
    font-size: 13px;
}

.up {
    color: var(--red-up);
}

.down {
    color: var(--blue-down);
}

.market-info button, .quick-menu button {
    margin-left: 5px;
    padding: 3px 8px;
    border-radius: 3px;
    color: var(--text-secondary);
    background-color: var(--bg-lighter);
    cursor: pointer;
}

    .market-info button.active {
        background-color: var(--blue-accent);
        color: var(--text-primary);
    }

/* Left Sidebar Styling */
/* °¡°Ý º¯µ¿ ±ôºýÀÌ´Â È¿°ú */
.price-flash-up {
    animation: flashUp 0.4s ease-out;
}

.price-flash-down {
    animation: flashDown 0.4s ease-out;
}

.price-flash-same {
    animation: flashSame 0.3s ease-out;
}

.news-title-and-chevron {
    display: inline-flex;
    align-items: center;
    gap: 14px; /* Á¦¸ñ°ú ²©¼è ¹öÆ° »çÀÌ °£°Ý (¿øÇÏ´Â ¸¸Å­ Á¶Á¤) */
    margin-right: 20px;
}

.news-nav-btn {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 2px 10px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .news-nav-btn:focus {
        outline: none;
    }

.chevron {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 30px;
    color: #fff;
    transition: color 0.2s, opacity 0.2s;
    opacity: 1;
}

    /* Èå¸´ÇÑ(ºñÈ°¼º) »óÅÂ */
    .chevron.disabled {
        color: #aaa; /* ¿¬ÇÑ È¸»ö */
        opacity: 0.4; /* Èå¸´ÇÏ°Ô */
        cursor: default;
    }

@keyframes flashSame {
    0% {
        box-shadow: inset 0 0 0 2px #808080, 0 0 10px rgba(128, 128, 128, 0.3);
    }

    50% {
        box-shadow: inset 0 0 0 2px #808080, 0 0 15px rgba(128, 128, 128, 0.2);
    }

    100% {
        background: transparent;
        box-shadow: none;
    }
}

@keyframes flashUp {
    0% {
        box-shadow: inset 0 0 0 2px #d73502, 0 0 10px rgba(215, 53, 2, 0.5);
    }

    50% {
        box-shadow: inset 0 0 0 2px #d73502, 0 0 15px rgba(215, 53, 2, 0.3);
    }

    100% {
        background: transparent;
        box-shadow: none;
    }
}

@keyframes flashDown {
    0% {
        box-shadow: inset 0 0 0 2px #246ffe, 0 0 10px rgba(36, 111, 254, 0.5);
    }

    50% {
        box-shadow: inset 0 0 0 2px #246ffe, 0 0 15px rgba(36, 111, 254, 0.3);
    }

    100% {
        background: transparent;
        box-shadow: none;
    }
}

/* ±âº» ½ºÅ¸ÀÏ */
.leftside-stock-price-container {
    transition: all 0.1s ease;
    padding: 2px 4px;
    margin: 2px 0;
    border-radius: 4px;
    /* ·¹ÀÌ¾Æ¿ô °íÁ¤ - Å©±â º¯È­ ¹æÁö */
    box-sizing: border-box;
    transform-origin: center;
}

.stock-list {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

.stock-list-tabs {
    font-size: 20px;
    display: flex;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    height: 65px;
}

    .stock-list-tabs .tab {
        padding: 8px 15px;
        cursor: pointer;
    }

    .stock-list-tabs i {
        vertical-align: middle;
        margin-right: 5px;
    }

    .stock-list-tabs .tab.active {
        color: var(--blue-accent);
        border-bottom: 2px solid var(--blue-accent);
    }

.left-section-title {
    font-weight: bold;
    margin-left: 10px;
    font-size: 20px !important;
    display: inline-block;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

    .left-section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--red-up);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(-50%);
    }

    .left-section-title:hover::after {
        width: 30%;
    }

.sidebar-toggle {
    margin-left: auto;
    cursor: pointer;
    margin-right: 5px;
}

    .sidebar-toggle:hover {
        color: var(--blue-accent);
    }


.stock-table tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

    .stock-table tr.active {
        background-color: var(--bg-lighter);
    }

.stock-table td {
    padding: 0;
}

.stock-table tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: inset 2px 0 0 var(--red-up);
    cursor: pointer;
}

.stock-table tr.active {
    background-color: var(--bg-lighter);
    box-shadow: inset 2px 0 0 var(--red-up);
}

.leftside-stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 10px;
}

.leftside-stock-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    padding: 10px;
}


.stock-info i {
    color: var(--text-muted);
}

.stock-price {
    font-size: 18px;
    margin-bottom: 2px;
}

.price-change {
    font-size: 17px;
    display: flex;
    align-items: center;
}

.sidebar-footer {
    position: sticky;
    bottom: 0;
    width: 100%;
    background-color: var(--bg-dark, #191919);
    z-index: 10;
}

.market-info {
    background-color: rgba(30, 30, 30, 1);
    border-bottom: 2px solid #ffd700; /* ³ë¶õ»ö ÇÏ´Ü Å×µÎ¸® */
}

/* ½Ã°£ Á¤º¸ ½ºÅ¸ÀÏ */
.time-info {
    background-color: var(--bg-dark, #191919);
    padding: 5px 10px;
    font-size: 14px;
    color: var(--text-muted, #888);
    text-align: center;
}

/* °øÅë ½ºÅ¸ÀÏ */
.market-symbol {
    display: flex;
    align-items: center;
}

.market-name {
    font-weight: bold;
    margin-right: 5px;
}

.market-icon {
    font-size: 14px;
    margin-right: 5px;
}

.market-value.up {
    color: var(--red-up);
}

.market-value.down {
    color: var(--blue-down);
}

/* ·¹ÀÌ¾Æ¿ô 1: ÇÕ°è ±Ý¾×ÀÌ ÂªÀ» ¶§ (°¡·Î ¹èÄ¡) */
.horizontal-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

    .horizontal-layout .market-value {
        margin-left: auto;
        margin-right: 10px;
    }

    .horizontal-layout .market-total {
        margin-right: 15px;
    }

    .horizontal-layout .market-label {
        margin-right: 5px;
    }

/* ·¹ÀÌ¾Æ¿ô 2: ÇÕ°è ±Ý¾×ÀÌ ±æ ¶§ (¼¼·Î ¹èÄ¡) */
.vertical-layout {
    display: none; /* ±âº»ÀûÀ¸·Î ¼û±è */
    flex-direction: column;
    padding: 8px 10px;
}

.market-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.market-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.market-data {
    text-align: right;
}

    .market-data .market-value {
        margin-right: 10px;
    }

/* ÀÚµ¿ ·¹ÀÌ¾Æ¿ô ÀüÈ¯À» À§ÇÑ ¹Ìµð¾î Äõ¸® */
@media (max-width: 400px) {
    .horizontal-layout {
        display: none;
    }

    .vertical-layout {
        display: flex;
    }
}

/* JavaScript·Î µ¿Àû ÀüÈ¯À» À§ÇÑ Å¬·¡½º */
.use-vertical-layout .horizontal-layout {
    display: none;
}

.use-vertical-layout .vertical-layout {
    display: flex;
}

/* ½ºÄÌ·¹Åæ UI ½ºÅ¸ÀÏ */
.skeleton-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    z-index: 1000;
    transition: opacity 0.4s ease-out;
}

    .skeleton-loading-overlay.fade-out {
        opacity: 0;
        pointer-events: none;
    }

/* ½ºÄÌ·¹Åæ ÁÖ½Ä Çà */
.skeleton-stock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    height: 78.5px;
    max-width: 393px;
    border-bottom: 1px solid var(--border-color);
}

.skeleton-left-side {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skeleton-right-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

/* ½ºÄÌ·¹Åæ ¹Ú½º ¾Ö´Ï¸ÞÀÌ¼Ç */
.skeleton-box {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Á¾¸ñ¸í ½ºÄÌ·¹Åæ */
.skeleton-stock-name {
    width: 80px;
    height: 16px;
}

/* °¡°Ý ½ºÄÌ·¹Åæ (Å« ¹Ú½º) */
.skeleton-price {
    width: 60px;
    height: 18px;
}

/* µî¶ô Á¤º¸ ½ºÄÌ·¹Åæ (ÀÛÀº ¹Ú½º) */
.skeleton-change {
    width: 75px;
    height: 14px;
}

/* ´Ù¾çÇÑ Å©±âÀÇ ½ºÄÌ·¹Åæ ¹Ú½ºµé */
.skeleton-box.short {
    width: 60px;
}

.skeleton-box.medium {
    width: 100px;
    height: 30px;
}

.skeleton-box.long {
    width: 130px;
    height: 25.5px;
}


/* Chart Area Styling */
.chart-toolbar {
    display: flex;
    justify-content: space-between;
    padding: 21px 10px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.chart-tools, .chart-indicators, .chart-view-options {
    display: flex;
    align-items: center;
}

.tool-btn, .indicator-btn, .alert-btn, .replay-btn, .view-btn {
    margin-right: 5px;
    padding: 3px 8px;
    border-radius: 3px;
    background-color: var(--bg-lighter);
    color: var(--text-secondary);
    cursor: pointer;
}

    .view-btn.active {
        background-color: var(--blue-accent);
        color: var(--text-primary);
    }

#main-chart {
    flex: 1;
    background-color: var(--bg-dark);
    position: relative;
}

.chart-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--bg-dark) 25%, var(--bg-darker) 25%, var(--bg-darker) 50%, var(--bg-dark) 50%, var(--bg-dark) 75%, var(--bg-darker) 75%, var(--bg-darker) 100%);
    background-size: 10px 10px;
}

.chart-details {
    height: 180px;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.chart-tabs {
    display: flex;
    padding: 5px 10px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-lighter);
    font-size: 20px;
}

.tab-btn {
    margin-right: 10px;
    padding: 3px 10px;
    cursor: pointer;
    color: var(--text-secondary);
}

    .tab-btn.active {
        color: var(--text-primary);
        border-bottom: 2px solid var(--blue-accent);
    }

.financial-info {
    padding: 5px;
    max-height: 500px;
    overflow-y: auto;
}

.financial-table {
    width: 100%;
    height: 300px;
}

    .financial-table th, .financial-table td {
        padding: 4px 10px;
        font-size: 12px;
    }

    .financial-table th {
        font-weight: normal;
        color: var(--text-secondary);
        background-color: var(--bg-lighter);
        position: sticky;
        top: 0;
    }

#financial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height, 40px);
    box-sizing: border-box;
}

.financial-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
}

.financial-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gray-td-tab {
    font-size: 12.5px;
    text-align: center;
    box-sizing: border-box;
    border: 0px solid #111;
    border-bottom-width: 2px;
    border-bottom-color: rgba(255, 255, 255, .3);
    background: #333;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 1px #111;
    background-image: -webkit-gradient(linear,left top,left bottom,from( #444 ),to( #2D2D2D ));
    background-image: -webkit-linear-gradient( #444,#2D2D2D );
    background-image: -moz-linear-gradient( #444,#2D2D2D );
    background-image: -o-linear-gradient( #444,#2D2D2D );
    background-image: linear-gradient( #444,#2D2D2D );
    height: 40px;
}

.financialOn {
    text-decoration: none;
    padding-left: 5px;
    border-left: 5px solid red;
}

#corpTab0 {
    width: 17%;
}

#corpTab1 {
    width: 17%;
}

#corpTab2 {
    width: 22%;
}

#corpTab3 {
    width: 22%;
}

#corpTab4 {
    width: 22%;
}



.gray-td-tab a, .gray-td-tab a:link, .gray-td-tab a:visited, .gray-td-tab a:hover {
    color: #f0f0f0;
    text-decoration: none;
    height: 40px;
    text-overflow: ellipsis;
}

/* ¿¬°£/ºÐ±â Åä±Û ¹öÆ° ½ºÅ¸ÀÏ */
.toggle-container {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.toggle-btn {
    background-color: var(--bg-light);
    color: var(--text-primary);
    border: none;
    padding: 6px 12px;
    font-size: 17px;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 28px;
    display: flex;
    align-items: center;
}

    .toggle-btn.active {
        background-color: var(--blue-accent);
        color: var(--text-primary);
    }

    .toggle-btn:first-child {
        border-right: 1px solid var(--border-color);
    }

/* µå·Ó´Ù¿î ½ºÅ¸ÀÏ */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background-color: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 28px;
}

    .dropdown-btn i {
        margin-left: 8px;
    }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-lighter);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 100;
    border-radius: 4px;
    overflow: hidden;
}

    .dropdown-content a {
        color: var(--text-primary);
        padding: 10px 12px;
        text-decoration: none;
        display: block;
        font-size: 14px;
    }

        .dropdown-content a:hover {
            background-color: var(--bg-dark);
        }

.dropdown:hover .dropdown-content {
    display: block;
}

/* Â÷Æ®º¸±â ¹öÆ° ½ºÅ¸ÀÏ */
.chart-btn {
    background-color: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 17px;
    cursor: pointer;
    transition: background-color 0.2s;
    align-items: center;
    display: flex;
    height: 28px;
}

    .chart-btn:hover {
        background-color: var(--bg-lighter);
    }

/* ¼­ºêÅ¸ÀÌÆ² ½ºÅ¸ÀÏ */
.financial-subtitle {
    display: flex;
    justify-content: space-between;
    background-color: var(--bg-darker);
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
}

.subtitle-text {
    font-weight: bold;
    color: var(--text-primary);
}

.subtitle-unit {
    color: var(--text-muted);
    font-size: 14px;
}

.financial-sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-dark);
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 20px;
    padding-bottom: 25px;
    height: var(--header-height, 40px);
    box-sizing: border-box;
}

.financial-sub-header-title {
    font-size: 17px;
}

.financial-sub-header-price {
    font-size: 14px;
}

.market-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-dark, #121212);
    color: var(--text-primary, #ffffff);
    margin-right: 15px;
    margin-left: 5px;
    height: var(--top-menu-height, 36px);
    border-bottom: 1px solid var(--border-color, #333333);
    font-size: 18px;
}

/* ÅõÀÚÀÚ µ¥ÀÌÅÍ ¿µ¿ª */
.investor-data {
    display: flex;
    align-items: center;
}

.investor-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.investor-type {
    color: var(--text-secondary, #cccccc);
}

.investor-value.up {
    color: var(--red-up, #fa4646);
}

.investor-value.down {
    color: var(--blue-down, #208ef5);
}

.investor-separator {
    margin: 0 12px;
    color: var(--border-color, #333333);
}

/* Æ¼Ä¿ ¿µ¿ª - Àý´ë °íÁ¤ */
.market-info-ticker {
    display: flex;
    align-items: center;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: 950px !important;
}

.ticker-highlight {
    background-color: var(--red-up);
    color: white;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    margin-right: 10px;
    width: 100px !important;
    flex-shrink: 0 !important;
    text-align: center;
}

.ticker-content {
    overflow: hidden;
    flex: 1;
    margin-top: 3px;
    position: relative;
}

.news-scroll {
    white-space: nowrap;
    animation: scroll-left 25s linear infinite;
}

    .news-scroll.reset {
        animation: none;
    }

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ¹ÝÀÀÇü ½ºÅ¸ÀÏ */
@media (max-width: 768px) {
    .market-status-bar {
        flex-direction: column;
        height: auto;
        padding: 8px 15px;
    }

    .investor-data {
        margin-bottom: 8px;
        width: 100%;
        justify-content: space-between;
    }

    .market-info-ticker {
        width: 100%;
        max-width: 100%;
    }
}

.chart-header-container {
    display: flex;
    align-items: center;
    background-color: #121212;
    color: #fff;
    padding: 11.5px 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border-color);
}

.chart-header-stock-info {
    display: flex;
    align-items: baseline;
    margin-right: 20px;
    margin-bottom: 5px;
}

.chart-header-stock-name {
    font-size: 22px;
    font-weight: bold;
    margin-right: 5px;
}

.chart-header-stock-code {
    font-size: 20px;
    color: #aaa;
}

.chart-header-stock-price {
    font-size: 20px;
    margin-right: 15px;
}

.chart-header-price-change {
    display: flex;
    align-items: center;
    font-size: 19px;
    margin-right: 20px;
}

.chart-header-change-arrow,
.chart-header-change-value,
.chart-header-change-percent {
    margin-right: 10px;
}

/* »ó½Â/ÇÏ¶ô »ö»ó */
.chart-header-up {
    color: var(--red-up);
}

.chart-header-down {
    color: var(--blue-down);
}

.chart-header-action-buttons {
    display: flex;
    margin-right: 15px;
}

.chart-header-btn-icon {
    background: none;
    border: none;
    color: #aaa;
    font-size: 16px;
    margin-right: 10px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

    .chart-header-btn-icon:hover {
        color: #fff;
    }

.chart-header-trading-options {
    display: flex;
    margin-right: 15px;
    /*    margin-left: auto;*/
}

.chart-header-btn-trading {
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
}

.chart-header-nxt {
    background-color: #333;
    color: #ffeb3b;
}

.chart-header-buy {
    background-color: #fa4646;
    color: white;
}

.chart-header-sell {
    background-color: #2196f3;
    color: white;
}

.chart-header-btn-trading:hover {
    filter: brightness(1.1);
}

.chart-header-sidebar-toggle {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
}

.chart-header-market-toggle {
    display: flex;
    align-items: center;
    background-color: #121212;
    color: #fff;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 5px;
}

    .chart-header-market-toggle:hover {
        background-color: #1a1a1a;
    }

.chart-header-market-text {
    display: inline-block;
    width: 29px;
    text-align: center;
    margin-right: 12px;
    font-size: 18px;
}

.chart-header-indicator-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.chart-header-indicator-top,
.chart-header-indicator-bottom {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #444; /* ±âº» È¸»ö */
    transition: background-color 0.2s ease;
}

/* KRX È°¼ºÈ­ »óÅÂ (±âº»°ª) */
.chart-header-market-toggle.krx-active .chart-header-market-text {
    color: var(--text-primary);
}

.chart-header-market-toggle.krx-active .chart-header-indicator-top {
    background-color: #ffeb3b; /* »ó´Ü ³ë¶õ»ö = KRX È°¼ºÈ­ */
}

.chart-header-market-toggle.krx-active .chart-header-indicator-bottom {
    background-color: #444; /* ºñÈ°¼ºÈ­ */
}

/* NXT È°¼ºÈ­ »óÅÂ */
.chart-header-market-toggle.nxt-active .chart-header-market-text {
    color: var(--text-primary); /* NXT ÅØ½ºÆ® ³ë¶õ»ö */
}

.chart-header-market-toggle.nxt-active .chart-header-indicator-top {
    background-color: #444; /* ºñÈ°¼ºÈ­ */
}

.chart-header-market-toggle.nxt-active .chart-header-indicator-bottom {
    background-color: #ffeb3b; /* ÇÏ´Ü ³ë¶õ»ö = NXT È°¼ºÈ­ */
}

/* ¹ÝÀÀÇü */
@media (max-width: 768px) {
    .chart-header-container {
        flex-wrap: wrap;
    }

    .chart-header-action-buttons,
    .chart-header-trading-options {
        margin-top: 10px;
    }
}
/* ¸Å¿ì ÀÛÀº È­¸é¿¡¼­´Â ÅõÀÚÀÚ µ¥ÀÌÅÍ¸¦ Á¤·Ä */
@media (max-width: 480px) {
    .investor-data {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .investor-separator {
        display: none;
    }
}

/* ¹ÝÀÀÇü ½ºÅ¸ÀÏ */
@media (max-width: 600px) {
    .financial-header {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }

    .financial-controls {
        margin-top: 10px;
        flex-wrap: wrap;
    }
}

/* Right Sidebar Styling */
.today-summary, .today-news, .market-summary, .market-index {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    transition: margin-top 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    margin-top: 0;
}

.content-pushed {
    margin-top: var(--push-height, 0px);
}

.content-wrapper {
    transition: margin-top 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    margin-top: 0;
    padding: 10px 20px;
}

.content-pushed .content-wrapper {
    transform: translateY(var(--push-height, 0px));
}

.section-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    .section-title i {
        color: var(--text-muted);
        font-size: 12px;
    }

.price-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.item-title {
    font-size: 12px;
    color: var(--text-secondary);
}

.item-value {
    font-weight: bold;
}

.mini-chart {
    height: 100px;
    background-color: var(--bg-lighter);
    border-radius: 3px;
    margin-bottom: 10px;
}

.news-list {
    max-height: 150px;
    overflow-y: auto;
}

.news-item {
    display: flex;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.news-time {
    min-width: 40px;
    color: var(--text-secondary);
}

.news-title {
    flex: 1;
}

.market-table th, .market-table td {
    padding: 3px 5px;
    text-align: center;
    font-size: 12px;
}

.market-table th {
    color: var(--text-secondary);
    background-color: var(--bg-lighter);
}

.btn-market-info {
    background-color: var(--blue-accent);
    border-radius: 3px;
    padding: 2px 8px;
    color: var(--text-primary);
}
/* ¿À¸¥ÂÊ ÆÐ³Î ¸Þ´º ÄÁÅ×ÀÌ³Ê */
.right-panel-menu {
    width: 100%;
    z-index: 50;
    position: relative; /* absolute ´ë½Å relative »ç¿ë */
}

/* ¸ÞÀÎ ¸Þ´º ¹Ù */
.main-menu-bar {
    display: flex;
    justify-content: space-around;
    padding: 10px 15px !important;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.titles-container {
    position: relative;
    z-index: 10;
    pointer-events: none; /* Å¬¸¯ÀÌ ¾Æ·¡ ¿ä¼Ò·Î Àü´ÞµÇ°Ô ÇÔ */
}

.title-section {
    margin-bottom: 10px;
}


/* ¸ÞÀÎ ¸Þ´º ¾ÆÀÌÅÛ */
.main-menu-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    width: 33.333%;
    transition: all var(--transition-normal) var(--ease-out);
    user-select: none; /* ÅØ½ºÆ® ¼±ÅÃ ¹æÁö */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
}

    .main-menu-item:hover {
        transform: translateY(-2px);
    }

.menu-icon {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin-bottom: 5px;
    transition: color var(--transition-normal);
}

.menu-text {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-normal);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.menu-indicator {
    position: absolute;
    bottom: -1px;
    width: 0;
    height: 3px;
    background-color: var(--red-up);
    transition: width var(--transition-normal) var(--ease-bounce);
    border-radius: 3px 3px 0 0;
    opacity: 0;
}

/* È°¼ºÈ­µÈ ¸ÞÀÎ ¸Þ´º ¾ÆÀÌÅÛ */
.main-menu-item.active .menu-icon,
.main-menu-item.active .menu-text {
    color: var(--text-primary);
}

.main-menu-item.active .menu-indicator {
    width: 60%;
    opacity: 1;
}

/* ¼­ºê¸Þ´º ÄÁÅ×ÀÌ³Ê */
.submenu-container {
    position: absolute;
    top: 100%; /* ¸ÞÀÎ ¸Þ´º ¹Ù ¾Æ·¡¿¡ À§Ä¡ */
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all var(--transition-normal) var(--ease-out);
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 60; /* »óÀ§ z-index·Î º¯°æ */
}

    .submenu-container.active {
        max-height: 300px;
        opacity: 1;
        pointer-events: all;
    }

.submenu-wrapper {
    padding: 15px;
    max-height: 113px;
}

/* ¼­ºê¸Þ´º Çì´õ */
.submenu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.submenu-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.submenu-note {
    font-size: 12px;
    color: var(--yellow-accent);
    padding: 4px 8px;
    background-color: rgba(240, 197, 74, 0.1);
    border-radius: 4px;
}

/* ¼­ºê¸Þ´º ¾ÆÀÌÅÛ */
.submenu-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.submenu-item {
    width: calc(33.333% - 7px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background-color: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    overflow: hidden;
    transition: all var(--transition-normal) var(--ease-out);
}

    .submenu-item:hover {
        background-color: var(--bg-lighter);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.item-highlight {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--red-up) 0%, transparent 100%);
    opacity: 0;
    transition: all var(--transition-normal) var(--ease-out);
}

.submenu-item:hover .item-highlight,
.submenu-item.active .item-highlight {
    width: 100%;
    opacity: 0.15;
}

.item-icon {
    height: 20px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--red-up);
    border-radius: 50%;
    position: relative;
}

    .pulse-dot::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--red-up);
        border-radius: 50%;
        opacity: 0.6;
        animation: pulse 1.5s infinite;
        transform-origin: center;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(2);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.item-text {
    font-size: 17px;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    z-index: 1;
}

.submenu-item.active {
    background-color: var(--bg-lighter);
    border: 1px solid #7a1921;
}

    .submenu-item.active .item-text {
        font-weight: 600;
    }

.submenu-container.active .submenu-item {
    animation: fadeInUp var(--transition-normal) forwards;
    animation-delay: calc(var(--transition-fast) * var(--index, 0));
}

    .submenu-container.active .submenu-item:nth-child(1) {
        --index: 1;
    }

    .submenu-container.active .submenu-item:nth-child(2) {
        --index: 2;
    }

    .submenu-container.active .submenu-item:nth-child(3) {
        --index: 3;
    }

.rightside-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.rightside-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.rightside-header-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}
/* Åä±Û ¹öÆ° ½ºÅ¸ÀÏ */
.rightside-toggle-container {
    position: relative;
    width: 140px;
    height: 34px;
    background-color: #222;
    border-radius: 17px;
    overflow: hidden;
}

.rightside-toggle-option {
    position: absolute;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1;
    transition: color 0.7s;
}

.rightside-toggle-domestic {
    left: 0;
}

.rightside-toggle-foreign {
    right: 0;
}

.rightside-toggle-slider {
    position: absolute;
    width: 50%;
    height: 100%;
    background-color: var(--blue-accent);
    border-radius: 17px;
    transition: transform 0.3s;
    z-index: 0;
}

    .rightside-toggle-slider.rightside-domestic {
        transform: translateX(0);
    }

    .rightside-toggle-slider.rightside-foreign {
        transform: translateX(100%);
    }

.rightside-toggle-active {
    color: #fff;
}

.rightside-toggle-inactive {
    color: #888;
}

.rightside-tabs {
    display: flex;
    background-color: #222;
    border-radius: 5px;
    overflow: hidden;
}

.rightside-tab {
    padding: 8px 20px;
    cursor: pointer;
}

.rightside-tab-active {
    background-color: #000;
}

.rightside-market-item {
    padding: 5px 0;
    border-bottom: 1px solid #333;
    cursor: pointer;
}

.rightside-market-name {
    font-size: 19px;
    margin-bottom: 3px;
}

.rightside-market-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 19px;
}

.rightside-value-price {
    font-size: 19px;
}

.rightside-value-change {
    display: flex;
    align-items: center;
    font-size: 19px;
}

.rightside-up {
    color: var(--red-up);
}

.rightside-down {
    color: var(--blue-down);
}



.rightside-chart-container {
    width: 100%;
    height: 200px;
    background-color: #111;
    margin: 20px 0;
    position: relative;
}

.rightside-chart-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
}

.rightside-time-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
    border-bottom: 1px solid #333;
}

.rightside-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    text-align: center;
}

.rightside-summary-item {
    flex: 1;
}

.rightside-summary-value {
    font-weight: bold;
    margin-top: 5px;
}

.rightside-summary-label {
    font-size: 12px;
    color: #888;
}

/* ¿ä¾à Á¤º¸ ¼½¼Ç - °¡·Î ¹èÄ¡ °ü·Ã ½ºÅ¸ÀÏ */
.rightside-summary-container {
    display: flex;
    justify-content: space-between;
    background-color: #111;
    border-radius: 4px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #333;
}

.rightside-left-container {
    display: flex;
    justify-content: space-between;
    width: 50%;
}

.rightside-left-item, .rightside-right-item {
    text-align: center;
}

.rightside-left-label, .rightside-right-label {
    font-size: 19px;
    color: #888;
}

.rightside-left-value {
    font-size: 19px;
}

.rightside-right-value {
    font-size: 19px;
}

.rightside-right-container {
    display: flex;
    justify-content: space-between;
    width: 45%;
}

.rightside-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.rightside-header-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

/* AI ¿ä¾à ºê¸®ÇÎ ¹öÆ° */
.rightside-ai-container {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #1e3a8a, #064e3b);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(101, 31, 255, 0.2);
    transition: all 0.3s ease;
}

    .rightside-ai-container:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(101, 31, 255, 0.3);
    }

.rightside-news-list-wrapper {
    max-height: 420px;
    overflow-y: auto;
}

.rightside-ai-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* ´º½º ÄÁÅÙÃ÷ ¿µ¿ª */
.rightside-news-list {
    display: flex;
    flex-direction: column;
}

.news-link {
    text-decoration: none;
}

.rightside-news-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    padding-left: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease forwards;
    margin-bottom: 10px;
    line-height: 1.5;
}

    .rightside-news-item:hover {
        background-color: rgba(255, 255, 255, 0.08);
        transform: translateY(-2px);
    }

.rightside-news-content {
    font-size: 17px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.rightside-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.rightside-news-source {
    display: flex;
    align-items: center;
}

.rightside-news-dot {
    margin: 0 6px;
    font-size: 4px;
    vertical-align: middle;
}

.rightside-news-time {
    white-space: nowrap;
}

/* ÇÏÀÌ¶óÀÌÆ® È¿°ú */
.rightside-highlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #800000, var(--red-up) );
}

.status-animate {
    animation: spinY 0.5s cubic-bezier(.4,2.3,.3,1) both;
}

@keyframes spinY {
    0% {
        opacity: 0.7;
        transform: rotateY(-180deg) scale(0.95);
    }

    60% {
        opacity: 1;
        transform: rotateY(20deg) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
    }
}


/* ¾Ö´Ï¸ÞÀÌ¼Ç */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ÆË¾÷ ¿À¹ö·¹ÀÌ */
.rightside-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* ÃÊ±â¿¡´Â ¼û±è Ã³¸® */
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ÆË¾÷ ÄÁÅ×ÀÌ³Ê */
.rightside-popup {
    position: relative;
    width: 90%;
    max-width: 600px;
    height: 80%;
    background-color: #181818;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: slideUp 0.3s ease forwards;
    margin: 0 auto; /* °¡¿îµ¥ Á¤·Ä º¸Àå */
}

/* ÆË¾÷ Çì´õ */
.rightside-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rightside-popup-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.rightside-popup-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #f5a521;
    color: #000;
    font-weight: 700;
    border-radius: 8px;
    margin-right: 10px;
}

.rightside-popup-close {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s;
}

    .rightside-popup-close:hover {
        opacity: 1;
    }

.rightside-popup-date {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: auto;
    margin-right: 15px;
}

/* ÆË¾÷ ÄÁÅÙÃ÷ */
.rightside-popup-content {
    padding: 5px 20px 20px;
    max-height: 75vh;
    overflow-y: auto;
}

/* ´º½º ¼½¼Ç */
.rightside-news-section {
    margin-bottom: 24px;
}

.rightside-section-title {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-top: 10px;
}

.rightside-section-number {
    font-size: 18px;
    font-weight: 700;
    margin-right: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.rightside-section-text {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.rightside-news-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

.rightside-theme-news {
    margin-bottom: 10px;
}

.rightside-theme-stock {
    padding: 5px;
}
/* °­Á¶ Ç¥½Ã */
.rightside-highlight-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #1e3a8a, #064e3b);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 10px;
    margin-top: 20px;
}

/* ¾Ö´Ï¸ÞÀÌ¼Ç */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Å¬·ÎÁî ¹öÆ° ½ºÅ¸ÀÏ */
.rightside-close-icon {
    position: relative;
    width: 24px;
    height: 24px;
}

    .rightside-close-icon:before,
    .rightside-close-icon:after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #fff;
    }

    .rightside-close-icon:before {
        transform: rotate(45deg);
    }

    .rightside-close-icon:after {
        transform: rotate(-45deg);
    }
/* Footer Styling */
.market-status {
    display: flex;
    align-items: center;
}

.status-label {
    margin-right: 5px;
}

.status-value {
    font-weight: bold;
    margin-right: 5px;
}

.status-details {
    color: var(--text-secondary);
}

.footer-info {
    color: var(--text-muted);
    font-size: 11px;
}



@media (min-width: 768px) and (max-width: 1023px) {
    .logo-text{
        font-size:15px !important;
        width:50px;
    }
    .platform-type{
        font-size:14px !important;
    }
    .search-box {
        width: 200px !important;
    }
    .stock-list-tabs {
        font-size: 15px !important;
    }

    .left-section-title {
        font-size: 15px !important;
    }

    .stock-name {
        font-size: 13px !important;
    }
    .stock-price {
        font-size: 13px !important;
    }
    .price-change {
        font-size: 13px !important;
    }
    .chart-header-stock-name {
        font-size: 13px !important;
    }
    .chart-header-stock-code {
        font-size: 13px !important;
    }
    .chart-header-stock-price {
        font-size: 12px !important;
    }

    .chart-header-price-change {
        font-size: 12px !important;
    }
    .chart-tabs {
        font-size: 13px !important;
    }
    .menu-text {
        font-size: 13px !important;
    }
    .rightside-header-title {
        font-size: 13px !important;
    }
    .rightside-toggle-option {
        font-size: 13px !important;
    }
    .rightside-market-name {
        font-size: 13px !important;
    }
    .rightside-ai-container {
        font-size: 11px !important;
        padding: 3px 6px !important;
    }
    .rightside-news-content {
        font-size: 12px !important;
    }
    .rightside-left-label {
        font-size: 13px !important;
    }

    .rightside-left-value {
        font-size: 13px !important;
    }
    .rightside-right-item {
        font-size: 13px !important;
    }

    .rightside-right-value {
        font-size: 13px !important;
    }

    .rightside-right-label {
        font-size: 13px !important;
    }

    .ticker-highlight {
        font-size: 13px !important;
    }

    .ticker-content {
        font-size: 13px !important;
    }
}

/* ³ëÆ®ºÏ (1024px ~ 1279px) */
@media (min-width: 1024px) and (max-width: 1490px) {
    .center-area {
        min-width: 700px;
        min-height:400px !important;
    }

    .left-sidebar {
        width: 300px;
        min-width: 250px;
    }

    .chart-area {
        min-height: 430px !important;
    }

    #main-chart {
        min-height: 430px !important;
    }

    .right-sidebar {
        width: 300px !important;
        min-width: 300px;
    }

    .infomation-area {
        margin-top:70px;
        min-height: 400px !important;
    }

    .logo-text {
        font-size: 17px !important;
        width: 70px;
    }
    .platform-type {
        font-size: 15px !important;
    }
    .search-box{
        width:250px !important;
    }
    .stock-list-tabs{
        font-size:18px !important;
    }
    .left-section-title {
        font-size: 18px !important;
    }
    .stock-name {
        font-size: 15px !important;
    }
    .stock-price {
        font-size: 15px !important;
    }
    .price-change {
        font-size: 15px !important;
    }
    .chart-header-stock-name {
        font-size: 15px !important;
    }
    .chart-header-stock-code {
        font-size: 15px !important;
    }
    .chart-header-stock-price{
        font-size: 14px !important;
    }
    .chart-header-price-change {
        font-size: 14px !important;
    }
    .chart-tabs{
        font-size:14px !important;
    }
    .menu-text{
        font-size:14px !important;
    }
    .rightside-header-title{
        font-size:14px !important;
    }
    .rightside-toggle-option{
        font-size:14px !important;
    }
    .rightside-market-name{
        font-size:14px !important;
    }
    .rightside-ai-container {
        font-size: 13px !important;
        padding: 4px 8px !important;
    }
    .rightside-news-content {
        font-size: 14px !important;
    }
    .rightside-left-label {
        font-size: 15px !important;
    }
    .rightside-left-value {
        font-size: 15px !important;
    }
    .rightside-right-item {
        font-size: 15px !important;
    }
    .rightside-right-value {
        font-size: 15px !important;
    }
    .rightside-right-label {
        font-size: 15px !important;
    }
    .ticker-highlight {
        font-size: 15px !important;
    }
    .ticker-content {
        font-size: 15px !important;
    }
}

#iframe-wrapper, #CalendarContent {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100vh - 113px); /* ¼­ºê¸Þ´º Æ÷ÇÔ ³ôÀÌ */
    overflow: hidden;
    transition: margin-top 0.2s ease;
}

    #iframe-wrapper iframe,
    #CalendarContent iframe {
        flex: 1;
        width: 100%;
        height: 100%;
        border: none;
        background: white;
        transform: translateY(-56px); /* »ó´Ü 55px ¼û±â±â */
    }

/* ÃÊ´ëÇü È­¸é (1920px ÀÌ»ó) - ´õ ³Ð°Ô */
@media (min-width: 1920px) {
    .logo-text {
        font-size: 25px !important;
    }
    .platform-type {
        font-size: 17px !important;
    }
    .search-box {
        width: 300px !important;
    }
    .stock-list-tabs {
        font-size: 22px !important;
    }

    .left-section-title {
        font-size: 22px !important;
    }

}
