:root {
    --background-color: #121212;
    --text-color: #ffffff;
    --container-background: #1e1e1e;
    --border-color: #444;
    --button-background: #3C49ED;
    --button-hover: #2a36b1;
    --link-color: #66b3ff;
    --header-background: #1e1e1e;
    --header-text: #ffffff;
    --input-background: #333;
    --input-text: #ffffff;
}

body.dark-theme {
    --background-color: #121212;
    --text-color: #ffffff;
    --container-background: #1e1e1e;
    --border-color: #444;
    --button-background: #3C49ED;
    --button-hover: #2a36b1;
    --link-color: #66b3ff;
    --header-background: #1e1e1e;
    --header-text: #ffffff;
    --input-background: #333;
    --input-text: #ffffff;
}

body.light-theme {
    --background-color: #f4f4f4;
    --text-color: #333;
    --container-background: #ffffff;
    --border-color: #ccc;
    --button-background: #3C49ED;
    --button-hover: #2a36b1;
    --link-color: #007bff;
    --header-background: #ffffff;
    --header-text: #333;
    --input-background: #ffffff;
    --input-text: #333;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

.header {
    background-color: var(--header-background);
    color: var(--header-text);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    width: 100%;
}

.container {
    background-color: var(--container-background);
    padding: 36px;
    border-radius: 10px;
    box-shadow: 0 18px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    text-align: center;
    margin: 200px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



.styled-button {
    padding: 10px 20px;
    background-color: var(--button-background);
    color: var(--text-color);
    border: none;
    border-radius: 6px;
    /* اینجا جداگونه تعریف شده */
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 330px;
    margin: 25px 0;
    font-size: 16px;
    box-sizing: border-box;
    display: block;
}

body.light-theme .styled-button {
    color: #ffffff;
}

.styled-button:hover {
    background-color: var(--button-hover);
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 330px;
    max-width: 330px;
    margin: 5px 0;
    padding: 10px;
    font-size: 15px;
    border-radius: 5px;
    /* فقط برای input */
    box-sizing: border-box;
    display: block;
}

.theme-toggle-button {
    padding: 12px 18px;
    background-color: var(--button-background);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
    margin-left: auto;
    margin-right: 28px;
}

.theme-toggle-button:hover {
    background-color: var(--button-hover);
}




.error {
    color: #ff4c4c;
    margin: 10px 0;
}


.language-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--container-background);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.language-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background-color: var(--button-background);
    color: var(--text-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
}

.dropdown-menu button:hover {
    background-color: var(--button-hover);
}

.language-dropdown button {
    color: white !important;
}

.connect-miners-button {
    background-color: #FFD700;
    /* زرد */
    color: #000000;
    /* مشکی */
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
    width: auto;
    /* برای هماهنگی با دکمه‌های دیگه */
    margin: 0 10px;
    /* فاصله مناسب از اطراف */
}

.connect-miners-button:hover {
    background-color: #FFC700;
    /* زرد تیره‌تر برای hover */
}