/* =========================================== */
/* QUICK MENU BLOCK - COMPLETE STYLING */
/* =========================================== */

/* Font Awesome Import (jika belum ada) */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Quick Menu Container */
.block_custom .quick-menu {
  border: 1px solid #355f8b;
  margin-bottom: 25px;
  font-family: "Poppins", Sunflower, Arial, sans-serif;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(13, 36, 85, 0.1);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.block_custom .quick-menu:hover {
  box-shadow: 0 6px 16px rgba(13, 36, 85, 0.15);
  transform: translateY(-2px);
}

/* Title Section */
.block_custom .qm-title {
  background: linear-gradient(135deg, #0d2455 0%, #355f8b 100%);
  color: #fff;
  text-align: center;
  padding: 15px;
  font-weight: 700;
  font-size: 18px;
  margin: 0;
  font-family: Sunflower, helvetica, calibri;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.block_custom .qm-title:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.block_custom .qm-title:hover:before {
  left: 100%;
}

/* List Container */
.block_custom .qm-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* List Items */
.block_custom .qm-list li {
  margin: 0;
  padding: 0;
  position: relative;
}

.block_custom .qm-list li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: #0d2455;
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: top;
}

.block_custom .qm-list li:hover:before {
  transform: scaleY(1);
}

/* Links */
.block_custom .qm-list li a {
  display: flex;
  align-items: center;
  background: #f8fafc;
  color: #0d2455;
  padding: 14px 18px;
  text-decoration: none;
  font-size: 14.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  border-bottom: 1px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.block_custom .qm-list li:last-child a {
  border-bottom: none;
}

.block_custom .qm-list li a:after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13, 36, 85, 0.05), transparent);
  transition: left 0.7s ease;
}

.block_custom .qm-list li a:hover:after {
  left: 100%;
}

