/* === Global Styles === */
body {
  margin: 0;
  font-family: monospace;
  background: #000;
  color: #fff;
  font-size: 14px;
}

body.light-mode {
  background: #fdfdfd;
  color: #111;
}

a {
  color: #00a0f8;
  text-decoration: none;
  font-size: 13px;
  font-family: "Segoe UI", sans-serif;
}
.fa-guitar {
  color: #00a0f8 !important;
  padding: 0 0 5px 0px !important;
}
.fa-fire {
  color: #00a0f8 !important;
  padding: 0 0 5px 0px !important;
}
/* === Container & Layout === */
.container {
  max-width: 600px;
  margin: auto;
  width: 100%;
  background: inherit;
}

body.light-mode .container {
  background: #ffffff;
}

/* === Icon Custom Colors === */
.icon-home { color: #ffffff; }
.icon-request { color: #ff0000; }
.icon-transpose { color: #00ff16; }

/* === Navbar === */
.navbar {
  display: flex;
  background: #414141;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.light-mode .navbar {
  background: #005cfd;
  border-top: 1px solid #004ed7;
    border-bottom: 1px solid #004ed7;
}

.navbar::-webkit-scrollbar { display: none; }

.home-button {
  flex: 0 0 auto;
  background: #00a0f8;
  color: #fff;
  padding: 8px 12px;
  font-weight: bold;
  border-right: 1px solid #000;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
}

.navbar-scroll {
  display: flex;
  flex-grow: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.navbar-scroll::-webkit-scrollbar { display: none; }

.navbar-scroll a,
.navbar a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-right: 1px solid #000;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  font-family: "Segoe UI", sans-serif;
  transition: background 0.3s;
}

body.light-mode .navbar a {
  color: #ffffff;
    border-right: 1px solid #fff;
    background: #00a0f8;
}

.navbar-scroll a:hover,
.navbar a:hover {
  background: #00a0f8;
}

/* === Mode toggle button === */
.mode-toggle {
  background: #414141;
  color: #ffffff;
  padding: 8px 10px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  font-family: "Segoe UI", sans-serif;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  font-size: 14px;
  border-right: 1px solid #000;
}

/* === Headings and Paragraphs === */
h1, h2 {
  color: #fff;
  padding: 0 10px;
  font-family: sans-serif;
  font-size: 16px;
}

body.light-mode h1,
body.light-mode h2 {
  color: #111;
}

h3 {
  background: #414141;
  color: #fff;
  padding: 0px 5px;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: bold;
  border-top: 1px solid #000;
  margin: 0;
}

body.light-mode h3 {
    background: #00a0f8;
    color: #ffffff;
    border-top: 1px solid #004ed7;
    border-bottom: 1px solid #004ed7;
}

body.light-mode .topbar {
background: #fff;
}

body.light-mode #speednav {
 background: #ffffff;
 color: #000;
}

body.light-mode #speednav li.speedbar {
    background: #242424;
}

body.light-mode #speednav .label {
    color: #000000;
}

body.light-mode #speednav li.speedbar.active {
    background: #ff0000 !important;
    box-shadow: 0 0 5px #ff0000;
}

body.light-mode .site-footer {
    background: #ffffff;
    color: #000000;
}

body.light-mode .search-box {
  box-shadow: none;
  border: 1px solid #00a0f8;
}

body.light-mode .mode-toggle {
 background: #005cfd;
 border-right: 1px solid #ffffff;
}

body.light-mode .breadcrumb {
 color: #000000;
}

body.light-mode .container {
  background: #ffffff;
}

/* === Share Button === */
.share-buttons {
      margin-bottom: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    border-top: 1px dotted #006095;
    border-bottom: 1px dotted #006095;
    padding: 8px;
    margin: 5px;
}

.share-buttons a,
.share-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0094b8;    /* warna dasar, cocok untuk dark mode */
  color: #fff;         /* biru neon seperti link kamu */
  border-radius: 50%;
  width: 36px;
  height: 36px;
  border: 1px solid #15c3ff;
  font-size: 18px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
  text-decoration: none;
  outline: none;
  box-shadow: 0 2px 10px 0 rgba(0,0,0,0.04);
}

.share-buttons a:hover,
.share-buttons button:hover {
  background: #00baff;
  color: #fff;
  transform: scale(1.12);
}

.copy-link-btn {
  outline: none;
}

/* === List Styles (Dotted Line) === */
ul {
  list-style-type: disc;
  padding-inline-start: 25px;
}

li {
  border-bottom: 1px dotted #006095;
  margin-right: 0px 0px 5px 0px;
}

/* === Topbar & Logo === */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0px;
  background: #000;
  gap: 10px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* === Search Box === */
.search-box {
  display: flex;
  align-items: center;
  background: #00a0f8;
  height: 35px;
  max-width: 280px;
  width: 100%;
  box-shadow: 0 0 5px rgba(0, 88, 255, 0.3);
}

.search-box input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 10px;
  font-size: 14px;
  background: #fff;
  color: #000;
  font-family: "Segoe UI", sans-serif;
}

.search-box input[type="text"]::placeholder {
  color: #888;
}

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px;
  color: #fff;
  font-size: 16px;
}

.search-box button i {
  font-size: 18px;
}

/* === Headings and Paragraphs === */
h1, h2 {
  color: #fff;
  padding: 0 10px;
  font-family: sans-serif;
  font-size: 16px;
}

h3 {
  background: transparent ;
  color: #00a0f8;
  padding: 0px 5px;
  font-family: sans-serif;
  font-size: 14px;
  display: block;
  margin-block-start: 0em;
  margin-block-end: 0em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  unicode-bidi: isolate;
}

