* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  background-color: #1e1e1e;
  overflow-x: hidden;
  height: 100%;
  width: 100%;
  margin: 0;
}

.navbar {
  background-color: #1e1e1e;
  color: black;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  font-weight: bold;
  box-shadow: 0 0 10px black;
  z-index: 5000;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-direction: row;
  color: white;
}


.icon {
  font-size: 20px;
}



.right-section {
  display: flex;
  gap: 10px;
  margin-right: 30px;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  color: white;
}


.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .center-section,
  .right-section {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .center-section.show,
  .right-section.show {
    display: flex;
  }

  .center-section a {
    margin: 10px 0;
  }

  .right-section {
    align-items: flex-start;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
}
}

.hukum-card{
 width: 260px;                
height: 220px;               
background: linear-gradient(to bottom right, #1e40af, #3b82f6);
    border-radius: 20px;         
    box-shadow: 0 8px 20px rgba(0,0,0,0.5); 
    padding: 20px;               
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: end; 
    cursor: pointer;             
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}
.hukum-card:hover {
    transform: scale(1.05);     
    box-shadow: 0 12px 25px rgba(0,0,0,0.6);
}
.rule-title {
  font-size: 22px;
  font-weight: 800;
  color: #a7f3d0;
  margin-bottom: 10px;
  padding-right: 12px;
}
.rule-text {
  font-size: 18px;
  color: #e5e7eb;
  line-height: 1.8;
  margin-bottom: 10px;
  margin-right: -5px;
}
.details{
    font-size: 18px;
}
.Contener{
    position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.9;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

}
.details-box {
  width: 100%;                
  max-width: 720px;           
  min-width: 280px;           
  min-height: 180px;          
  max-height: 80vh;           
  overflow-y: auto;           

  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 18px;

  padding: 22px 26px;
  margin: 18px auto 0;

  color: #e5e5e5;
  line-height: 1.9;
  font-size: 15px;
  position: relative;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.02);

  box-sizing: border-box;     
  text-align: justify;        
}

@media (max-width: 400px) {
  .details-box {
    padding: 18px 16px;       
    font-size: 0.9rem;        
    min-height: 150px;        
  }
}
.rule-titles {
  font-size: 25px;
  font-weight: 800;

  color: #22c55e;          
  margin-bottom: 14px;

  position: relative;
  padding-right: 14px;
}
.rule-label {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: #facc15;         
  background-color: #1e1e1e;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  text-align: center;

  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.rule-texts {
  font-size: 17px;              
  color: #facc15;             
  font-weight: 600;             
  line-height: 1.8;             
  text-align: justify;          
  padding: 12px 15px;           
  border-left: 4px solid #facc15; 
  background-color: rgba(255, 255, 255, 0.05); 
  border-radius: 8px;          
  margin-bottom: 15px;          
  word-break: break-word;       
  transition: transform 0.2s;   
}

.rule-texts:hover {
  transform: scale(1.02);       
  background-color: rgba(255, 255, 255, 0.1); 
}
.details-text {
  font-size: 24px;                 
  color: #ffffff;                   
  font-weight: 500;                 
  line-height: 1.7;                
  text-align: justify;              
  padding: 12px 15px;              
  background-color: rgba(0, 0, 0, 0.4); 
  border-radius: 8px;               
  margin-bottom: 12px;            
  word-break: break-word;           
  transition: background 0.2s;     
}

.details-text:hover {
  background-color: rgba(0, 0, 0, 0.6);
}
.evidence-text {
  font-size: 18px;                  
  color: #facc15;                   
  font-weight: 700;                 
  line-height: 1.6;                 
  text-align: justify;               
  padding: 10px 12px;               
  background-color: rgba(0, 0, 0, 0.3); 
  border-left: 4px solid #facc15;    
  border-radius: 6px;               
  margin-top: -20px;                
  word-break: break-word;           
}
.evidence-texts {
  font-size: 20px;                  
  color: #facc15;                   
  font-weight: 700;                
  line-height: 1.6;                 
  text-align: justify;              
  padding: 20px 12px;               
  background-color: rgba(0, 0, 0, 0.3); 
  border-left: 4px solid #facc15; 
  border-radius: 6px;               
  margin-top: 25px;                
  word-break: break-word;           
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.sunnah-text {
  font-size: 20px;                  
  color: #4ade80;                    
  font-weight: 600;                  
  line-height: 1.5;                  
  text-align: justify;               
  padding: 8px 10px;                 
  background-color: rgba(0, 0, 0, 0.2);  
  border-left: 4px solid #4ade80;        
  border-radius: 5px;                      
  margin-top: 12px;                        
  word-break: break-word;                
  box-shadow: 0 1px 4px rgba(0,0,0,0.15); 
}

@media (max-width: 1024px) {
  .details-box {
    padding: 20px 22px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .details-box {
    max-width: 95%;
    padding: 18px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .details-box {
    padding: 15px 16px;
    font-size: 13px;
    min-height: 150px;
  }
}

.ButtonDelete {
  background-color: #ff4d4f;      
  color: #ffffff;                 
  font-weight: bold;
  font-size: 16px;
  padding: 10px 22px;
  border: none;
  border-radius: 12px;            
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.ButtonDelete:hover {
  background-color: #ff7875;      
  transform: scale(1.05);         
}

.ButtonDelete:active {
  transform: scale(0.98);         
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

@media (max-width: 480px) {
  .ButtonDelete {
    font-size: 14px;
    padding: 8px 16px;
  }
}

.zakatSearch {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border-radius: 14px;
  border: 2px solid #2563eb; 
  background-color: #000; 
  color: #e5e7eb; 
  outline: none;
  transition: all 0.3s ease;
}

.zakatSearch::placeholder {
  color: #9ca3af;
}

.zakatSearch:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}
.position{
  position: absolute;
  top: 0px;
}

 .save-btn_Zakat {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}

.save-btn_Zakat:hover {
  background-color: #333;
  transform: scale(1.05);
} 
.save-btn_Zakat{
  white-space: pre;
}
.share-btn i {
  font-size: 16px;
}

.share-btn:hover {
  background-color: #f0fdf4;
  border-color: #16a34a;
  color: #166534;
  transform: scale(1.05);
}

.share-btn:active {
  transform: scale(0.95);
}

.share-btn:focus {
  outline: none;
}
.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid BLUE;
  background-color: BLUE;
  color: black; 
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
