/* تنظیمات اولیه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* پس‌زمینه و رنگ‌بندی اصلی */
body {
    font-family: Arial, sans-serif;
    background-image: url('images/network/background.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-color: black;
    color: white;
    text-align: center;
}

/* استایل نوار ناوبری */
nav {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
}
nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
}
nav ul li {
    margin: 0 15px;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

/* استایل هدر */
header {
    padding: 20px;
    text-align: center;
}
header h1 {
    color: #FFD700;
    font-size: 2.5rem;
}

/* استایل کانتینرها */
.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

/* بخش معرفی */
#intro h2, #about h2, #mining h2, #recentTransactions h2, #whitepaper h2, #login h2 {
    color: #FFD700;
    font-size: 2rem;
    margin-bottom: 15px;
}
#intro p, #about p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* تصاویر */
img {
    max-width: 200px;
    margin: 10px auto;
}

/* بخش استخراج */
.mining-options {
    display: flex;
    justify-content: space-around;
}
.mining-option {
    padding: 10px;
    border: 2px solid #FFD700;
    border-radius: 10px;
    width: 150px;
}

/* جدول تراکنش‌ها */
table {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-collapse: collapse;
}
th, td {
    border: 1px solid white;
    padding: 10px;
    text-align: center;
}

/* دکمه‌ها */
button {
    background: #FFD700;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}
button:hover {
    background: #FFC400;
}

/* فرم‌ها */
#contact form, #login form {
    max-width: 600px;
    margin: 0 auto;
}
#contact label, #login label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}
#contact input, #contact textarea, #login input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* استایل فوتر */
footer {
    background-color: #333;
    color: white;
    padding: 10px 0;
    text-align: center;
    margin-top: 20px;
}

/* --- Salanya Logo box --- */
.logo-box {
    text-align: center;
    margin-bottom: 20px;
}
.logo-box img {
    width: 160px;
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 0 15px #00aaff);
}

/* --- Node status box --- */
.node-box {
    margin-top: 25px;
    padding: 18px;
    border: 2px solid #00aaff;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.55);
}

.node-box h2 {
    color: #00aaff;
    margin-bottom: 10px;
    font-size: 1.6rem;
}

.node-box code {
    display: inline-block;
    margin: 8px 0 12px 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(0, 170, 255, 0.12);
    color: #ffffff;
    word-break: break-all;
}

#nodeStatus {
    margin: 10px 0 15px 0;
    font-size: 1.05rem;
}

.node-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
}

.node-grid div {
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 700px) {
    .node-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* --- Language switch --- */
.lang-switch {
  margin-right: 14px;
  display: flex;
  align-items: center;
}

#langSelect {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.45);
  color: #fff;
  outline: none;
  cursor: pointer;
}

#langSelect option {
  background: #0b0b0b;
  color: #fff;
}

/* --- Language switch --- */
.lang-switch {
  margin-right: 14px;
  display: flex;
  align-items: center;
}

#langSelect {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.45);
  color: #fff;
  outline: none;
  cursor: pointer;
}

#langSelect option {
  background: #0b0b0b;
  color: #fff;
}
