/* style.css */
body {
    font-family: 'Vazir', sans-serif; /* فونت فارسی */
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.2em;
}

h2 {
    color: #34495e;
    margin-bottom: 20px;
    font-size: 1.6em;
}

.tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #ecf0f1;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    font-size: 1.1em;
    color: #7f8c8d;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    outline: none;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    color: #2980b9;
}

.tab-button.active {
    color: #2980b9;
    border-bottom-color: #2980b9;
    font-weight: bold;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 25px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"] {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    box-sizing: border-box; /* مهم برای محاسبه عرض */
}

.form-group input[type="text"]:focus {
    border-color: #2980b9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(41, 128, 185, 0.2);
}

button {
    background-color: #2980b9;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

button:hover {
    background-color: #1f618d;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

#add-token-btn {
    background-color: #27ae60; /* سبز */
}

#add-token-btn:hover {
    background-color: #1e8449;
}

#remove-token-btn {
    background-color: #e74c3c; /* قرمز */
}

#remove-token-btn:hover {
    background-color: #c0392b;
}

.result-box {
    margin-top: 30px;
    padding: 15px;
    border-radius: 8px;
    background-color: #eaf2f8; /* آبی روشن */
    border: 1px solid #aed6f1;
    text-align: left; /* برای نمایش خروجی دیکشنری */
    font-size: 0.95em;
    color: #2471a3;
    min-height: 50px; /* برای داشتن ارتفاع اولیه */
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-all; /* برای شکستن خط کلمات طولانی */
}

.result-box:empty::before {
    content: "منتظر دریافت نتیجه...";
    color: #95a5a6;
}

.result-box.success {
    background-color: #d5f5e3; /* سبز روشن */
    border-color: #52be87;
    color: #1e8449;
}

.result-box.error {
    background-color: #fdedec; /* قرمز روشن */
    border-color: #e74c3c;
    color: #c0392b;
}

/* فونت وزیر برای زبان فارسی */
@import url('https://cdn.jsdelivr.net/font- வசির/1.0/ வசির.min.css');
