.coin-detail {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 6px;
    background: #ffffff;
}

/* Error styling */
.coin-detail-error {
    color: #dc3545;
    padding: 1rem;
    border-left: 4px solid #dc3545;
    background: #fff;
    margin: 1rem 0;
}

/* Rank styling */
.coin-rank {
    font-size: 2rem;
    font-weight: 500;
    display: inline-flex;
    width: auto;
    background-color: var(--cr-primary)!important;
    color: #000;
}

/* Price styling */
.coin-price-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: transparent!important;
}

.current-price {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
}

.price-change {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    position: relative;
}

.price-change:before {
    content: "";
    position: absolute;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 8px;
    margin-left: 3px;
}

.price-change.positive {
    background: #046324;
    color: #ffffff;
}

.price-change.positive:before {
    border-bottom: 6px solid currentColor;
}

.price-change.negative {
    background: #dd0707;
    color: #ffffff;
}

.price-change.negative:before {
    border-top: 6px solid currentColor;
}

.price-change-label {
    font-size: 0.8rem;
}

/* Spotlight styling */
.crypto-spotlight p {
    line-height: 1.6;
    margin: 0;
}

.crypto-spotlight span {
    font-weight: 600;
}

/* Market Stats styling */
.coin-market-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.stats-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.stats-item h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.stats-item p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

/* Converter styling */
.crypto-usd-converter {
    padding: 2rem;
    border-radius: 12px;
}

.converter-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #000000;
}

.converter-input-group {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.converter-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.25rem;
    color: #000000;
    padding: 0.5rem;
    width: 100%;
    outline: none;
}

.converter-input-group input::placeholder {
    color: #000000;
}

.converter-input-group input::-webkit-outer-spin-button,
.converter-input-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.converter-input-group input[type=number] {
    -moz-appearance: textfield;
}

.coin-symbol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid #dee2e6;
}

.coin-icon {
    font-weight: bold;
    color: #495057;
}

.coin-name {
    color: #6c757d;
    font-size: 0.9rem;
}

.converter-arrow {
    text-align: center;
    color: #adb5bd;
    font-size: 2rem;
    margin: 0.5rem 0;
}

/* Table styling */
.crypto-table-wrapper {
    overflow-x: auto;
}

.crypto-table-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.crypto-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 5px;
    overflow: hidden;
    padding: 0 9px;
}

.crypto-table-row {
    border-bottom: 1px solid #dee2e6;
}

.crypto-table-cell {
    padding: 1.5rem 1rem;
    text-align: left;
}

.crypto-table-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.crypto-table-price-change {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.crypto-table-positive {
    background: #e6f4ea;
    color: #137333;
}

.crypto-table-negative {
    background: #fce8e6;
    color: #c5221f;
}

/* TradingView styling */
.tradingview-widget-container {
    width: 100%;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
}

.tradingview-widget-container #tradingview_chart_btc,
.tradingview-widget-container #tradingview_chart_eth,
.tradingview-widget-container [id^="tradingview_chart_"] {
    border-radius: 6px;
}

/* Coin Info styling */
.coin-info-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 6px;
}

.coin-info-item {
    display: flex;
    align-items: center;
}

.coin-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border-style:solid;
	border-width:2px;
	border-color: var(--cr-primary);
}

.coin-logo-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #6c757d;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.coin-full-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

