[dir="rtl"] .logo-container img {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .d-flex.gap-3 > * + * {
    margin-right: 1rem;
    margin-left: 0;
}
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 20px;
    line-height: 1.6;
}

.container {
    background-color: #1e1e1e;
    padding: 1rem 2rem;
    border-radius: 8px;
}

/* Logo and header */
.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.logo-container img {
    height: 60px;
    margin-right: 15px;
    filter: drop-shadow(0 0 3px #d4af37);
}

.logo-text {
    font-weight: 700;
    font-size: 1.8rem;
    color: #d4af37;
    text-shadow: 0 0 5px #b38f1f;
}

/* Headings */
h1, h5 {
    color: #d4af37;
}

/* Form styling */
.form-label {
    color: #ccc;
}

.form-control {
    background-color: #cccccc;
    border: 1px solid #444;
    color: #eee;
    border-radius: 4px;
    padding: 8px;
}

.form-control:focus {
    background-color: #3a3a3a;
    border-color: #4ea1d3;
    color: #fff;
    outline: none;
}

/* Buttons */
.btn-primary {
    background-color: #4ea1d3;
    border-color: #4ea1d3;
    color: white;
    border-radius: 4px;
    padding: 10px 15px;
}

.btn-primary:hover {
    background-color: #3a8acb;
    border-color: #3a8acb;
}

.btn-danger {
    background-color: #d9534f;
    border-color: #d43f3a;
    color: white;
}

.btn-danger:hover {
    background-color: #c9302c;
    border-color: #ac2925;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #333;
    text-align: left;
    vertical-align: middle;
    color: #ddd;
}

th {
    background-color: #2c2c2c;
    font-weight: bold;
}

/* Scrollable tables */
.table-responsive {
    max-height: 400px;
    overflow-y: auto;
}

/* Alerts table links */
#alertsTable a {
    color: #4ea1d3;
    text-decoration: none;
}

#alertsTable a:hover {
    text-decoration: underline;
}



/* Darken labels for Village, Radius, and Telegram channels */
label[for="village"],
label[for="radius"],
label[for="channels"],
label[for="telegram-label"],
label[for="telegram-phone"],
label[for="telegram-api-id"],
label[for="telegram-api-hash"],
label[for="telegram-channels"] {
    color: #555 !important;
}

/* Smaller font size for original and translated messages in alerts */
.alert-original-message, .alert-translated-message {
    font-size: 0.9em;
}

.telegram-code-form {
    min-width: 160px;
}
