/* Custom CSS File for jDownloads
   If this file already exist then jDownloads does not overwrite it when installing or upgrading jDownloads.
   This file is loaded after the standard jdownloads_fe.css.
   So you can use it to overwrite the standard css classes for your own customising.
*/
/* === Modernized jDownloads Layout === */
/* by ChatGPT modern UI version */

:root {
  --primary: #0055ff;
  --secondary: #f4f6fa;
  --accent: #ff9900;
  --text: #222;
  --text-light: #666;
  --border: #e1e4eb;
  --radius: 10px;
}

/* Reset dasar */
.jd-content {
  font-family: "Inter", "Roboto", sans-serif;
  color: var(--text);
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Judul halaman */
.jd-page-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

/* === Kategori === */
.jd-category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.jd-category {
  background: var(--secondary);
  padding: 1.2rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.jd-category:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 85, 255, 0.1);
  transform: translateY(-3px);
}

.jd-category-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.jd-category-description {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* === Daftar file === */
.jd-file-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.jd-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  transition: all 0.25s ease;
}

.jd-file-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 85, 255, 0.1);
}

.jd-file-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.jd-file-name {
  font-weight: 500;
  color: var(--primary);
}

.jd-file-size {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Tombol download */
.jd-download-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.jd-download-btn:hover {
  background: var(--accent);
}

/* === Responsif === */
@media (max-width: 768px) {
  .jd-file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .jd-download-btn {
    width: 100%;
    text-align: center;
  }
.jd_fields div:nth-child(odd) {
  font-weight:600;
  color:#333;
}
.jd_fields div:nth-child(even) {
  color:#555;
}
.jd_download_details_wrapper a,
.jd_files_title39 a {
  color:#1976d2;
  text-decoration:none;
}
.jd_download_details_wrapper a:hover {
  text-decoration:underline;
}
.jd_fields div:nth-child(odd) {
  font-weight:600;
  color:#333;
}
.jd_fields div:nth-child(even) {
  color:#555;
}
a:hover {
  opacity:0.9;
}
.jd_download_details_wrapper .jd_field_title {
  font-weight: 600;
  color: #333;
}
.jd_download_details_wrapper .jd_field_value {
  color: #555;
}
.jd_download_details_wrapper a {
  color: #1976d2;
  text-decoration: none;
}
.jd_download_details_wrapper a:hover {
  text-decoration: underline;
}
.jd-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.jd-category-item {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  text-align: center;
  padding: 15px;
  transition: 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.jd-category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.jd-category-title {
  font-weight: bold;
  margin: 10px 0;
  color: #2b3e50;
}

.jd-category-meta {
  font-size: 0.9em;
  color: #777;
}
.jd-category-item a img {
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.jd-category-item a:hover img {
  transform: scale(1.05);
}

.jd-category-title a {
  text-decoration: none;
  color: #2b3e50;
}

.jd-category-title a:hover {
  color: #007bff;
}
/* === Modern Categories Grid for jDownloads 4.x === */
.jd-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin: 30px 0;
  padding: 10px;
}

.jd-category-item {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
  padding: 15px;
  transition: all 0.3s ease;
}

.jd-category-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.jd-category-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.jd-category-image:hover img {
  transform: scale(1.05);
}

.jd-category-title {
  margin: 12px 0 6px;
  font-weight: 600;
  font-size: 1.05rem;
}

.jd-category-title a {
  text-decoration: none;
  color: #2b3e50;
}

.jd-category-title a:hover {
  color: #007bff;
}

.jd-category-meta {
  font-size: 0.9rem;
  color: #777;
}

.jd-clear {
  clear: both;
}
jd-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin: 25px 0;
}
.jd-category-item {
  text-align: center;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 15px;
  transition: all 0.3s ease;
}
.jd-category-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}
.jd-cat-img img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}
.jd-cat-img:hover img {
  transform: scale(1.05);
}
.jd-cat-title a {
  color: #2b3e50;
  text-decoration: none;
  font-weight: bold;
  display: block;
  margin-top: 10px;
}
.jd-cat-title a:hover {
  color: #007bff;
}
.jd-cat-meta {
  font-size: 0.9rem;
  color: #777;
  margin-top: 5px;
}