/* Glassmorphism RTL Support */
body, html {
  direction: rtl;
  unicode-bidi: embed;
}

.topbar, .navbar, .admin-header, .footer, footer {
  text-align: right;
}

.sidebar, .admin-sidebar {
  border-left: 1.5px solid var(--glass-border);
  border-right: none;
}

.card, .panel, .box, .content-box, .dashboard-card, .stat-box, .summary-box {
  text-align: right;
}

input, select, textarea {
  text-align: right;
}

.table th, .table td {
  text-align: right;
}

.nav, .nav-tabs, .nav-pills {
  padding-right: 0;
  padding-left: initial;
}

.breadcrumb {
  flex-direction: row-reverse;
}

.ml-2, .ms-2 { margin-left: 0 !important; margin-right: .5rem !important; }
.mr-2, .me-2 { margin-right: 0 !important; margin-left: .5rem !important; }
.pl-3, .ps-3 { padding-left: 0 !important; padding-right: 1rem !important; }
.pr-3, .pe-3 { padding-right: 0 !important; padding-left: 1rem !important; }

.copy-btn {
  margin-left: 0;
  margin-right: 10px;
}

@media (max-width: 768px) {
  .sidebar, .admin-sidebar {
    display: none;
    background: var(--glass-bg);
  }
  .main-content, .content {
    margin: 0;
    padding: 8px;
  }
} 

/* --- دعم RTL للقائمة الجانبية والقوائم المنسدلة --- */
body.rtl .sidebar {
  right: -260px;
  left: auto;
}
body.rtl .sidebar.open {
  right: 0;
  left: auto;
}
body.rtl .dropdown-menu {
  right: 0;
  left: auto;
  text-align: right;
  direction: rtl;
} 

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(52, 152, 219, 0.95);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: background 0.3s, box-shadow 0.3s, color 0.3s;
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
}

.btn:hover {
    background-color: rgba(44, 62, 80, 0.95);
    box-shadow: 0 4px 16px rgba(44,62,80,0.13);
}

.btn-primary {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(67, 233, 123, 0.15);
    transition: background 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
    box-shadow: 0 4px 16px rgba(67, 233, 123, 0.25);
}

.btn-secondary {
    background: linear-gradient(90deg, #ff6a88 0%, #ffb86c 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 12px rgba(255,106,136,0.10);
    border-radius: 1.2em;
    position: relative;
    overflow: hidden;
}

.btn-secondary:after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: 0 0 16px 4px rgba(255,106,136,0.13);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 1.2em;
    pointer-events: none;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: linear-gradient(90deg, #ffb86c 0%, #ff6a88 100%);
    box-shadow: 0 8px 32px rgba(255,106,136,0.18);
    transform: translateY(-2px) scale(1.04);
}

.btn-secondary:hover:after, .btn-secondary:focus:after {
    opacity: 1;
}
    .btn-outline-primary {
    background: linear-gradient(90deg, #ff6a88 0%, #ffb86c 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 12px rgba(255,106,136,0.10);
    border-radius: 1.2em;
    position: relative;
    overflow: hidden;
}

.btn-outline-primary:after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: 0 0 16px 4px rgba(255,106,136,0.13);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 1.2em;
    pointer-events: none;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background: linear-gradient(90deg, #ffb86c 0%, #ff6a88 100%);
    box-shadow: 0 8px 32px rgba(255,106,136,0.18);
    transform: translateY(-2px) scale(1.04);
}

.btn-outline-primary:hover:after, .btn-outline-primary:focus:after {
    opacity: 1;
}


.btn-lg {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(67, 233, 123, 0.15);
    transition: background 0.3s, box-shadow 0.3s;
}

.btn-lg:hover {
  background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
    box-shadow: 0 4px 16px rgba(67, 233, 123, 0.25);
}

.btn-outline-light {
    background: linear-gradient(90deg, #ff6a88 0%, #ffb86c 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 12px rgba(255,106,136,0.10);
    border-radius: 1.2em;
    position: relative;
    overflow: hidden;
}

.btn-outline-light:after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: 0 0 16px 4px rgba(255,106,136,0.13);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 1.2em;
    pointer-events: none;
}

.btn-outline-light:hover, .btn-outline-light:focus {
    background: linear-gradient(90deg, #ffb86c 0%, #ff6a88 100%);
    box-shadow: 0 8px 32px rgba(255,106,136,0.18);
    transform: translateY(-2px) scale(1.04);
}

.btn-outline-light:hover:after, .btn-outline-light:focus:after {
    opacity: 1;
}

.btn-accent {
    background: linear-gradient(90deg, #e74c3c 0%, #f7971e 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(231,76,60,0.10);
}

.btn-accent:hover, .btn-accent:focus {
    background: linear-gradient(90deg, #f7971e 0%, #e74c3c 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(231,76,60,0.13);
    transform: translateY(-2px) scale(1.03);
}




.btn-warning {
    background: linear-gradient(90deg, #ff6a88 0%, #ffb86c 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 12px rgba(255,106,136,0.10);
    border-radius: 1.2em;
    position: relative;
    overflow: hidden;
}

.btn-warning:after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: 0 0 16px 4px rgba(255,106,136,0.13);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 1.2em;
    pointer-events: none;
}

.btn-warning:hover, .btn-warning:focus {
    background: linear-gradient(90deg, #ffb86c 0%, #ff6a88 100%);
    box-shadow: 0 8px 32px rgba(255,106,136,0.18);
    transform: translateY(-2px) scale(1.04);
}

.btn-warning:hover:after, .btn-warning:focus:after {
    opacity: 1;
}
    .btn-outline-primary {
    background: linear-gradient(90deg, #ff6a88 0%, #ffb86c 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 12px rgba(255,106,136,0.10);
    border-radius: 1.2em;
    position: relative;
    overflow: hidden;
}

.btn-danger {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(67, 233, 123, 0.15);
    transition: background 0.3s, box-shadow 0.3s;
}

.btn-danger:hover {
  background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
    box-shadow: 0 4px 16px rgba(67, 233, 123, 0.25);
}
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-sm {
    padding: 5px 15px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* Multi-color glass buttons - lighter, more vibrant */
.btn, button, input[type=submit] {
  border-radius: 8px;
  border: none;
  padding: 10px 28px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(60,95,144,0.10);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  position: relative;
  z-index: 2;
}
.btn-primary, .btn-main, .btn, button, input[type=submit] {
  background: linear-gradient(90deg, #5e7bbd 20%, #3c5f90 80%);
  color: #fff;
}
.btn-success {
  background: linear-gradient(90deg, #6ee7b7 20%, #3edb8b 80%);
  color: #fff;
}
.btn-danger {
  background: linear-gradient(90deg, #ffb3b3 20%, #ff6b6b 80%);
  color: #fff;
}
.btn-warning {
  background: linear-gradient(90deg, #ffe29a 20%, #ffd166 80%);
  color: #222;
}
.btn-info {
  background: linear-gradient(90deg, #b6e0fe 20%, #6ec1e4 80%);
  color: #222;
}
.btn-secondary {
  background: linear-gradient(90deg, #dbeafe 20%, #a3b8d8 80%);
  color: #222;
}
.btn:hover, button:hover, input[type=submit]:hover {
  filter: brightness(1.10) saturate(1.25);
  box-shadow: 0 4px 16px rgba(60,95,144,0.18);
  opacity: 0.97;
}
.btn{
  color: #e6e7e9;
}