/* MGS 2.3 Indonesia Premium Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --mgs-orange: #00f0ff;
  --mgs-orange-glow: rgba(0, 240, 255, 0.45);
  --mgs-dark-bg: #09090c;
  --mgs-card-bg: rgba(18, 18, 24, 0.7);
  --mgs-border-color: rgba(0, 240, 255, 0.15);
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--mgs-dark-bg);
  color: #f3f4f6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 10% 20%, rgba(0, 240, 255, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(0, 240, 255, 0.03) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Custom Scrollbar for gaming vibe */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0d0d12;
}
::-webkit-scrollbar-thumb {
  background: var(--mgs-orange);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00c8ff;
}

/* Glassmorphism Card style */
.glass-card {
  background: var(--mgs-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--mgs-border-color);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.glass-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 12px 40px 0 rgba(0, 240, 255, 0.08);
}

/* Orange Accent Neon Glow */
.glow-text {
  text-shadow: 0 0 12px var(--mgs-orange-glow);
}

.glow-border {
  box-shadow: 0 0 15px var(--mgs-orange-glow);
}

/* Custom Micro-animations */
.hover-scale {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
  transform: translateY(-4px) scale(1.02);
}

/* Rich Hero Banner Slider Fade Animation */
.slide-fade {
  animation: fadeEffect 1.5s;
}

@keyframes fadeEffect {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* Accordion Smooth Height Transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.accordion-active .accordion-content {
  max-height: 500px;
}

/* Custom toggle switch styling */
.toggle-checkbox:checked {
  right: 0;
  border-color: var(--mgs-orange);
}
.toggle-checkbox:checked + .toggle-label {
  background-color: var(--mgs-orange);
}

/* Toast alert notification styling */
.toast-alert {
  animation: slideIn 0.3s forwards, fadeOut 0.5s 4.5s forwards;
}

@keyframes slideIn {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ==========================================================================
   EASYMDE MARKDOWN EDITOR DARK THEME CUSTOMIZATION
   ========================================================================== */
.EasyMDEContainer {
  background: transparent !important;
}

.editor-toolbar {
  background: rgba(18, 18, 24, 0.95) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 240, 255, 0.15) !important;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  opacity: 1 !important;
  padding: 8px 14px !important;
}

.editor-toolbar button {
  color: #9ca3af !important;
  border: none !important;
  border-radius: 6px !important;
  transition: all 0.2s !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 2px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.editor-toolbar button:hover,
.editor-toolbar button.active {
  background: rgba(0, 240, 255, 0.1) !important;
  color: var(--mgs-orange) !important;
}

.editor-toolbar i.separator {
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-right: none !important;
  margin: 0 6px !important;
}

.CodeMirror {
  background: #09090c !important;
  color: #f3f4f6 !important;
  border: 1px solid rgba(0, 240, 255, 0.15) !important;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  min-height: 250px !important;
  padding: 8px 4px !important;
}

.CodeMirror-scroll {
  min-height: 250px !important;
}

.CodeMirror-cursor {
  border-left: 2px solid var(--mgs-orange) !important;
}

.CodeMirror-selected {
  background: rgba(0, 240, 255, 0.2) !important;
}

/* Custom Scrollbar for CodeMirror Container */
.CodeMirror-scroll::-webkit-scrollbar {
  width: 6px;
}
.CodeMirror-scroll::-webkit-scrollbar-track {
  background: #0d0d12;
  border-bottom-right-radius: 14px;
}
.CodeMirror-scroll::-webkit-scrollbar-thumb {
  background: var(--mgs-orange);
  border-radius: 3px;
}

.editor-statusbar {
  color: #6b7280 !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 11px !important;
  padding: 8px 14px !important;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: transparent !important;
  border: none !important;
}

.editor-statusbar span {
  margin: 0 !important;
}

/* EasyMDE Side-by-side & Fullscreen mode dark adjustments */
.editor-preview-active-side {
  background: #09090c !important;
  color: #f3f4f6 !important;
  border: 1px solid rgba(0, 240, 255, 0.15) !important;
}

.editor-preview {
  background: #09090c !important;
  color: #f3f4f6 !important;
}

.editor-preview pre {
  background: #121218 !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Invert datetime-local browser calendar indicator to white for high dark contrast */
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* Heart beating animation */
.heart-pulse {
  display: inline-block;
  animation: heartBeat 1.2s infinite;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

/* OH.OK text neon shadow animation */
.oh-ok-text {
  animation: neonShadow 3s infinite alternate;
}

@keyframes neonShadow {
  0% {
    text-shadow: 0 0 4px #ff00ff, 0 0 10px #ff00ff, 0 0 20px #ff00ff;
    color: #ffffff;
  }
  100% {
    text-shadow: 0 0 4px #0000ff, 0 0 10px #0000ff, 0 0 20px #0000ff;
    color: #ffffff;
  }
}
