@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  background: linear-gradient(135deg, #1d143c 40%, #6366f1 100%, #a855f7 100%);
  background-attachment: fixed; 
  color: #ffffff; 
  overflow-x: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1d143c 50%, #6366f1 100%, #a855f7 100%);
    backdrop-filter: blur(5px);
    padding: 12px 24px;
    width: 100%;
    z-index: 10;
}

.divwelcomemsg h2 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

.navbar button {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.menubtn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); 
  border: none;
  width: 40px;               
  height: 40px;              
  border-radius: 8px;        
  cursor: pointer;
  display: flex;
  flex-direction: column;    
  justify-content: center;   
  align-items: center;       
  gap: 4px;                  
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease; 
  flex-shrink: 0;            
}

.menubtn span {
  display: block;
  width: 20px;               
  height: 2px;               
  background-color: white;   
  border-radius: 2px;
  transition: all 0.3s ease; 
}

.menubtn:hover {
  transform: translateY(-2px); 
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.5);
  filter: brightness(1.1);     
}

.menubtn:hover span:nth-child(2) {
  width: 24px;
}

.welcometext {
  color: #ffffff;            
  font-size: 14px;
  font-weight: 700;          
  text-align: center;
  flex: 1;
  padding: 0 10px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 
               0 0 20px rgba(59, 130, 246, 0.2); 
  letter-spacing: 0.5px;     
}

.welcometext .brandcolor {
  color: #f59e0b;            
  font-weight: 700;          
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.4); 
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background-color: rgba(19, 12, 39, 0.88); 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  border-left: 1px solid rgba(168, 85, 247, 0.2); 
  padding: 80px 20px;        
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar.open {
  transform: translateX(0);
}

.closebtn {
  position: absolute;
  top: 20px;
  left: 25px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 32px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.closebtn:hover {
  color: #ef4444; 
  transform: rotate(90deg); 
}

.sidebarlinks {
  margin-top: 20px;
}

.sidebarlinks a {
  display: flex;
  align-items: center;
  color: #e2e8f0;             
  text-decoration: none;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;        
  border-radius: 12px;        
  background: rgba(255, 255, 255, 0.03); 
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebarlinks a.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(29, 78, 216, 0.2));
  color: #60a5fa;             
  border-color: rgba(59, 130, 246, 0.3);
}

.sidebarlinks a:hover {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); 
  color: white;               
  padding-right: 25px;        
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); 
  transform: scale(1.02);     
}

.contactmodaloverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6); 
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none; 
  justify-content: center;
  align-items: center;
  z-index: 1001; 
  padding: 20px;
}

.modalcontent.contactcard {
  background: linear-gradient(135deg, #1d143c 40%, #6366f1 100%, #a855f7 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #0f172a;
  width: 100%;
  max-width: 440px;
  padding: 35px 25px;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  position: relative;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  direction: rtl; 
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modalcontent h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color:#FFFFFF;
}

.modalcontent .modalcodetitle {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color:#3b82f6;
}

.modaldesc {
  font-size: 14.5px;
  color: #FFFFFF;
  line-height: 1.6;
  margin-bottom: 25px;
  margin-right: 30px;
}

.contactmethods {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contactlink {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.emaillink {
  background-color: #f1f5f9;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

.emaillink:hover {
  background-color: #e2e8f0;
  transform: translateY(-1px);
}

.whatsappbtn {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.whatsappbtn:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.modalcontent .closebtn {
  position: absolute;
  top: 15px;
  left: 20px;
  right: auto; 
  font-size: 26px;
  font-weight: bold;
  color: #94a3b8;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modalcontent .closebtn:hover {
  color: #ef4444;
  transform: scale(1.1);
}

.aboutfeatures {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: right; 
  margin-top: 10px;
}

.featureitem {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 12px;
  border-radius: 14px;
  background: #f59e0b;
  border: 1px solid rgba(15, 23, 42, 0.02);
  transition: background 0.2s ease;
}

.featureicon {
  font-size: 24px;
  margin-top: 2px;
  flex-shrink: 0; 
}

.featuretext h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.featuretext p {
  font-size: 13px;
  color: #FFFFFF;
  line-height: 1.5;
}

.binscontainer {
  width: 92%;
  max-width: 800px;
  margin: 60px auto 30px auto; 
  padding: 25px;
  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);
}

.binsheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

.headerright {
  text-align: right;
}

.binsheader h2 {
  font-size: 20px;
  color: #ffffff;
  font-weight: 700;
}

.binsheader p {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 5px;
}

.headerleft {
  flex-shrink: 0;
}

.createbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); 
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.createbtn:hover {
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
  filter: brightness(1.1); 
}

.createbtn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.4);
}

.binslist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.binitem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid #334155;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  direction: rtl; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.binitem:hover {
  border-color: #3b82f6;
  background: rgba(30, 41, 59, 0.7);
  transform: scale(1.01);
}

