/* ============================
   Global styles & resets
   ============================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  
  direction: rtl;
  min-height: 100vh;
  overflow-y: auto;
  color: #f0f0f0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}



/* ============================
   Animations
   ============================ */

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================
   Page & content
   ============================ */

.page {
  padding: 30px;
  animation: pageFade 0.4s ease forwards;
  min-height: calc(100vh - 50px);
  overflow-x: hidden;
}

/* ============================
   Sidebar specific
   ============================ */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.brand h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #16a34a; /* أخضر فاتح */
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.menu a {
  color: #a0a0a0;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.menu a i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.menu a:hover,
.menu a.active {
  color: #22c55e;
  background-color: #12291f;
  transform: translateX(-5px);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

/* ============================
   Topbar
   ============================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(3, 5, 25, 0.8);
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.server-select {
  background: #0a0e29;
  border: none;
  color: #f0f0f0;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.top-user {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #cfcfcf;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #22c55e;
}

.meta strong {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
}

.meta span {
  font-size: 0.85rem;
  color: #a0a0a0;
}

/* ============================
   Buttons
   ============================ */

.primary-btn {
  background-color: #22c55e;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  box-shadow: 0 6px 15px rgba(34, 197, 94, 0.4);
  transition: all 0.25s ease;
  user-select: none;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.6);
}

/* ============================
   Guild cards
   ============================ */

.guilds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.guild-card {
  background-color: #0a0e29;
  border-radius: 12px;
  padding: 18px 20px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.guild-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.guild-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 14px;
  object-fit: cover;
  background-color: #11182e;
}

/* ============================
   Skeleton loading styles
   ============================ */

.skeleton {
  pointer-events: none;
  user-select: none;
}

.skeleton-img,
.skeleton-text,
.skeleton-btn {
  border-radius: 8px;
  background: linear-gradient(90deg, #12172f 25%, #0a0e29 37%, #12172f 63%);
  animation: shimmer 1.5s infinite ease-in-out;
  background-size: 400% 100%;
}

.skeleton-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 14px auto;
  border-radius: 50%;
}

.skeleton-text {
  width: 80%;
  height: 16px;
  margin: 0 auto 14px auto;
}

.skeleton-btn {
  width: 60%;
  height: 36px;
  margin: 0 auto;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================
   Empty state message
   ============================ */

.empty {
  font-size: 1.2rem;
  text-align: center;
  padding: 60px 20px;
  color: #a0a0a0;
}

/* ============================
   Inputs
   ============================ */

input#search {
  width: 100%;
  max-width: 320px;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  background-color: #0a0e29;
  color: #f0f0f0;
  box-shadow: inset 0 0 6px #0a0e29;
  outline: none;
  margin-bottom: 10px;
}

input#search::placeholder {
  color: #888;
  font-weight: 600;
}


/* ============================
   Page loader
   ============================ */

#page-loader {
  position: fixed;
  top: 0;
  right: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  z-index: 9999;
  transition: width 0.3s ease;
}

/* ============================
   Responsive tweaks (optional)
   ============================ */

@media (max-width: 768px) {
  .sidebar {
    width: 60px;
    padding: 10px 6px;
  }
  .menu a {
    font-size: 0;
    padding: 10px 6px;
  }
  .menu a i {
    font-size: 1.4rem;
    width: auto;
  }
  .page {
    padding: 20px 10px;
  }
}
/* SELECT BOX */
.select-box{
display:flex;
justify-content:space-between;
align-items:center;
padding:12px;
border-radius:12px;
background:rgba(255,255,255,.03);
border:1px solid rgba(255,255,255,.08);
cursor:pointer;
}

/* TAGS */
.tags{
display:flex;
flex-wrap:wrap;
gap:6px;
}

.tag{
background:#22c55e22;
border:1px solid #22c55e55;
padding:4px 8px;
border-radius:8px;
font-size:13px;
display:flex;
align-items:center;
gap:5px;
}

.tag span{
cursor:pointer;
}

.dropdown{
margin-top:10px;
border-radius:12px;
background:#020617;
border:1px solid rgba(255,255,255,.08);
max-height:200px;
overflow:auto;
display:none;
}

.dropdown.show{
display:block;
}

.select-box{
display:flex;
justify-content:space-between;
padding:12px;
border-radius:12px;
background:rgba(255,255,255,.03);
border:1px solid rgba(255,255,255,.08);
cursor:pointer;
}

.tags{
display:flex;
flex-wrap:wrap;
gap:6px;
}

.tag{
background:#22c55e22;
border:1px solid #22c55e55;
padding:4px 8px;
border-radius:8px;
font-size:13px;
display:flex;
gap:5px;
}

.tag span{
cursor:pointer;
}
.react-list{
margin-top:15px;
display:flex;
flex-direction:column;
gap:10px;
}

.react-item{
display:flex;
justify-content:space-between;
align-items:center;
padding:10px;
border-radius:12px;
background:rgba(255,255,255,.03);
border:1px solid rgba(255,255,255,.08);
}

.react-left{
display:flex;
gap:10px;
align-items:center;
}

.react-emoji{
font-size:20px;
}

.react-role{
color:#22c55e;
font-weight:600;
}

.remove-btn{
color:#ef4444;
cursor:pointer;
}


.desc{
color:#94a3b8;
font-size:13px;
margin-bottom:10px;
}

.multi{
min-height:140px;
}

/* REACT LIST */
.react-list{
margin-top:15px;
display:flex;
flex-direction:column;
gap:10px;
}

.react-row{
display:flex;
gap:10px;
align-items:center;
background:#020617;
padding:10px;
border-radius:12px;
border:1px solid #1e293b;
}

.react-row input{
width:70px;
text-align:center;
}

.react-row select{
flex:1;
}


/* EMBED STYLE (مثل Discord) */

.embed-box{
  background:#2b2d31;
  border-radius:10px;
  padding:12px;
  max-width:450px;
  border-left:5px solid #5865f2;
}

.embed-inner{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.embed-title{
  font-weight:700;
  font-size:15px;
}

.embed-desc{
  font-size:14px;
  color:#cbd5f5;
}

.embed-box img{
  margin-top:10px;
  border-radius:8px;
  max-width:100%;
}
