/* الأساسيات */
body {
    font-family: 'Arial', sans-serif;
    background-color: #1e2329;
    color: #d3d6da;
    margin: 0;
    padding: 0 0 50px 0;
}

/* تقليص حجم النصوص لجميع العناصر */
div, span, p, h1, h2, h3, h4, h5, h6 {
    font-size: 12px;
}

/* تعديل الحاوية */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
}

/* تحسين جمالية الـ Jumbotron */
.jumbotron {
    background: linear-gradient(135deg, #252a31, #1e2329);
    color: #d3d6da;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* الأزرار */
.btn-primary {
    background-color: #f0b90b;
    border-color: #d4a017;
    color: #1e2329;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out;
    font-size: 12px;
}
.btn-primary:hover {
    background-color: #d4a017;
    border-color: #b38e14;
}

.btn-outline-secondary {
    color: #d3d6da;
    border-color: #00c087;
    font-weight: bold;
    font-size: 12px;
}
.btn-outline-secondary:hover {
    background-color: #00c087;
    color: #1e2329;
    border-color: #009b66;
}

/* البطاقات */
.card {
    background-color: #252a31;
    color: #d3d6da;
    border: 1px solid #2e343d;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.card-title {
    font-size: 16px;
    color: #f0b90b;
    font-weight: bold;
}
.card-text {
    color: #a6adb8;
    font-size: 12px;
}
.text-muted {
    color: #a6adb8 !important;
    font-size: 12px !important;
}

/* شريط التنقل */
.navbar {
    background-color: #252a31 !important;
    border-bottom: 1px solid #2e343d;
    padding: 0.5rem 1rem;
}
.navbar-brand {
    color: #f0b90b;
    font-size: 1.2rem;
    font-weight: bold;
}
.navbar-brand:hover {
    color: #d4a017;
}
.navbar-nav .nav-link {
    color: #d3d6da !important;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: #f0b90b !important;
}
.navbar-nav .btn-link {
    color: #d3d6da !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
}
.navbar-nav .btn-link:hover {
    color: #f0b90b !important;
}
.balance-info {
    color: #a6adb8;
    font-size: 0.9rem;
    margin-left: 1rem;
}
.balance-info strong {
    color: #f0b90b;
}
.alert {
    background-color: #ea3943;
    color: #fff;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    padding: 10px 20px;
    margin-top: 1rem;
}
.alert-success {
    background-color: #00c087;
}
.alert .btn-close {
    filter: invert(1);
}
.footer {
    background-color: #252a31;
    color: #a6adb8;
    font-size: 0.8rem;
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid #2e343d;
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #252a31;
    border-top: 1px solid #2e343d;
    display: flex;
    justify-content: space-around;
    padding: 5px 0;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
    font-size: 0.7rem;
}
.nav-item {
    text-align: center;
    flex: 1;
    padding: 2px;
    transition: background-color 0.3s ease;
}
.nav-item a {
    color: #d3d6da;
    text-decoration: none;
    display: block;
    padding: 2px;
}
.nav-item a:hover, .nav-item a.active {
    color: #d3d6da;
    background-color: transparent;
}
.nav-item i {
    font-size: 1rem;
    margin-bottom: 2px;
}
.nav-item.home a {
    color: #d3d6da;
}
.nav-item.home a:hover {
    color: #f0b90b;
}
.nav-item.markets a {
    color: #d3d6da;
}
.nav-item.markets a:hover {
    color: #007bff;
}
.nav-item.real-trading a {
    color: #d3d6da;
}
.nav-item.real-trading a:hover {
    color: #ea3943;
}
.nav-item.demo-trading a {
    color: #d3d6da;
}
.nav-item.demo-trading a:hover {
    color: #00c087;
}
.nav-item.assets a {
    color: #d3d6da;
}
.nav-item.assets a:hover {
    color: #f0b90b;
}
a, button {
    text-decoration: none;
}
@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
}
@media (max-width: 576px) {
    .navbar-nav .nav-link, .navbar-nav .btn-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    .balance-info {
        font-size: 0.8rem;
    }
}

/* النصوص */
h1, h2, h3, h4, h5, h6 {
    color: #f0b90b;
    margin-bottom: 1rem;
    font-weight: bold;
}

p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d3d6da;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #252a31;
    color: #a6adb8;
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid #2e343d;
}
footer a {
    color: #f0b90b;
    font-weight: bold;
    text-decoration: none;
}
footer a:hover {
    color: #d4a017;
    text-decoration: underline;
}

