h1 {
    font-size: 4rem;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    margin-top: 100px;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
}

.weekly-calendar {
    background-color: #2c2c2c;
    border-radius: 10px;
    border: 1px solid;
    border-color: #8dc63f;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.center-date{
    text-align: center;
    text-decoration: none;
}

#currentWeek {
    cursor: pointer;
}

#currentWeek:hover {
    text-decoration: none !important;
    color: #ee2a7b !important;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-header button {
    background-color: #3c3c3c;
    border: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calendar-header button:hover:not(:disabled) {
    background-color: #4c4c4c;
}

.calendar-header button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#currentWeek {
    font-size: 1.2em;
    font-weight: bold;
    color: #8dc63f;
    cursor: pointer;
}

#currentWeek:hover {
    text-decoration: underline;
}

.week-days {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.week-day {
    flex: 1;
}

.day-button {
    width: 100%;
    background-color: #3c3c3c;
    border: none;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.day-button:hover:not(.disabled) {
    background-color: #4c4c4c;
}

.day-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.day-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.day-date {
    font-size: 0.9em;
    color: #ccc;
}

.badge {
    font-size: 0.8em;
    margin: 1px;
    padding: 3px 5px;
}

#dateList {
    max-height: 300px;
    overflow-y: auto;
}

#dateList .list-group-item {
    cursor: pointer;
    background-color: #2c2c2c;
    color: #fff;
    border-color: #444;
}

#dateList .list-group-item:hover {
    background-color: #3c3c3c;
}

#dateList .list-group-item.active {
    background-color: #8dc63f;
    border-color: #8dc63f;
}

.modal-content {
    background-color: #2c2c2c;
    color: #fff;
}

.modal-header {
    border-bottom-color: #444;
}

.modal-header .btn-close {
    color: #fff;
}

#noDataMessage {
    background-color: #2c2c2c;
    border-color: #444;
    color: #8dc63f;
}

.stock-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.stock-card-header {
    padding: 15px 15px 0px 15px;
}

.stock-card-header h5 {
    font-weight: bold;
    color: #ee2a7b;
    margin: 0;
    font-size: 1.2rem;
}

.stock-code {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: normal;
}

.stock-card-body {
    padding: 15px;
}

.appearance-count {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
}

.daily-status-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.day-status {
    border-radius: 5px;
    padding: 10px;
    flex: 1 1 calc(20% - 8px);
    min-width: 100px;
}

.day-header {
    color: #eee;
    font-size: 1.1rem;
    font-weight: normal;
    margin-bottom: 5px;
}

.status-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.status-badge {
    color: #ccc;
    font-size: 1rem;
    font-weight: bold;
    padding: 3px;
    border-radius: 5px;
    border: solid 2px;
    border-color: #8dc63f;
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    
}

#indexChart {
    width: 100%;
    height: 500px;
    margin-bottom: 20px;
}


#indicesTable {
    margin-top: 20px;
}


.table th,
.table td {
    font-size: 1.1rem;
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #32383e;
    vertical-align: middle;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #32383e;
}

.indices-cards-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.index-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    width: 48%;
    margin-bottom: 20px;
}

.index-card-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: #8dc63f;
    margin-bottom: 15px;
}

.index-card-body {
    display: flex;
    flex-direction: column;
}

.index-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.index-label {
    font-size: 1rem;
    color: #fff;
}

.index-data {
    font-size: 1rem;
    font-weight: bold;
    text-align: right;
}

.positive-change {
    color: #dc3545; /* Bootstrap's danger color */
}

.negative-change {
    color: #0d6efd; /* Bootstrap's primary color */
}

.zero-change {
    color: #ffffff; /* White color */
}


@media (max-width: 768px) {
    .indices-cards-container {
        flex-direction: column;
    }

    .index-card {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .day-status {
        flex: 1 1 calc(33.33% - 7px);
    }
}

@media (max-width: 768px) {
    .day-status {
        flex: 1 1 calc(50% - 5px);
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .week-days {
        flex-direction: column;
    }
    
    .week-day {
        margin-bottom: 10px;
    }
}

/* 뉴스/이슈 컨테이너 스타일 */
.news-container {
    background-color: #2c2c2c;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.news-content {
    background-color: #2c2c2c;
    border-left: 4px solid #8dc63f;
    padding: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 뉴스 텍스트 기본 스타일 */
.news-text,
.news-display {
    color: #eee;
    font-size: 1.1rem;
    line-height: 1.6;
}

.news-display {
    min-height: 60px;
}

/* 뉴스 내용의 단락 스타일 */
.news-text p,
.news-display p {
    margin: 15px 0 15px 0;
    text-align: justify;
}

/* 제목 스타일 */
.news-text h1, .news-text h2, .news-text h3, .news-text h4, .news-text h5, .news-text h6,
.news-display h1, .news-display h2, .news-display h3, .news-display h4, .news-display h5, .news-display h6 {
    color: #eee;
    margin-top: 1.1em;
    margin-bottom: 0.4em;
}

/* 리스트 스타일 */
.news-text ul, .news-text ol,
.news-display ul, .news-display ol {
    padding-left: 2em;
    margin-bottom: 1em;
}

/* 텍스트 서식 */
.news-text strong, .news-text b {
    font-weight: bold;
}

.news-text em, .news-text i {
    font-style: italic;
}

/* 링크 스타일 */
.news-text a {
    color: #8dc63f;
    text-decoration: underline;
}

.news-text a:hover {
    text-decoration: none;
}

/* 테이블 스타일 */
.news-text table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1em;
}

.news-text table, .news-text th, .news-text td {
    border: 1px solid #444;
}

.news-text th, .news-text td {
    padding: 0.5em;
    text-align: left;
}

.news-text th {
    background-color: #444;
}

/* 텍스트 정렬 스타일 */
.news-text .text-left,
.news-display .text-left {
    text-align: left;
}

.news-text .text-center,
.news-display .text-center {
    text-align: center;
}

.news-text .text-right,
.news-display .text-right {
    text-align: right;
}

.news-text .text-justify,
.news-display .text-justify {
    text-align: justify;
}

/* 버튼 스타일 */
.btn-outline-light {
    color: #e0e0e0;
    border-color: #555;
}

.btn-outline-light:hover {
    background-color: #555;
    color: #fff;
}

.btn-outline-success {
    color: #8dc63f;
    border-color: #8dc63f;
}

.btn-outline-success:hover {
    background-color: #8dc63f;
    color: #000;
}

/* 헤더 컨테이너 */
.header-container {
    background-color: #2c2c2c;
    border-radius: 10px;
    border: 1px solid #8dc63f;
    padding: 20px;
    margin-bottom: 20px;
}

.select-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-container {
    margin-top: 15px;
}

.date-display {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 15px;
    color: #8dc63f;
}

/* TinyMCE 에디터 스타일 */
.tox-tinymce {
    border: 1px solid #444 !important;
    border-radius: 5px !important;
}

.tox .tox-edit-area__iframe {
    background-color: #2c2c2c !important;
}

textarea.form-control {
    background-color: #333;
    color: #eee;
    border-color: #555;
}

textarea.form-control:focus {
    background-color: #444;
    color: #eee;
    border-color: #8dc63f;
    box-shadow: 0 0 0 0.25rem rgba(141, 198, 63, 0.25);
}