﻿html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
  background-color: #f5f7fa;
}

.container {
  max-width: 960px;
}

/* --- PLUGIN CARD --- */

.plugin-card {
  background: #ffffff;
  border: 1px solid #d0e0ef;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  transition: all 0.2s ease-in-out;
}

  .plugin-card:hover {
    box-shadow: 0 6px 10px rgba(0,0,0,0.08);
  }

.plugin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1.1rem;
  margin-bottom: 8px;
  gap: 10px;
}

/* ŠIPKA */
.arrow {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 1.2rem;
  transform-origin: center center;
  margin-top: 2px;
}

  .arrow.rotated {
    transform: rotate(90deg);
  }

/* --- PLUGIN TEXT STYLES --- */

.plugin-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.plugin-title {
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1.2;
}

.plugin-subtitle {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 2px;
}

/* --- VERSION & LINKS --- */

.plugin-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.95rem;
  color: #666;
  margin-left: auto;
}

.plugin-version-strong {
  font-weight: bold;
}

.plugin-version-date {
  margin-left: 2px;
  font-size: 0.95rem;
}

.download-latest {
  font-size: 1.3rem;
  color: #0d6efd;
  text-decoration: none;
}

  .download-latest:hover {
    color: #084298;
  }

/* --- COLLAPSIBLE LIST --- */

.plugin-versions {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  margin-top: 0;
  transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out, padding 0.2s ease-in-out, margin 0.2s ease-in-out;
}

  .plugin-versions.open {
    max-height: 1000px;
    opacity: 1;
    padding-top: 10px;
    margin-top: 10px;
  }

  .plugin-versions li {
    margin-bottom: 12px;
  }

.version-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-link {
  font-size: 1.2rem;
  text-decoration: none;
  color: #198754;
}

  .download-link:hover {
    color: #145c38;
  }

.delete-form {
  display: inline;
}

  .delete-form button {
    background: none;
    border: none;
    color: darkred;
    cursor: pointer;
    font-size: 1rem;
  }

    .delete-form button:hover {
      text-decoration: underline;
    }

.note {
  font-style: italic;
  color: #555;
  margin-left: 4px;
  margin-top: 2px;
}

/* --- NAVBAR & FOOTER --- */

.navbar {
  background-color: #003366 !important;
}

.navbar-brand,
.nav-link {
  color: #ffffff !important;
  font-weight: 500;
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff !important;
}

.nav-link.active {
  text-decoration: underline;
}

.footer {
  background-color: #f0f0f0;
  padding: 10px 0;
  font-size: 0.9em;
}

/* --- FORM FOCUS --- */

.btn:focus, .btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
