:root {
    --bg-color: #0f172a;
    --card-bg: #020617;
    --text-color: #e5e7eb;
    --muted-text: #94a3b8;
    --border-color: #1e293b;
}

/* Light mode */
body.light-mode {
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --text-color: #0f172a;
    --muted-text: #6c757d;
    --border-color: #dee2e6;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.navbar {
    background-color: #020617;
    border-bottom: 1px solid var(--border-color);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    box-shadow: none;
    outline: none;
}

.price-lists {
    list-style: none;
    width: 100%;
}

.price-lists .item {
    text-wrap: nowrap;
    width: max-content;
    text-align: start;
    margin: 0;
    padding: 0;
}

.crypto-name {
    font-weight: 600;
    font-size: clamp(10px, 2vw, 14px);
}

.price-up {
    color: green;
}

.price-down {
    color: red;
}

main {
    min-height: 100vh;
    padding: 2rem 0;
}

.main-news-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    color: var(--text-color);
    width: 100%;
    margin: 0 auto;
    background-color: var(--card-bg);
}

.main-news-card img {
    background-color: #fff;
    overflow: hidden;
    object-fit: cover;
    border: 1px solid var(--border-color);
    width: 100%;
    height: 400px;
    display: block;
}

.news-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.news-card img {
    background: #fff;
    object-fit: cover;
    overflow: hidden;
    width: 100%;
    height: 200px;
}

.news-title {
    color: var(--text-color);

}

.news-content {
    color: var(--text-color);
}

.news-meta,
.ticker-item-time {
    color: var(--muted-text);
}

.news-ticker {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 50vh;
    background-color: var(--card-bg);
    border-left: 1px solid var(--border-color);
    padding: 1rem;
    overflow-y: auto;
}

.news-ticker.disabled {
    display: none !important;
}

.news-ticker ul {
    list-style: none;
    padding: 0;
}

.news-ticker li {
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
    font-weight: 600;
}

.disable-newsticker-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background-color: transparent;
    color: var(--text-color);
}

footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    color: var(--muted-text);
}

.main-content {
    padding: 0 6rem;
}

.img-box {
  width: 50%;
  margin: 0 auto;
}

.img-box img {
  object-fit: cover;
  width: 100%;
}

.detail-keywords {
    margin-top: 10rem;
    text-align: center;
    cursor: default;
}

@media (max-width: 768px) {
    .img-box {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .content-wrapper {
    margin-right: 300px;
    }
}


@media (max-width: 992px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }

    #themeToggle {
        width: 100%;
        justify-content: center;
    }

}

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: auto;
    min-width: 200px;
    padding: 0.75rem 1rem;
    background: #020617;
    z-index: 1;
  }
  .navbar-nav {
    text-align: center;
  }
}

