/* reset الأساسي */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #12161C;
    color: #EAECEF;
    font-family: 'Roboto', sans-serif;
}

/* شريط العملات الرئيسية */
.currency-bar {
    display: flex;
    justify-content: center;
    background-color: #181A20;
    padding: 10px 0;
    border-bottom: 1px solid #F3BA2F;
}

.currency-item {
    display: flex;
    align-items: center;
    margin: 0 20px;
    color: #F3BA2F;
    font-weight: bold;
}

.currency-item img {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    border-radius: 50%;
}

/* شريط التنقل العلوي */
.navbar {
    background-color: #181A20;
    padding: 10px 0;
}

.navbar .nav-link,
.navbar-brand,
footer a,
.social-icons a {
    color: #F3BA2F;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar-brand:hover,
footer a:hover,
.social-icons a:hover {
    color: #12161C;
    background-color: #F3BA2F;
    border-radius: 5px;
    text-decoration: none;
}

.btn-login {
    background-color: #F3BA2F;
    color: #12161C;
    padding: 5px 15px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #E5A500;
}

.btn-signup {
    background-color: transparent;
    border: 1px solid #F3BA2F;
    color: #F3BA2F;
    padding: 5px 15px;
    border-radius: 10px;
    font-weight: bold;
    margin-left: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-signup:hover {
    background-color: #F3BA2F;
    color: #12161C;
}

/* الشعار الرئيسي */
.main-logo {
    display: block;
    width: 100%;
    max-height: 300px;
    height: auto;
    object-fit: cover;
    margin: 0;
}

/* أدوات البحث */
.search-tools {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-bar {
    width: 100%;
    background-color: #181A20;
    border: 1px solid #F3BA2F;
    color: #EAECEF;
    padding: 10px;
    border-radius: 10px;
}

.search-bar::placeholder {
    color: #F3BA2F;
    opacity: 1;
}

.network-select {
    position: absolute;
    top: -35px;
    left: 0;
    width: 60px;
    background-color: #181A20;
    border: 1px solid #F3BA2F;
    color: #F3BA2F;
    padding: 2px 5px;
    border-radius: 10px;
    font-size: 0.8rem;
    text-align: center;
}

.network-select::-ms-expand {
    display: none;
}

.network-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="5"><path fill="%23F3BA2F" d="M0 0l4 5 4-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
    padding-right: 20px;
}

.btn-primary {
    margin-top: 20px;
    background-color: #F3BA2F;
    color: #12161C;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #E5A500;
}

/* أقسام العملات المدرجة حديثًا */
.coin-info {
    background-color: #181A20;
    padding: 20px;
    border: 1px solid #F3BA2F;
    border-radius: 10px;
    margin: 20px auto;
    color: #EAECEF;
    max-width: 800px;
}

.coin-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    justify-content: flex-start;
    text-align: left;
}

.coin-info-header img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 50%;
}

.coin-info-header div {
    font-size: 18px;
    font-weight: bold;
    color: #F3BA2F;
}

.coin-table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    border: 1px solid #F3BA2F;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.coin-table td {
    padding: 10px;
    color: #EAECEF;
    border-bottom: 1px solid #2C2F36;
}

.coin-table tr:last-child td {
    border-bottom: none;
}

.coin-table td:first-child {
    color: #F3BA2F;
    font-weight: bold;
    width: 50%;
}

/* الفوتر */
footer {
    background-color: #181A20;
    padding: 20px 0;
    color: #EAECEF;
    text-align: center;
    margin-top: 20px;
}

footer a {
    color: #F3BA2F;
    text-decoration: none;
    margin: 0 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

footer a:hover {
    color: #12161C;
    background-color: #F3BA2F;
    border-radius: 5px;
    text-decoration: none;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.social-icons a {
    color: #F3BA2F;
    margin: 0 10px;
    font-size: 24px;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 5px;
    border-radius: 5px;
}

.social-icons a:hover {
    color: #12161C;
    background-color: #F3BA2F;
    text-decoration: none;
}

/* تحسين التوافق مع جميع المقاسات */
@media (max-width: 768px) {
    .currency-item {
        margin: 0 5px;
        font-size: 12px;
    }

    .main-logo {
        max-height: 200px;
    }

    .search-container {
        max-width: 90%;
    }

    .network-select {
        top: -30px;
        left: 0;
    }

    .btn-primary {
        margin-top: 15px;
    }

    .coin-info {
        padding: 15px;
        max-width: 90%;
    }

    .coin-info-header div {
        font-size: 16px;
    }
}