.bintitle {
  font-weight: 600;
  color: #38bdf8;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; 
  padding-left: 10px;
}

.bindate {
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.loadingtext, .nodatatext {
  text-align: center;
  color: #94a3b8;
  padding: 30px;
  font-size: 14px;
}

.modaloverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6); 
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
    transition: opacity 0.3s ease;
    display: none;
}

.modalcontent {
    background-color:  #1e293b;
    width: 90%;
    max-width: 600px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: 85vh;       
    overflow-y: auto;       
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modaloverlay .modalcontent {
    transform: scale(1);
}

.closebtn {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
    line-height: 1;
}

.closebtn:hover {
    color: #ef4444;
}

.modalcodetitle {
    color: #64748b;
    margin-bottom: 12px;
    font-size: 20px;
    padding-left: 20px;
}

.edittitle {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    margin-bottom: 12px;
    resize: none;
    height: 44px;
    outline: none;
    border-color: #64748b;
    background-color: #0f172a;
    color:#f8fafc;
    display: none;
}

.edittitle:focus {
    border-color: #3b82f6;
}

.dates {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 11px;
  color: #f8fafc;
  background-color: #64748b;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: nowrap;
  box-sizing: border-box;
  width: 100%;
}

.dates p {
  margin: 0;
}

pre {
    background-color: #000000;
    border-radius: 20px;
    overflow-x: auto;
    height: 50vh;
    max-height: 400px;
    overflow-y: auto;
}

pre code {
    background: transparent !important;
    color: #ffffff !important;
    height: 50vh;
}

#textmodalContent {
    width: 100%;
    height: 450px; 
    color:  #f8fafc;
    padding: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    background-color: #0f172a;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    resize: vertical;
    margin-bottom: 20px;
    border-color: #64748b;
}

#textmodalContent:focus {
    border-color: #3b82f6;
}

.modalactions {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}

.modalactions button {
    flex: 1;
    min-width: 105px; 
    padding: 11px 15px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.copycodebtn { background-color: #3b82f6; color: white; }
.copycodebtn:hover { background-color: #2563eb; }

.editcodebtn { background-color: #f59e0b; color: white; }
.editcodebtn:hover { background-color: #d97706; }

.deletecodebtn { background-color: #ef4444; color: white; }
.deletecodebtn:hover { background-color: #dc2626; }

.downloadbtn { background-color: #10b981; color: white; }
.downloadbtn:hover { background-color: #059669; }

.rawbtn { background-color: #64748b; color: white; }
.rawbtn:hover { background-color: #475569; }

.saveeditcodebtn { 
    background-color: #059669; 
    color: white;
    display: none !important;
}

.saveeditcodebtn:hover { background-color: #047857; }

.modalcontent::-webkit-scrollbar {
    width: 6px;
}

.modalcontent::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 0 12px 12px 0;
}

.modalcontent::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

.modalcontent::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (max-width: 580px) {
  .binsheader {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 18px;
  }
  
  .headerright {
    text-align: right;
  }

  .headerleft {
    display: flex;
    justify-content: flex-start; 
  }

  .createbtn {
    width: 100%;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .modalactions {
    flex-direction: column; 
    gap: 10px;
  }
}

.usernamemsg {
  color: #3b82f6; 
  font-size: 16px;            
  font-weight: 500;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;            
  text-align: left;           
  max-width: 80px;            
  white-space: normal;        
  word-wrap: break-word;    
  text-decoration: none;
}

#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);
    }
}

.hljs-ln-numbers {
    user-select: none;
    -webkit-user-select: none;
    text-align: right;
    color: #5c6370;
    border-right: 1px solid #3e4451;
    vertical-align: top;
    padding-right: 10px !important;
}

.hljs-ln-code {
    padding-left: 12px !important;
}

.setting-label {
    display: none;
    color: #a0aec0;
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 6px;
}

.currentsetting-label {
    display: block;
    color: #a0aec0;
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 6px;
}

.custom-select {
    display: none;
    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;
    margin-bottom: 10px;
}

.custom-select:focus {
    border-color: #3b82f6;
}

.custom-select option {
    background-color: #111827;
    color: #ffffff;
    padding: 10px;
}
