html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

ul {
  list-style: none;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #ffff;
}

a {
  margin: 0;
  padding: 0;
  text-decoration: none;
  color: inherit;
}

input, textarea, select, button {
  outline: none;
}

input, textarea {
  border: none;
  background: transparent;
}

button {
  border: none;
  background: transparent;
  border-radius: 0;
  cursor: pointer;
}
.rtl {
  direction: rtl; 
  text-align: right;
  unicode-bidi: bidi-override;
}

.ltr {
  direction: ltr; 
  text-align: left;
  unicode-bidi: bidi-override;
}

/* Admin Testing Alert Bar */
.warning__alert-email.testing-mode {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    border: none;
    animation: pulse-glow 2s infinite;
}

.warning__alert-email.testing-mode a {
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    margin-left: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.warning__alert-email.testing-mode a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 4px 16px rgba(255, 107, 107, 0.5); }
}

/* Admin Testing Buttons in Game Popups */
.admin-testing-buttons {
    margin: 12px 0;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    position: relative;
    overflow: hidden;
}

.admin-testing-buttons::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    animation: sweep 3s infinite;
}

@keyframes sweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

.admin-testing-buttons h5 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 1;
}

.admin-testing-buttons .btn {
    padding: 6px 12px;
    font-size: 11px;
    margin: 3px;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-testing-buttons .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.admin-testing-buttons .btn-info {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
}

.admin-testing-buttons .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #adb5bd);
    color: white;
}

.admin-testing-buttons .btn:not(.disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.admin-testing-buttons .btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* User Info in Testing Buttons */
.admin-testing-buttons div[style*="margin-top: 5px"] {
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 8px;
    border-radius: 15px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #495057;
    border: 1px solid rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

/* Game Table Popup Adjustments */
.game__table-popupInfo {
    max-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border-radius: 12px;
}

/* Admin Panel Link in Menu */
.menu__list .menu__item a[href*="admin"] {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white !important;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.menu__list .menu__item a[href*="admin"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* Return to Admin Button */
.menu__list .menu__item a[href*="return-to-admin"] {
    background: linear-gradient(135deg, #dc3545, #ff6b6b);
    color: white !important;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    animation: pulse-admin 2s infinite;
}

@keyframes pulse-admin {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .admin-testing-buttons {
        padding: 8px;
        margin: 8px 0;
    }
    
    .admin-testing-buttons .btn {
        padding: 4px 8px;
        font-size: 10px;
        margin: 2px;
    }
    
    .warning__alert-email.testing-mode {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .warning__alert-email.testing-mode a {
        display: block;
        margin: 8px auto 0;
        text-align: center;
        max-width: 200px;
    }
}