.coin-symbol {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Vertical Market Stats styling */
.coin-market-stats-vertical {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    max-width: 100%;
}

.key-metrics-header {
    margin-bottom: 20px;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.key-metrics-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.key-metrics-divider {
    height: 0.5px;
    background: #dddddd;
    margin-top: 3rem;
    margin-bottom: 1rem;
    border: none;
}

.market-stats-section,
.coin-price-section {
    margin-bottom: 25px;
}

.market-stats-section:last-child,
.coin-price-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.stats-grid {
    display: block;
}

.coin-market-stats-vertical .stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.coin-market-stats-vertical .stats-item:last-child {
    border-bottom: none;
}

.stats-label {
    font-weight: 500;
    color: #666;
    font-size: 0.95rem;
}

.stats-value {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .key-metrics-title {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
}

/* Dark mode support */
.darkmode--activated .coin-detail-error {
    color: var(--alt-dark);
}



.darkmode--activated .current-price {
    color: var(--alt-dark);
}

.darkmode--activated .price-change.positive {
    color: var(--alt-dark);
}

.darkmode--activated .crypto-spotlight p {
    color: var(--alt-dark);
}

.darkmode--activated .stats-item h3 {
    color: var(--alt-dark);
}

.darkmode--activated .stats-item p {
    color: var(--alt-dark);
}

.darkmode--activated .converter-input-group input {
    color: var(--alt-dark);
}

.darkmode--activated .converter-input-group input::placeholder {
    color: var(--alt-dark);
}

.darkmode--activated .converter-title {
    color: var(--alt-dark);
}

.darkmode--activated .coin-icon {
    color: var(--alt-dark);
}

.darkmode--activated .coin-name {
    color: var(--alt-dark);
}

.darkmode--activated .converter-arrow {
    color: var(--alt-dark);
}

.darkmode--activated .crypto-table-title {
    color: var(--alt-dark);
}

.darkmode--activated .crypto-table-cell {
    color: var(--alt-dark);
}

.darkmode--activated .crypto-table-label {
    color: var(--alt-dark);
}

.darkmode--activated .coin-logo-placeholder {
    color: var(--alt-dark);
}

.darkmode--activated .coin-full-name {
    color: var(--alt-dark);
}

.darkmode--activated .coin-symbol {
    color: var(--alt-dark);
}

.darkmode--activated .key-metrics-title {
    color: var(--alt-dark);
}

.darkmode--activated .section-title {
    color: var(--alt-dark);
}

.darkmode--activated .stats-label {
    color: var(--alt-dark);
}

.darkmode--activated .stats-value {
    color: var(--alt-dark);
}

.darkmode--activated .currently-traded-price {
    color: var(--cr-primary);
}

.darkmode--activated .current-spotlight-price {
    color: var(--cr-primary);
}

.darkmode--activated .previous-spotlight-price {
    color: var(--cr-primary);
}

.darkmode--activated .total-spotlight-supply {
    color: var(--cr-primary);
}

/* Custom coin detail styles */

/* Crypto input */
#crypto-input {
    font-size: 15px;
}

/* Usd output */
#usd-output {
    font-size: 15px;
}

/* Span Tag */
.crypto-usd-converter .coin-symbol span {
    font-size: 13px;
}

/* Coin info container */
.coin-info-container {
    padding-left: 0px;
    margin-bottom: 0px;
}

/* Coin price container */
.coin-price-container {
    margin-top: 0px;
    margin-bottom: 0px;
    padding-top: 0px;
}
.price-change {
    padding-right: 13px;
    padding-left: 27px;
    font-size: 18px;
    font-weight: 700;
}

.price-change span {
    font-size: 18px;
}

.coin-rank {
    width: auto !important;
    font-family: 'Cascadia Mono';
    font-size: 15px;
    padding-bottom: 7px;
    padding-top: 7px;
}

.tradingview-widget-container {
    background-color: transparent;
}

.coin-info-container {
    background-color: transparent;
    font-size: 20px;
}

.coin-detail {
    background-color: transparent;
}

.coin-market-stats-vertical {
    background-color: transparent;
}

.market-stats-section .stats-grid .stats-item {
    background-color: transparent;
    font-size: 18px;
}

.coin-price-section .stats-grid .stats-item {
    background-color: transparent;
}

.crypto-usd-converter {
    background-color: transparent;
    max-width: none;
}

.converter-input-group {
    background-color: transparent;
    border-style: solid;
    border-width: 1px;
}

.coin-info-item .coin-full-name {
    font-size: 20px;
}

.coin-info-item .coin-symbol {
    color: rgba(7, 7, 7, 0.74);
    font-size: 16px;
    font-family: 'Cascadia Mono';
    font-weight: 300;
    background-color: transparent;
    border-radius: 0px;
}

.darkmode--activated .coin-info-item .coin-symbol {
    color: var(--alt-dark) !important;
}

.coin-detail h3 {
    font-size: 25px;
}

.crypto-table tbody .crypto-table-label {
    color: #020202;
    font-size: 15px;
}

.darkmode--activated .crypto-table tbody .crypto-table-label {
    color: var(--alt-dark);
}

.crypto-table tbody .crypto-table-price-change {
    font-size: 15px;
}

.crypto-table-wrapper .crypto-table tbody {
    border-style: solid;
    border-width: 1px;
    padding-left: 28px;
}

.market-stats-section .stats-grid .stats-value {
    font-size: 15px;
    color: #333333;
}

.darkmode--activated .market-stats-section .stats-grid .stats-value {
    color: var(--alt-dark);
}

.market-stats-section .stats-grid .stats-label {
    font-size: 15px;
    color: #444444;
}

.darkmode--activated .market-stats-section .stats-grid .stats-label {
    color: var(--alt-dark);
}

.coin-price-section .stats-grid .stats-label {
    color: #444444;
    font-size: 15px;
}

.darkmode--activated .coin-price-section .stats-grid .stats-label {
    color: var(--alt-dark);
}

.coin-price-section .stats-grid .stats-value {
    font-size: 15px;
}

.coin-market-stats-vertical .coin-price-section h3 {
    font-size: 22px;
    color: #333333;
}

.darkmode--activated .coin-market-stats-vertical .coin-price-section h3 {
    font-size: 20px;
    color: var(--alt-dark);
}

.key-metrics-header {
    padding-bottom: 0px;
    margin-bottom: 0px;
    padding-top: 0px;
    height: auto !important;
}

.crypto-usd-converter .converter-input-group .coin-symbol {
    background-color: transparent;
    border-left-style: none;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.crypto-usd-converter .coin-symbol .coin-icon {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #495057 !important;
    font-weight: bold !important;
    font-size: 13px !important;
}

.darkmode--activated .crypto-usd-converter .coin-symbol .coin-icon {
    color: var(--alt-dark) !important;
}

.currently-traded-price {
    color: #9944de;
}

.current-spotlight-price {
    color: #9944de;
}

.previous-spotlight-price {
    color: #9944de;
}

.total-spotlight-supply {
    color: #9944de;
}

.crypto-table tbody .crypto-table-row {
    padding-left: 24px;
}

.coin-market-stats-vertical .key-metrics-header h2 {
    font-size: 25px;
    letter-spacing: 0.1px;
}

.crypto-usd-converter h3 {
    font-size: 22px;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .coin-market-stats {
        grid-template-columns: 1fr;
    }

    .crypto-table-wrapper {
        margin: 0 -1rem;
    }

    .crypto-table {
        font-size: 0.9rem;
    }

    .crypto-table-cell {
        padding: 0.75rem;
    }

    .tradingview-widget-container {
        height: 400px !important;
    }
}