* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
}

body {
  background: linear-gradient(135deg, #1d143c 40%, #6366f1 100%, #a855f7 100%);
  background-attachment: fixed; 
  color: #ffffff; 
  overflow-x: hidden;
}

.pastecontainer {
  width: 92%;              
  max-width: 800px;        
  margin: 20px auto;       
  padding: 20px 15px;      
  box-sizing: border-box;  
  background: rgba(30, 41, 59, 0.4); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  direction: ltr; 
}

.formtitle {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: left;
}

.formgroup {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

textarea {
  width: 100%;
  max-width: 100%;        
  box-sizing: border-box; 
  background-color: #0f172a; 
  color:  #f8fafc; 
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 15px;
  font-family: 'Courier New', Courier, monospace; 
  font-size: 15px;
  resize: vertical; 
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"] {
  width: 100%;
  max-width: 100%;        
  box-sizing: border-box; 
  background-color: #0f172a;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

textarea:focus, input[type="text"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}

.settingsbox {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.settingstitle {
  font-size: 15px;
  color: #94a3b8;
  margin-bottom: 15px;
  border-bottom: 1px solid #334155;
  padding-bottom: 8px;
  font-weight: 600;
}

label {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
}

.savebtn {
  background: linear-gradient(135deg, #10b981, #059669); 
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.savebtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  filter: brightness(1.1);
}

.savebtn:active {
  transform: translateY(0);
}

 #loadingoverlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background-color: #000000; 
            z-index: 9999; 
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 20px;
            transition: opacity 0.5s ease; 
            display: flex;
            flex-direction: column;
        }
        
         #loadingoverlay h2 {
           color:#f59e0b;
         }

.spinner {
            width: 60px;
            height: 60px;
            border: 6px solid rgba(255, 255, 255, 0.1); /* جسم الدائرة الشفاف */
            border-top-color: #f59e0b; 
            border-radius: 50%; 
            animation: spin 1s linear infinite; 
            margin-bottom:20px;
        }



@keyframes spin {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }


/* تنسيق العنوان */
.setting-label {
    display: block;
    color: #a0aec0;
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 6px;
}


.custom-select {
    width: 100%; 
    padding: 12px 15px;
    background-color: #111827; 
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}


.custom-select:focus {
    border-color: #3b82f6;
}


.custom-select option {
    background-color: #111827;
    color: #ffffff;
    padding: 10px;
}