p {
  padding: 0 10px;
  font-size: 14px;
  font-family: "Segoe UI", sans-serif;
}

/* === Tables === */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 15px;
}

table th, table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

/* === Preformatted Text === */
pre {
    font-family: system-ui ;
    font-size: unset;
    color: #ffffff;
    background: transparent;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* === Chords Highlight === */
.chord {
  color: #00a0f8;
  font-weight: bold;
}

/* === Controls Panel === */
#controls {
  padding: 5px;
  margin: 5px;
  border-top: 1px dotted #00a0f8;
  border-bottom: 1px dotted #00a0f8;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

#controls strong {
  font-size: 14px;
  color: #0093ff;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "Segoe UI", sans-serif;
}

#controls button {
  background: #00a0f8;
  color: #fff;
  border: 1px solid #00a0f8;
  padding: 3px 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

#controls button:hover {
  background: #414141;
  border: 1px solid #373737;
  color: #00a0f8;
}

/* === Speed Navigation Bar === */
#speednav {
  display: none;
  position: fixed;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  background: #414141;
  box-shadow: 0 0 12px rgba(255, 255, 0, 0.2);
  border: 1px solid #00a0f8;
  padding: 6px 10px;
  z-index: 9999;
  font-family: sans-serif;
}

#speednav ul {
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}

#speednav li.speedbar {
  height: 14px;
  margin: 5px auto;
  background: #fff;
  transition: all 0.2s;
}

#speednav li.speedbar:hover {
  transform: scale(1.1);
  cursor: pointer;
}

#speednav li.speedbar.active {
  background: #33ff00 !important;
  box-shadow: 0 0 5px #33ff00;
}

#speednav li.stop-btn {
  color: red;
  font-weight: bold;
  margin-top: 10px;
  font-size: 9px;
  cursor: pointer;
}

#speednav .label {
  font-size: 9px;
  color: #ccc;
  text-align: center;
  margin-bottom: 4px;
}

#speednav input[type=button] {
  width: 25px;
  height: 25px;
  font-size: 18px;
  margin: 4px 0;
  background: #00a0f8;
  color: #fff;
  border: 1px solid #00a0f8;
  cursor: pointer;
}

#speednav input[type=button]:hover {
  background: #00a0f8;
  color: #f9ff00;
}

/* === Breadcrumb === */
.breadcrumb {
  padding: 5px 5px;
  color: #fff;
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  border-top: 1px dotted #00a0f8;
  border-bottom: 1px dotted #00a0f8;
  margin: 10px 5px;
}

.breadcrumb a {
  color: #00a0f8;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb i.fa-home {
  margin-right: 5px;
  color: #00a0f8;
}

/* === REQUESTS CHORD === */
  .request-box {
  max-width: 400px;
    margin: 40px auto;
    padding: 10px 50px 10px 25px;
    background: #1a1a1a;
        font-family: "Segoe UI", sans-serif;
    color: #fff;
}

.request-box h1 {
  color: #00a0f8;
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.request-box label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #00a0f8;
}

.request-box input,
.request-box textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
  font-size: 14px;
}

.request-box button {
  background: #00a0f8;
  color: #000;
  border: none;
  padding: 12px 20px;
  margin-top: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
      font-size: 14px;
}

.request-box button:hover {
  background: #ffe600;
}

.request-box .back {
  text-align: center;
  margin-top: 20px;
}

.request-box .back a {
      color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.request-box .back a:hover {
  text-decoration: underline;
}

/* === TRANSPOSE === */
  .transpose-tool {
      color: #fff;
    padding: 30px 50px 30px 30px;
    max-width: 700px;
    font-family: monospace;
}
.transpose-tool h1 {
  font-size: 20px;
  color: #00a3f8;
  margin-bottom: 15px;
  text-align: center;
}
.transpose-tool textarea {
      width: 100%;
    padding: 10px;
    background: #414141;
    color: #00a6f9;
    border: 1px solid #005cfd;
    font-family: monospace;
    font-size: 14px;
}
.transpose-buttons {
  margin-top: 15px;
      margin-bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.transpose-buttons button {
  background: #00a3f8;
    border: none;
    color: #ffffff;
    padding: 10px 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}
.transpose-buttons button:hover {
  background: #414141;
}
#outputChord {
  margin-top: 15px;
  padding: 10px;
  background: #111;
  color: #00a6f9;
  border: 1px dashed #444;
  border-radius: 5px;
  white-space: pre-wrap;
  font-size: 14px;
}

/* === Footer === */
.site-footer {
  background: #000;
  color: #fff;
  padding: 10px;
  font-size: 14px;
  font-family: monospace;
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
  font-family: "Segoe UI", sans-serif;
}

.footer-links a {
  color: #00a0f8;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

/* === RELATED CHORDS === */
    .related-chords ul, .popular-chords ul {
      list-style: none;
      padding-left: 0;
    }
    .related-chords li, .popular-chords li {
      display: flex;
      align-items: center;
      gap: 6px;
      margin: 5px 5px 5px 5px;
    }
    .related-chords li i, .popular-chords li i {
      min-width: 10px;
    }
    
/* === Responsive Styles === */
@media (max-width: 600px) {
  .logo img {
    height: 50px;
    width: 100%;
  }

  .topbar {
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
  }

  .search-box {
    max-width: 100%;
    height: 34px;
  }

  .search-box input[type="text"] {
    font-size: 15px;
    padding: 7px 15px;
  }

  .footer-container {
    flex-direction: column;
    gap: 10px;
  }

  .popular-wrapper,
  .popular-item {
    font-size: 14px;
    padding: 7px 10px;
  }
}

@media (min-width: 768px) {
  .main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
  }

  .content {
    text-align: left;
  }
}