/* الرسوم البيانية أو الأقسام المنمقة */
.chart-container {
    background-color: #252a31;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
}
.chart-title {
    font-size: 1.2rem;
    color: #f0b90b;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* التنبيهات */
.alert {
    margin-top: 1rem;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 0.9rem;
}
.alert-success {
    background-color: #00c087;
    color: #fff;
    border-color: #009b66;
}
.alert-danger {
    background-color: #ea3943;
    color: #fff;
    border-color: #c93038;
}
.alert-warning {
    background-color: #f4b731;
    color: #1e2329;
    border-color: #d9a029;
}
.alert-info {
    background-color: #007bff;
    color: #fff;
    border-color: #005f99;
}

/* التحكم في لون النصوص في صندوق المعلومات */
.card-body p, .card-body strong {
    color: #d3d6da;
    font-size: 0.9rem;
}
.card-body p:hover, .card-body strong:hover {
    color: #f0b90b;
}

/* التحكم في لون الخلفية */
.card-body {
    background-color: #252a31;
}

/* تحسين ألوان الجدول */
.table {
    background-color: #252a31;
    color: #d3d6da;
    margin-bottom: 0;
    font-size: 0.9rem;
    width: 100%;
    table-layout: fixed;
}
.table th {
    background-color: #1e2329;
    border-bottom: 1px solid #2e343d;
    font-weight: 500;
    color: #a6adb8;
    font-size: 0.85rem;
    padding: 8px;
    white-space: nowrap;
}
.table td {
    background-color: #252a31;
    border-bottom: 1px solid #2e343d;
    padding: 10px;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table tr:hover {
    background-color: #2e343d;
}

/* تحسين عرض الأسعار */
#btc-price, #eth-price, #btc-market-cap, #eth-market-cap {
    font-weight: bold;
    color: #f0b90b;
}

#btc-change.text-success, #eth-change.text-success {
    color: #00c087 !important;
}

#btc-change.text-danger, #eth-change.text-danger {
    color: #ea3943 !important;
}

/* تصميم شريط العملات */
.symbol-tabs-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    background: #252a31;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.symbol-tabs {
    display: flex;
    gap: 10px;
    padding: 0 10px;
}

.symbol-btn {
    flex: 0 0 auto;
    background: transparent;
    border: 1px solid #f0b90b;
    color: #d3d6da;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.symbol-btn:hover {
    background: rgba(240, 185, 11, 0.2);
}

.symbol-btn.active {
    background: #f0b90b;
    color: #1e2329;
}

/* تحسين عرض الجدول */
.expanded-table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
}

.expanded-table th, .expanded-table td {
    padding: 8px;
    font-size: 0.9rem;
}

.expanded-table td span {
    display: block;
    font-size: 0.8rem;
    margin-top: 4px;
}
/* الأنماط الخاصة بصفحة العملات الرائجة */
.trending-coins-section {
    padding: 10px 0;
    background-color: #1e2329;
}
.trending-coins-section .market-section {
    background-color: #252a31;
    border: 1px solid #2e343d;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.trending-coins-section .market-title {
    color: #f0b90b;
    font-size: 16px; /* زيادة حجم العنوان */
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}
.trending-coins-section .market-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 400px;
    overflow-y: auto;
}
.trending-coins-section .market-item {
    background-color: #1e2329;
    border: 1px solid #2e343d;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}
.trending-coins-section .market-item:hover {
    background-color: #2e343d;
}
.trending-coins-section .coin-info {
    display: flex;
    align-items: center;
    width: 50%;
}
.trending-coins-section .coin-info img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}
.trending-coins-section .coin-info .symbol {
    color: #f0b90b;
    font-size: 14px; /* زيادة حجم النص */
    font-weight: bold;
}
.trending-coins-section .coin-info .coin-pair {
    font-size: 12px; /* زيادة حجم النص الثانوي */
    color: #a6adb8;
    margin-left: 5px;
}
.trending-coins-section .coin-price {
    font-size: 14px; /* زيادة حجم النص */
    color: #d3d6da;
    flex: 1;
    text-align: left;
}
.trending-coins-section .coin-change {
    font-size: 14px; /* زيادة حجم النص */
    flex: 1;
    text-align: left;
}
.trending-coins-section .coin-change.up {
    color: #00c087;
}
.trending-coins-section .coin-change.down {
    color: #ea3943;
}
.trending-coins-section .coin-leverage {
    font-size: 12px; /* زيادة حجم النص الثانوي */
    color: #a6adb8;
}
@media (max-width: 768px) {
    .trending-coins-section .market-section {
        padding: 8px;
    }
    .trending-coins-section .market-item {
        padding: 6px;
    }
    .trending-coins-section .coin-info img {
        width: 18px;
        height: 18px;
    }
    .trending-coins-section .coin-info .symbol,
    .trending-coins-section .coin-price,
    .trending-coins-section .coin-change {
        font-size: 13px;
    }
    .trending-coins-section .coin-pair,
    .trending-coins-section .coin-leverage {
        font-size: 11px;
    }

}