.block_custom .qm-list li a:hover {
  background: linear-gradient(to right, #e9f7fe 0%, #f0f7ff 100%);
  color: #0d2455;
  padding-left: 22px;
  transform: translateX(3px);
}

/* Icons */
.block_custom .qm-list .icon {
  width: 24px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.block_custom .qm-list li a:hover .icon {
  transform: scale(1.15) rotate(5deg);
  color: #0d2455;
}

/* Specific Icon Colors */
.block_custom .qm-list li:nth-child(1) .icon { color: #4267B2; } /* Facebook Blue */
.block_custom .qm-list li:nth-child(2) .icon { color: #1DA1F2; } /* Twitter Blue */
.block_custom .qm-list li:nth-child(3) .icon { color: #E1306C; } /* Instagram Pink */
.block_custom .qm-list li:nth-child(4) .icon { color: #008c99; } /* Teal */
.block_custom .qm-list li:nth-child(5) .icon { color: #FF9900; } /* Orange */
.block_custom .qm-list li:nth-child(6) .icon { color: #DC143C; } /* Crimson */
.block_custom .qm-list li:nth-child(7) .icon { color: #32CD32; } /* Lime Green */
.block_custom .qm-list li:nth-child(8) .icon { color: #9370DB; } /* Medium Purple */
.block_custom .qm-list li:nth-child(9) .icon { color: #FF4500; } /* Orange Red */
.block_custom .qm-list li:nth-child(10) .icon { color: #228B22; } /* Forest Green */
.block_custom .qm-list li:nth-child(11) .icon { color: #4169E1; } /* Royal Blue */

/* Arrow Indicator */
.block_custom .qm-list li a:before {
  content: '→';
  position: absolute;
  right: 18px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: #0d2455;
  font-weight: bold;
}

.block_custom .qm-list li a:hover:before {
  opacity: 1;
  transform: translateX(0);
}

/* Active State */
.block_custom .qm-list li.active a {
  background: linear-gradient(to right, #0d2455 0%, #355f8b 100%);
  color: #fff;
  border-left: 4px solid #bcd2e7;
}

.block_custom .qm-list li.active .icon {
  color: #fff;
}

/* Badge for New Items (Optional) */
.block_custom .qm-list li.new:after {
  content: 'NEW';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: #ff4757;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .block_custom .quick-menu {
    margin: 15px 0;
    border-radius: 6px;
  }
  
  .block_custom .qm-title {
    padding: 12px;
    font-size: 16px;
  }
  
  .block_custom .qm-list li a {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .block_custom .qm-list .icon {
    width: 20px;
    margin-right: 12px;
    font-size: 14px;
  }
  
  .block_custom .qm-list li a:hover {
    padding-left: 18px;
  }
}

@media (max-width: 480px) {
  .block_custom .quick-menu {
    border-radius: 4px;
  }
  
  .block_custom .qm-title {
    font-size: 15px;
    padding: 10px;
  }
  
  .block_custom .qm-list li a {
    padding: 10px 12px;
    font-size: 13.5px;
  }
  
  .block_custom .qm-list .icon {
    width: 18px;
    margin-right: 10px;
    font-size: 13px;
  }
  
  .block_custom .qm-list li a:before {
    display: none; /* Hide arrow on very small screens */
  }
}

/* Animation for new items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.block_custom .qm-list li {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.block_custom .qm-list li:nth-child(1) { animation-delay: 0.05s; }
.block_custom .qm-list li:nth-child(2) { animation-delay: 0.1s; }
.block_custom .qm-list li:nth-child(3) { animation-delay: 0.15s; }
.block_custom .qm-list li:nth-child(4) { animation-delay: 0.2s; }
.block_custom .qm-list li:nth-child(5) { animation-delay: 0.25s; }
.block_custom .qm-list li:nth-child(6) { animation-delay: 0.3s; }
.block_custom .qm-list li:nth-child(7) { animation-delay: 0.35s; }
.block_custom .qm-list li:nth-child(8) { animation-delay: 0.4s; }
.block_custom .qm-list li:nth-child(9) { animation-delay: 0.45s; }
.block_custom .qm-list li:nth-child(10) { animation-delay: 0.5s; }
.block_custom .qm-list li:nth-child(11) { animation-delay: 0.55s; }

/* Print Styles */
@media print {
  .block_custom .quick-menu {
    border: 1px solid #000;
    box-shadow: none;
  }
  
  .block_custom .qm-title {
    background: #fff !important;
    color: #000 !important;
    border-bottom: 2px solid #000;
  }
  
  .block_custom .qm-list li a {
    color: #000 !important;
    background: #fff !important;
    border-bottom: 1px solid #ccc;
  }
  
  .block_custom .qm-list li:before {
    display: none;
  }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
  .block_custom .quick-menu {
    background: #1a1a2e;
    border-color: #355f8b;
  }
  
  .block_custom .qm-title {
    background: linear-gradient(135deg, #0d2455 0%, #1e3a5f 100%);
  }
  
  .block_custom .qm-list li a {
    background: #16213e;
    color: #e6e6e6;
    border-bottom-color: #2d3748;
  }
  
  .block_custom .qm-list li a:hover {
    background: #0f3460;
    color: #fff;
  }
}

/* Accessibility - Focus States */
.block_custom .qm-list li a:focus {
  outline: 2px solid #0d2455;
  outline-offset: 2px;
  background: #e9f7fe;
}

/* High Contrast Mode */
@media (forced-colors: active) {
  .block_custom .quick-menu {
    border: 2px solid CanvasText;
  }
  
  .block_custom .qm-title {
    background: CanvasText;
    color: Canvas;
  }
  
  .block_custom .qm-list li a {
    border-bottom: 1px solid CanvasText;
  }
}

/* Scrollbar Styling (if list becomes scrollable) */
.block_custom .quick-menu.scrollable {
  max-height: 400px;
  overflow-y: auto;
}

.block_custom .quick-menu.scrollable::-webkit-scrollbar {
  width: 6px;
}

.block_custom .quick-menu.scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.block_custom .quick-menu.scrollable::-webkit-scrollbar-thumb {
  background: #bcd2e7;
  border-radius: 3px;
}

.block_custom .quick-menu.scrollable::-webkit-scrollbar-thumb:hover {
  background: #0d2455;
}