/* =========================================
   CENDO.CSS - CLEANED AND OPTIMIZED
   Removed unused styles from legacy Joomla CMS
   Kept only what's used in migrated Razor Pages
   ========================================= */

/* COMMON STYLES
--------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
}

body {
  color: #545C66;
  background: #FFFFFF;
  font-family: Tahoma, Arial, Geneva, sans-serif;
  line-height: 1.5;
}

  /* Body with background (used by _Layout.cshtml) */
  body#bd {
    background: url(../images/body-bg.jpg) repeat-x top #5E6874;
    background-attachment: fixed;
    margin-top: 10px;
  }

  /* Font size classes (used by cendo.js changeFontSize function) */
  body.fs1 {
    font-size: 12px;
  }

  body.fs2 {
    font-size: 13px;
  }

  body.fs3 {
    font-size: 14px;
  }

  body.fs4 {
    font-size: 15px;
  }

  body.fs5 {
    font-size: 16px;
  }

  body.fs6 {
    font-size: 17px;
  }

a {
  color: #990000;
  text-decoration: none;
}

  a:hover,
  a:active,
  a:focus {
    color: #FF0000;
    text-decoration: underline;
  }

h1 {
  font-size: 1.5em;
  font-weight: normal;
}

h2 {
  font-size: 1.3em;
}

h3 {
  font-size: 1.17em;
}

h4 {
  font-size: 1em;
  text-transform: uppercase;
}

p {
  margin: 8px 0 8px;
}

ul {
  margin-top: 5px;
  margin-bottom: 15px;
  list-style: none;
  line-height: 1.3;
}

  ul li {
    padding-left: 35px;
    background: url(../images/bullet-list.gif) no-repeat 20px 6px;
    margin-top: 6px;
    margin-bottom: 6px;
  }

ol {
  margin-top: 5px;
  margin-bottom: 15px;
}

  ol li {
    margin-left: 35px;
    margin-top: 6px;
    margin-bottom: 6px;
  }

th {
  padding: 4px;
  font-weight: bold;
  text-align: left;
}

hr {
  border-top: 1px solid #C6CED9;
  border-right: 0;
  border-left: 0;
  border-bottom: 0;
  height: 1px;
}

a img {
  border: none;
}

td, div {
  font-size: 1em;
}

img {
  max-width: 100%;
  height: auto;
}

form {
  margin: 0;
  padding: 0;
}

input, select {
  font: 11px/normal Tahoma, Arial, Helvetica, sans-serif;
}

select, .inputbox {
  padding: 2px;
}

textarea {
  padding-left: 2px;
}

.button, .button:hover {
  border-top: 1px solid #DFE5EC;
  border-right: 1px solid #8E9CAE;
  border-bottom: 1px solid #8E9CAE;
  border-left: 1px solid #DFE5EC;
  padding: 1px 10px !important;
  padding: 1px 5px;
  background: url(../images/button-bg.gif) repeat-x top left #ECF0F4;
  color: #646E7B;
}

  .button:active,
  .button:focus {
    border-top: 1px solid #8E9CAE;
    border-right: 1px solid #DFE5EC;
    border-bottom: 1px solid #DFE5EC;
    border-left: 1px solid #8E9CAE;
  }

.inputbox {
  border: 1px solid #DFE5EC;
  background: #FFFFFF;
}

  .inputbox:hover,
  .inputbox:focus {
    border: 1px solid #8E9CAE;
  }

div.moduletable h3 {
  margin: 0 -10px 5px;
  padding: 5px 10px;
  color: #646E7B;
  font-size: 1em;
}

div.moduletable {
  padding: 10px;
}

table.contentpane {
  border: none;
  width: 100%;
}

.componentheading {
  padding-bottom: 2px;
  margin-bottom: 10px;
  background: url(../images/seperator2.gif) no-repeat bottom right;
  font-size: 1.7em;
  line-height: normal;
  font-weight: bold;
  position: relative;
}

.componentheading-controls {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 5px;
  align-items: center;
}

  .componentheading-controls a {
    display: inline-block;
    line-height: 0;
  }

  .componentheading-controls img {
    vertical-align: middle;
    display: block;
  }

.contentheading {
  color: #4F89D2;
  font-size: 1.7em;
}

.contentpagetitle {
  line-height: normal;
  font-weight: bold;
  color: #4F89D2;
  margin: 2px 0 2px 0;
}

a.contentpagetitle {
  text-decoration: none !important;
}

  a.contentpagetitle:hover,
  a.contentpagetitle:active,
  a.contentpagetitle:focus {
    text-decoration: none !important;
  }

.createdate {
  padding-bottom: 10px;
  color: #8E9CAE;
  font-weight: bold;
  line-height: 10px;
}

.image_caption {
  margin-top: 2px;
  padding: 1px 2px;
  color: #8E9CAE;
}

#wrapper {
  margin: 0 auto;
  padding: 0;
  width: 97%;
  text-align: left;
  min-width: 900px;
  max-width: 1400px;
  border: 4px solid #646E7B;
}

#container,
#container-fr,
#container-fl,
#container-f {
  clear: both;
  padding: 0;
}

#container,
#container-fr {
  background: url(../images/container-bg.gif) repeat-y 20% 0 #FFFFFF;
}

#container-fl,
#container-f {
  background: #FFFFFF;
}

#contentwrap {
  background: url(../images/grad1.gif) repeat-x top;
}

#content {
  padding: 10px 15px 20px;
}

#header {
  clear: both;
  background: #4F89D2 url(../images/cendo-preho-banner.webp) no-repeat center top;
  background-size: cover;
  color: #FFFFFF;
  text-align: left;
  line-height: normal;
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  /* Use aspect ratio to maintain proportional height */
  aspect-ratio: 1400 / 240; /* Original width/height ratio */
  /* Or if you want a min-height for very small screens */
  min-height: 80px;
}

#pathway {
  padding: 7px 0 9px;
  text-indent: 10px;
  background: url(../images/path-bg.gif) repeat-x bottom #FFFFFF;
  color: #646E7B;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

  #pathway strong {
    margin-right: 10px;
  }

  #pathway img {
    margin: 0 5px;
    vertical-align: middle;
  }

  #pathway a,
  #pathway .pathway-link {
    color: #4F89D2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
  }

    #pathway a:hover,
    #pathway a:active,
    #pathway .pathway-link:hover {
      color: #3d76c0;
      text-decoration: underline;
    }

  #pathway .pathway-group {
    color: #8E9CAE;
    font-weight: 600;
    font-style: italic;
  }

  #pathway .pathway-current {
    color: #646E7B;
    font-weight: 600;
  }

  /* Responsive breadcrumb */
  @media (max-width: 768px) {
    #pathway {
      font-size: 13px;
      padding: 6px 0 8px;
    }

      #pathway strong {
        margin-right: 5px;
      }

      #pathway img {
        margin: 0 3px;
      }
  }

#mainbody-fr {
  float: left;
  width: 100%;
}

  #mainbody-fr #contentwrap {
    float: right;
    width: calc(100% - 222px);
  }

  #mainbody-fr #leftcol {
    width: 222px;
  }

#leftcol {
  float: left;
  width: 222px;
  flex-shrink: 0;
}

  #leftcol div.moduletable h3 {
    margin: 0 -10px 5px;
    padding: 5px 10px;
    background: url(../images/h3-bg.gif) no-repeat center right #D0DCE7;
    color: #646E7B;
    font-size: 1em;
  }

  #leftcol div.moduletable {
    padding: 0 10px 10px;
    background: url(../images/modules-bg.gif) repeat-y top right #ECF0F4;
  }

a.mainlevel {
  padding: 3px;
  border-bottom: 1px solid #C6CED9;
  display: block;
  color: #646E7B;
  text-decoration: none;
}

  a.mainlevel:hover,
  a.mainlevel:active,
  a.mainlevel:focus {
    color: #4F89D2;
    background: #DFE5EC;
    text-decoration: none;
  }

  a.mainlevel#active_menu {
    background: #4F89D2;
    color: #FFFFFF;
    text-decoration: none;
  }

a.sublevel {
  padding: 2px 4px 2px 12px;
  display: block;
  background: url(../images/bullet-list2.gif) no-repeat 2% 50%;
  text-decoration: none;
  color: #646E7B;
}

  a.sublevel:hover,
  a.sublevel:active,
  a.sublevel:focus {
    text-decoration: none;
    background: url(../images/bullet-list3.gif) no-repeat 2% 50% #DFE5EC;
    color: #4F89D2;
  }

#active_menu {
  background: url(../images/bullet-list3.gif) no-repeat 2% 50% #4F89D2;
  color: #FFFFFF;
  text-decoration: none;
}

#footer {
  clear: both;
  background: url(../images/footer-bg.gif) repeat-x top #434952;
  color: #C6CED9;
  border-bottom: 1px solid #3A4048;
  position: relative;
  display: flex;
  justify-content: center;
}

  #footer a {
    color: #C6CED9;
    text-decoration: none;
  }

    #footer a:hover,
    #footer a:active,
    #footer a:focus {
      color: #5FA4FB;
    }

#bottomline {
  font-size: 12px;
}

.clearfix:after {
  clear: both;
  display: block;
  content: ".";
  height: 0;
  visibility: hidden;
}

.clr {
  clear: both;
}

html {
  margin-bottom: 1px;
  height: 100% !important;
  height: auto;
}

.style1 {
  color: #4F89D2;
}

.slika {
  padding: 2px;
  border: 1px solid #999999;
  background-color: #FFFFFF;
  margin: 0 0 9px 0;
}

.box {
  clear: both;
  margin-bottom: 16px;
  width: 100%;
}

  .box .b1,
  .box .b2,
  .box .b3,
  .box .b4,
  .box .b5,
  .box .b6 {
    background-position: top left;
    background-repeat: no-repeat;
    height: 100%;
  }

  .box .b1 {
    background-image: url(../images/ml.png);
    background-position: left;
    background-repeat: repeat-y;
  }

  .box .b2 {
    background-image: url(../images/mr.png);
    background-position: right;
    background-repeat: repeat-y;
  }

  .box .b3 {
    background-image: url(../images/bl.png);
    background-position: bottom left;
  }

  .box .b4 {
    background-image: url(../images/br.png);
    background-position: bottom right;
  }

  .box .b5 {
    background-image: url(../images/tl.png);
    background-position: top left;
  }

  .box .b6 {
    background-image: url(../images/tr.png);
    background-position: top right;
    padding: 17px;
  }

.gsc-control-cse-hr {
  padding: 0px !important;
  border: 0px !important;
}

.gsc-results-wrapper-visible {
  border: 1px solid #dae0e5;
}

#google-custom-search {
  width: auto;
  height: 84px;
  margin-bottom: -22px;
  margin-right: 2px;
  background: url(../images/cse_theme_shiny_form_bg.png) repeat-x left top;
}

.td-top {
  overflow-wrap: anywhere;
}

.news-archive-table {
  width: 100%;
  color: #333333;
  border: none;
  border-collapse: collapse;
  border-spacing: 0;
}

  .news-archive-table thead th {
    padding: 4px;
    background-color: #DFE5EC;
    color: #646E7B;
    font-weight: bold;
    text-align: left;
    border: none;
  }

  .news-archive-table tbody tr {
    background-color: #EFF3FB;
    border: none;
  }

    .news-archive-table tbody tr:nth-child(even) {
      background-color: #FFFFFF;
    }

  .news-archive-table tbody td {
    padding: 2px;
    border: none;
  }

  .news-archive-table a {
    color: #990000;
    text-decoration: none;
  }

    .news-archive-table a:hover,
    .news-archive-table a:focus,
    .news-archive-table a:active {
      color: #FF0000;
      text-decoration: underline;
    }

  .news-archive-table td img {
    vertical-align: middle;
  }

  .news-archive-table tbody tr.selected {
    background-color: #D1DDF1;
    font-weight: normal;
  }

  .news-archive-table .arrow-cell {
    width: 3px;
    padding-left: 4px;
  }

    .news-archive-table .arrow-cell img {
      display: block;
      width: auto;
      height: auto;
    }

.news-detail {
  margin-bottom: 20px;
}

.back_button {
  margin-top: 20px;
  padding: 10px;
}

  .back_button a {
    font-weight: bold;
    text-decoration: none;
    color: #8E9CAE;
  }

    .back_button a:hover,
    .back_button a:active,
    .back_button a:focus {
      color: #4F89D2;
      text-decoration: none;
    }

#textEditor {
  margin-top: 15px;
}

#editLink {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  background-color: #4F89D2;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 3px;
}

  #editLink:hover,
  #editLink:focus {
    background-color: #5FA4FB;
    color: #FFFFFF;
  }

.file-upload-section {
  margin-top: 30px;
  border-top: 1px solid #ccc;
  padding-top: 20px;
}

.file-upload-form {
  margin-top: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.news-files-table {
  width: 95%;
  margin-bottom: 15px;
}

  .news-files-table th {
    background-color: #f0f0f0;
    padding: 8px;
    text-align: left;
    border-bottom: 2px solid #ccc;
    font-weight: bold;
  }

  .news-files-table td {
    padding: 6px;
    border-bottom: 1px solid #eee;
  }

  .news-files-table input[type="text"] {
    width: 200px;
    font-size: 11px;
    border: 1px solid #ddd;
    padding: 2px;
  }

.button-delete {
  background-color: #d9534f;
  color: white;
  font-size: 11px;
  padding: 3px 8px;
  border: none;
  cursor: pointer;
}

  .button-delete:hover {
    background-color: #c9302c;
  }

.error-message {
  color: red;
  margin-top: 10px;
  font-weight: bold;
}

.success-message {
  color: green;
  margin-top: 10px;
  font-weight: bold;
}

/* =========================================
   VICTIM SEARCH PAGE - MODERN UI
   ========================================= */
.victim-search-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* =========================================
   SURVIVOR SEARCH PAGE - MODERN UI (reuses victim search styles)
   ========================================= */
.survivor-search-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* =========================================
   ARCHIVE SEARCH PAGE - MODERN UI (reuses victim search styles)
   ========================================= */
.archive-search-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Claims Conference Header */
.claims-header {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  align-items: center;
}

.claims-logo {
  flex-shrink: 0;
}

  .claims-logo img {
    max-width: 200px;
    height: auto;
  }

.claims-text {
  flex: 1;
}

  .claims-text p {
    color: #0000FF;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
  }

/* Project Info */
.project-info {
  margin-bottom: 30px;
  padding: 15px 20px;
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  border-radius: 4px;
}

  .project-info h3 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 18px;
  }

  .project-info p {
    margin: 0;
    color: #856404;
    font-size: 14px;
  }

/* Alert */
.alert {
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  border-left: 4px solid;
}

.alert-warning {
  background: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.alert h3 {
  margin: 0 0 10px 0;
  color: #d32f2f;
}

/* Search Card */
.search-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

.search-card-title {
  margin: 0 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
  color: #4F89D2;
  font-size: 24px;
  font-weight: 600;
}

/* Modern Search Form */
.modern-search-form {
  /* Form container */
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

  .form-group label {
    margin-bottom: 8px;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
  }

.form-control {
  padding: 10px 15px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #ffffff;
}

  .form-control:hover {
    border-color: #4F89D2;
  }

  .form-control:focus {
    outline: none;
    border-color: #4F89D2;
    box-shadow: 0 0 0 3px rgba(79, 137, 210, 0.1);
  }

  .form-control::placeholder {
    color: #adb5bd;
  }

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 35px;
  appearance: none;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  flex-wrap: wrap;
  gap: 15px;
}

.form-actions-left,
.form-actions-right {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: #ffffff !important;
}

  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .btn:active {
    transform: translateY(0);
  }

.btn-icon {
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, #4F89D2 0%, #5FA4FB 100%);
  color: #ffffff !important;
}

  .btn-primary:hover {
    background: linear-gradient(135deg, #3d76c0 0%, #4a8fe8 100%);
  }

.btn-secondary {
  background: #6c757d;
  color: #ffffff;
}

  .btn-secondary:hover {
    background: #5a6268;
  }

.btn-success {
  background: #28a745;
  color: #ffffff;
}

  .btn-success:hover {
    background: #218838;
    color: #ffffff;
  }

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-danger {
  background: #dc3545;
  color: #ffffff;
}

  .btn-danger:hover {
    background: #c82333;
  }

.search-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 6px;
  font-size: 14px;
  display: none;
}

  .search-message:not(:empty) {
    display: block;
    background: #d1ecf1;
    border-left: 4px solid #0c5460;
    color: #0c5460;
  }

  .search-message.error {
    background: #f8d7da;
    border-color: #721c24;
    color: #721c24;
  }

.results-section {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
  min-height: 200px;
}

  /* Enhanced Table Styles for Results */
  .results-section .news-archive-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
  }

    .results-section .news-archive-table thead th {
      background: linear-gradient(135deg, #4F89D2 0%, #5FA4FB 100%);
      color: #ffffff;
      padding: 15px;
      text-align: left;
      font-weight: 600;
      font-size: 14px;
      border: none;
    }

      .results-section .news-archive-table thead th:first-child {
        border-top-left-radius: 8px;
      }

      .results-section .news-archive-table thead th:last-child {
        border-top-right-radius: 8px;
      }

    .results-section .news-archive-table tbody tr {
      background: #ffffff;
      transition: all 0.2s ease;
    }

      .results-section .news-archive-table tbody tr:nth-child(even) {
        background: #f8f9fa;
      }

      .results-section .news-archive-table tbody tr:hover {
        background: #e3f2fd;
        transform: scale(1.01);
        box-shadow: 0 2px 8px rgba(79, 137, 210, 0.2);
      }

    .results-section .news-archive-table tbody td {
      padding: 12px 15px;
      border-bottom: 1px solid #dee2e6;
      font-size: 14px;
    }

      .results-section .news-archive-table tbody td a {
        color: #4F89D2;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
      }

        .results-section .news-archive-table tbody td a:hover {
          color: #5FA4FB;
          text-decoration: underline;
        }

#paginationControls {
  margin-top: 25px;
}

  #paginationControls div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
  }

  #paginationControls a {
    color: #4F89D2;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
  }

    #paginationControls a:hover {
      background: #e3f2fd;
      color: #3d76c0;
    }

  #paginationControls span {
    color: #495057;
    font-weight: 600;
  }

  #paginationControls .current-page {
    background: #4F89D2;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
  }

#searchResults p em {
  color: #6c757d;
  font-size: 16px;
}

/* =========================================
   CONTACT PAGE - MODERN UI
   ========================================= */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Contact Info Card */
.contact-info-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

.contact-card-title {
  margin: 0 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
  color: #4F89D2;
  font-size: 24px;
  font-weight: 600;
}

/* Contact Info Grid */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.contact-info-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e3f2fd;
  border-radius: 50%;
  padding: 8px;
}

  .contact-icon img {
    width: 20px;
    height: 20px;
  }

.contact-details {
  flex: 1;
  line-height: 1.6;
}

  .contact-details strong {
    color: #4F89D2;
    display: block;
    margin-bottom: 4px;
  }

.contact-phone {
  padding: 4px 0;
  font-size: 15px;
}

.contact-email-link {
  color: #4F89D2;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

  .contact-email-link:hover {
    color: #5FA4FB;
    text-decoration: underline;
  }

/* Contact Form Card */
.contact-form-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

/* Alert Messages */
.alert-icon {
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

.alert-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

  .alert-success .alert-icon {
    color: #28a745;
  }

.alert-danger {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

  .alert-danger .alert-icon {
    color: #dc3545;
  }

.modern-contact-form {
  /* Form container */
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.required {
  color: #dc3545;
  margin-left: 3px;
}

.form-control-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.form-control-readonly {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.readonly-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  color: #856404;
  font-size: 12px;
}

/* Character Counter */
.character-count {
  margin-top: 8px;
  font-size: 13px;
  color: #6c757d;
  text-align: right;
}

/* CAPTCHA Container */
.captcha-container {
  margin-top: 8px;
}

/* Field Validation Error */
.field-validation-error {
  display: block;
  margin-top: 6px;
  color: #dc3545;
  font-size: 13px;
}

.contact-form-card .form-actions {
  display: flex;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.btn-submit {
  flex: 1;
  max-width: 300px;
}

/* =========================================
   SURVIVOR DETAILS PAGE
   ========================================= */
.survivor-details-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* =========================================
   VICTIM DETAILS PAGE (uses same styles as survivor)
   ========================================= */
.victim-details-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* =========================================
   ARCHIVE DETAILS PAGE (uses same styles as victim/survivor)
   ========================================= */
.archive-details-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.details-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

.details-card-title {
  margin: 0 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
  color: #4F89D2;
  font-size: 28px;
  font-weight: 600;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.details-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.details-section-full {
  grid-column: 1 / -1;
}

.section-title {
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #4F89D2;
  color: #4F89D2;
  font-size: 18px;
  font-weight: 600;
}

.detail-row {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

  .detail-row:last-child {
    border-bottom: none;
  }

.detail-label {
  font-weight: 500;
  color: #646E7B;
  font-size: 14px;
}

.detail-value {
  color: #333;
  font-size: 14px;
  word-wrap: break-word;
}

.files-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

.files-card-title {
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
  color: #4F89D2;
  font-size: 20px;
  font-weight: 600;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 10px;
  transition: background 0.2s ease;
}

  .file-item:hover {
    background: #e9ecef;
  }

.file-icon {
  font-size: 20px;
}

.file-name {
  flex: 1;
  font-weight: 500;
  font-size: 14px;
}

.file-size {
  color: #6c757d;
  font-size: 13px;
}

.file-download,
.file-delete {
  padding: 6px 10px;
  border-radius: 4px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.file-download {
  color: #4F89D2;
  text-decoration: none;
}

  .file-download:hover {
    background: #e3f2fd;
  }

.file-delete {
  color: #dc3545;
}

  .file-delete:hover {
    background: #f8d7da;
  }

.file-delete-form {
  display: inline;
  margin: 0;
}

.no-files {
  color: #6c757d;
  font-style: italic;
  margin: 0;
}

.file-upload-form {
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.file-upload-group {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* =========================================
   OPCINE (JEWISH COMMUNITIES) PAGE
   ========================================= */
.opcine-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.page-description {
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Map Section */
.map-builder {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.map-holder {
  flex: 1;
  min-width: 300px;
}

.google-map {
  width: 100%;
  height: 700px;
  border: 2px solid #4F89D2;
  border-radius: 8px;
}

.location-list {
  width: 130px;
  background: #f8f9fa;
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

  .location-list h3 {
    margin: 0 0 2px 0;
    color: #4F89D2;
    font-size: 15px;
    border-bottom: 2px solid #4F89D2;
  }

  .location-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .location-list li {
    padding: 0;
    margin: 0;
    background: none;
  }

  .location-list a {
    display: block;
    padding: 1px 4px;
    color: #4F89D2;
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.2s ease;
  }

    .location-list a:hover {
      background: #e3f2fd;
      color: #3d76c0;
      padding-left: 10px;
    }

.opcina-details {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.opcina-description {
  margin: 20px 0;
  line-height: 1.8;
}

.opcina-editor {
  margin: 20px 0;
}

  .opcina-editor textarea {
    font-family: Arial, sans-serif;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
  }

.opcina-table {
  width: 80%;
  margin: 20px 0;
}

/* Gallery */
.opcina-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.gallery-item {
  text-align: center;
}

  .gallery-item img {
    width: 100%;
    height: auto;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

.image-caption {
  margin-top: 10px;
  color: #6c757d;
  font-size: 14px;
}

/* Image Upload (Admin Only) */
.image-upload-section {
  margin-top: 40px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

  .image-upload-section h3 {
    margin: 0 0 20px 0;
    color: #4F89D2;
  }

/* =========================================
   DOKUMENTACIJA & PUBLIKACIJE PAGES - SHARED STYLES
   ========================================= */
.dokumentacija-container,
.publikacije-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-intro {
  font-size: 16px;
  margin-bottom: 20px;
  color: #333;
}

/* Documents List */
.documents-list {
  margin-bottom: 40px;
}

.document-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.document-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.document-description {
  flex: 1;
  line-height: 1.6;
}

.document-metadata {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.document-info {
  display: flex;
  gap: 20px;
  color: #6c757d;
  font-size: 14px;
}

.document-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.document-icon {
  height: 20px;
  width: auto;
}

.btn-download img {
  height: 20px;
  width: auto;
  transition: transform 0.2s;
}

.btn-download:hover img {
  transform: scale(1.1);
}

.document-delete-form {
  display: inline;
  margin: 0;
}

/* Edit Mode */
.document-edit-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.document-edit-content {
  flex: 1;
}

.document-edit-metadata {
  display: flex;
  gap: 20px;
  flex-direction: column;
}

.document-size {
  color: #6c757d;
  font-size: 14px;
}

/* Add Document Section */
.document-add-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  margin-top: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

  .document-add-section h3 {
    margin: 0 0 20px 0;
    color: #4F89D2;
    font-size: 20px;
  }

.document-add-form {
  margin-top: 20px;
}

.form-or {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc3545;
  font-weight: bold;
  padding: 20px 0;
}

/* =========================================
   LINKOVI (LINKS) PAGE
   ========================================= */
.linkovi-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Links List */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.link-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

  .link-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

/* Display Mode */
.link-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.link-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.link-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #4F89D2;
}

.link-url {
  color: #990000;
  font-size: 14px;
  word-break: break-all;
}

  .link-url:hover {
    color: #FF0000;
    text-decoration: underline;
  }

.link-comment {
  color: #646E7B;
  font-size: 14px;
  line-height: 1.6;
  padding: 10px 0;
}

.link-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
  flex-wrap: wrap;
  gap: 15px;
}

.link-date {
  color: #8E9CAE;
  font-size: 13px;
}

.link-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Edit Mode */
.link-edit-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Add Link Section */
.link-add-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  margin-top: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

  .link-add-section h3 {
    margin: 0 0 20px 0;
    color: #4F89D2;
    font-size: 20px;
  }

.link-add-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .victim-search-container,
  .survivor-search-container {
    padding: 15px;
  }

  .claims-header {
    flex-direction: column;
    text-align: center;
  }

  .search-card {
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions-left,
  .form-actions-right {
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .results-section {
    padding: 15px;
    overflow-x: auto;
  }

    .results-section .news-archive-table {
      font-size: 12px;
    }

      .results-section .news-archive-table thead th,
      .results-section .news-archive-table tbody td {
        padding: 8px;
      }

  /* Contact page responsive */
  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    padding: 15px;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 20px;
  }

  /* Survivor details responsive */
  .details-grid {
    grid-template-columns: 1fr;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .file-item {
    flex-wrap: wrap;
  }

  .action-buttons {
    flex-direction: column;
  }

    .action-buttons .btn {
      width: 100%;
      justify-content: center;
    }

  .file-upload-group {
    flex-direction: column;
    align-items: stretch;
  }

  .file-upload-input {
    min-width: 100%;
  }

  /* Opcine page responsive */
  .opcine-container {
    padding: 15px;
  }

  .map-builder {
    flex-direction: column;
  }

  .location-list {
    width: 100%;
  }

  .google-map {
    height: 400px;
  }

  .opcina-table {
    width: 100%;
  }

  .opcina-gallery {
    grid-template-columns: 1fr;
  }

  /* Dokumentacija & Publikacije page responsive */
  .dokumentacija-container,
  .publikacije-container {
    padding: 15px;
  }

  .document-metadata {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .document-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .form-or {
    padding: 10px 0;
  }

  /* Foto galerije page responsive */
  .galleries-container {
    padding: 15px;
  }

  .galleries-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pagination {
    gap: 4px;
  }

  .pagination-link,
  .pagination-current {
    padding: 6px 10px;
    font-size: 13px;
    min-width: 35px;
  }

  /* Foto galerija single view responsive */
  .gallery-view-container {
    padding: 15px;
  }

  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
  }

    .gallery-header h2 {
      font-size: 24px;
    }
}

/* =========================================
   FOTO GALERIJE (PHOTO GALLERIES) PAGE
   ========================================= */
.galleries-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.galleries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

  .gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

.gallery-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: block;
}

  .gallery-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .gallery-cover:hover img {
    transform: scale(1.1);
  }

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(79, 137, 210, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-cover:hover .gallery-overlay {
  opacity: 1;
}

.gallery-view-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.gallery-view-text {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}

.gallery-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gallery-date {
  color: #8E9CAE;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.gallery-title {
  margin: 0 0 15px 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

  .gallery-title a {
    color: #4F89D2;
    text-decoration: none;
    transition: color 0.2s ease;
  }

    .gallery-title a:hover {
      color: #3d76c0;
      text-decoration: underline;
    }

.gallery-description {
  color: #646E7B;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.gallery-btn {
  margin-top: auto;
  align-self: flex-start;
}

.pagination-container {
  margin-top: 40px;
  text-align: center;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.pagination-link,
.pagination-current,
.pagination-ellipsis {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  min-width: 40px;
  text-align: center;
}

.pagination-link {
  background: #ffffff;
  color: #4F89D2;
  text-decoration: none;
  border: 1px solid #DFE5EC;
  transition: all 0.2s ease;
}

  .pagination-link:hover {
    background: #4F89D2;
    color: #ffffff;
    border-color: #4F89D2;
    text-decoration: none;
  }

.pagination-current {
  background: #4F89D2;
  color: #ffffff;
  border: 1px solid #4F89D2;
}

.pagination-ellipsis {
  color: #8E9CAE;
  border: none;
}

.pagination-info {
  color: #646E7B;
  font-size: 14px;
  margin: 0;
}

.alert-icon {
  font-size: 24px;
  flex-shrink: 0;
}

/* Responsive - FotoGalerije */
@media (max-width: 768px) {
  .galleries-container {
    padding: 15px;
  }

  .galleries-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pagination {
    gap: 4px;
  }

  .pagination-link,
  .pagination-current {
    padding: 6px 10px;
    font-size: 13px;
    min-width: 35px;
  }
}

/* =========================================
   FOTO GALERIJA (SINGLE GALLERY VIEW) PAGE
   ========================================= */
.gallery-view-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

  .gallery-header h2 {
    margin: 0;
    color: #4F89D2;
    font-size: 28px;
    font-weight: 600;
  }

.gallery-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.gallery-date {
  color: #8E9CAE;
  font-size: 14px;
  font-weight: 600;
}

.gallery-actions {
  display: flex;
  gap: 10px;
}

.btn-divider {
  height: 28px;
  width: 1px;
  background: #e0e0e0;
  align-self: center;
}

/* Responsive - FotoGalerija */
@media (max-width: 768px) {
  .gallery-view-container {
    padding: 15px;
  }

  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
  }

    .gallery-header h2 {
      font-size: 24px;
    }
}

/* =========================================
   MULTIMEDIJA (MULTIMEDIA) PAGE
   ========================================= */
.multimedija-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Filter Card */
.filter-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
}

.filter-form {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-checkboxes {
  display: flex;
  gap: 20px;
  flex: 1;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
}

  .filter-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
  }

.filter-search {
  display: flex;
  gap: 10px;
  align-items: center;
}

  .filter-search .form-control {
    width: 250px;
  }

.multimedia-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.multimedia-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

  .multimedia-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

.multimedia-display {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.multimedia-icon {
  flex-shrink: 0;
}

  .multimedia-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
  }

.multimedia-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.multimedia-description {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.multimedia-metadata {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
  flex-wrap: wrap;
  gap: 15px;
}

.multimedia-size {
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

.multimedia-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.extension-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.inline-form {
  display: inline;
  margin: 0;
}

/* Edit Mode */
.multimedia-edit-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.multimedia-edit-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.multimedia-link-display {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Media Type Options */
.media-type-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

  .radio-option:hover {
    border-color: #4F89D2;
    background: #f0f7ff;
  }

  .radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
  }

  .radio-option img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }

  .radio-option span {
    font-size: 14px;
    font-weight: 500;
  }

  .radio-option input[type="radio"]:checked + img {
    filter: drop-shadow(0 0 5px #4F89D2);
  }

.multimedia-add-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  margin-top: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

  .multimedia-add-section h3 {
    margin: 0 0 20px 0;
    color: #4F89D2;
    font-size: 20px;
  }

.multimedia-add-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .multimedija-container {
    padding: 15px;
  }

  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-checkboxes {
    flex-direction: column;
    gap: 10px;
  }

  .filter-search {
    flex-direction: column;
  }

    .filter-search .form-control {
      width: 100%;
    }

  .multimedia-display {
    flex-direction: column;
  }

  .multimedia-metadata {
    flex-direction: column;
    align-items: flex-start;
  }

  .multimedia-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .media-type-options {
    flex-direction: column;
  }

  .radio-option {
    width: 100%;
  }
}

/* =========================================
   BIBLIOGRAFIJA_SVOB (DR. MELITA ŠVOB BIBLIOGRAPHY) PAGE
   ========================================= */
.bibliografija-svob-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

  .bibliografija-svob-container h2 {
    color: #4F89D2;
    font-size: 28px;
    margin-bottom: 10px;
  }

  .bibliografija-svob-container .subtitle {
    color: #646E7B;
    font-size: 18px;
    font-style: italic;
    margin-bottom: 20px;
  }

.bibliography-section {
  margin-bottom: 10px;
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-title {
  color: #4F89D2;
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.section-note {
  font-style: italic;
  color: #646E7B;
  padding: 15px;
  background: #f8f9fa;
  border-left: 4px solid #4F89D2;
  border-radius: 4px;
}

.bibliography-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

  .bibliography-list li {
    padding: 10px 0 8px 26px;
    margin-bottom: 8px;
    background: url(../images/bullet-list.gif) no-repeat 10px 18px;
    border-bottom: 1px solid #f0f0f0;
  }

    .bibliography-list li:last-child {
      border-bottom: none;
    }

    .bibliography-list li em {
      font-style: italic;
      color: #333;
    }

/* Responsive */
@media (max-width: 768px) {
  .bibliografija-svob-container {
    padding: 15px;
  }

    .bibliografija-svob-container h2 {
      font-size: 24px;
    }

    .bibliografija-svob-container .subtitle {
      font-size: 16px;
    }

  .bibliography-section {
    padding: 20px 15px;
  }

  .section-title {
    font-size: 18px;
  }

  .bibliography-list li {
    padding-left: 25px;
    background-position: 0 18px;
    font-size: 14px;
  }
}

/* =========================================
   GALLERY ADMIN (GALERIJA EDIT) PAGE
   ========================================= */
.gallery-admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

  .gallery-admin-container h2 {
    color: #4F89D2;
    font-size: 28px;
    margin-bottom: 20px;
  }

  .gallery-admin-container h3 {
    color: #4F89D2;
    font-size: 20px;
    margin-bottom: 15px;
  }

.gallery-select-card,
.gallery-form-card,
.gallery-info-card {
  background: #ffffff;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-select-form label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.gallery-select-form select {
  max-width: 500px;
}

.gallery-select-form .form-text {
  color: #dc3545;
  font-size: 13px;
  margin-top: 5px;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 20px;
}

  .gallery-header h3 {
    margin: 0 0 10px 0;
  }

  .gallery-header p {
    margin: 0 0 10px 0;
    color: #646E7B;
  }

  .gallery-header small {
    color: #999;
  }

.cover-image img {
  max-width: 150px;
  max-height: 150px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gallery-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.gallery-images-section {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

  .gallery-images-section h3 {
    margin-bottom: 20px;
  }

.gallery-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-image-card {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

  .gallery-image-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

.image-preview {
  position: relative;
  width: 100%;
  height: 200px;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

.cover-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #28a745;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.image-info {
  padding: 15px;
}

  .image-info .image-number {
    color: #4F89D2;
    font-size: 16px;
    margin-bottom: 8px;
  }

  .image-info .image-caption {
    color: #333;
    font-size: 14px;
    margin: 8px 0;
    line-height: 1.4;
    min-height: 40px;
  }

  .image-info small {
    color: #999;
    font-size: 12px;
  }

.image-actions {
  padding: 10px 15px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

/* Modal Styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

  .modal-content h3 {
    margin-top: 0;
  }

/* =========================================
   MODERN NAVIGATION MENU
   ========================================= */
.main-navigation {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Base nav link styles */
.nav-link,
.nav-group-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
  border: none;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
  font-size: 14px;
  font-family: inherit;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

  .nav-link:hover,
  .nav-group-toggle:hover {
    background: #e9ecef;
    border-left-color: #4F89D2;
    color: #4F89D2;
    text-decoration: none;
  }

  .nav-link.active {
    background: #4F89D2;
    color: white;
    border-left-color: #2c5aa0;
    font-weight: 600;
  }

/* Navigation icons */
.nav-icon {
  font-size: 18px;
  min-width: 24px;
  max-width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.nav-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
  margin-left: auto;
  flex-shrink: 0;
}

/* Navigation groups */
.nav-group {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

  .nav-group.active > .nav-group-toggle {
    background: #e3f2fd;
    border-left-color: #4F89D2;
  }

  .nav-group.open > .nav-group-toggle .nav-arrow {
    transform: rotate(180deg);
  }

/* Submenu styles */
.nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #ffffff;
  border-left: 3px solid #dee2e6;
  margin-left: 10px;
  width: calc(100% - 10px);
  box-sizing: border-box;
}

.nav-group.open .nav-submenu {
  max-height: 500px;
}

  .nav-submenu a {
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-sizing: border-box;
  }

    .nav-submenu a:hover {
      background: #f8f9fa;
      color: #4F89D2;
      border-left-color: #4F89D2;
      padding-left: 20px;
      text-decoration: none;
    }

    .nav-submenu a.active {
      background: #e3f2fd;
      color: #4F89D2;
      font-weight: 600;
      border-left-color: #4F89D2;
    }

/* Admin section */
.nav-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, #dee2e6, transparent);
  margin: 10px 0;
  width: 100%;
}

.nav-admin-section {
  margin-top: 5px;
  width: 100%;
  box-sizing: border-box;
}

  .nav-admin-section .nav-link {
    background: #fff3cd;
    border-left-color: #ffc107;
  }

    .nav-admin-section .nav-link:hover {
      background: #fff3cd;
      border-left-color: #ff9800;
      color: #d84315;
    }

    .nav-admin-section .nav-link.active {
      background: #ff9800;
      color: white;
      border-left-color: #f57c00;
    }

/* Ensure container respects parent width */
#mainbody-fr #leftcol .main-navigation,
#leftcol .main-navigation {
  max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-link,
  .nav-group-toggle {
    padding: 10px 12px;
    font-size: 13px;
  }

  .nav-icon {
    font-size: 16px;
    min-width: 20px;
    max-width: 20px;
  }

  .nav-submenu {
    margin-left: 10px;
    width: calc(100% - 10px);
  }

  .nav-submenu a {
    padding: 8px 12px 8px 35px;
    font-size: 12px;
  }

    .nav-submenu a:hover {
      padding-left: 38px;
    }
}

/* Smooth animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-group.open .nav-submenu a {
  animation: slideDown 0.3s ease forwards;
}

/* Accessibility improvements */
.nav-link:focus,
.nav-group-toggle:focus {
  outline: 2px solid #4F89D2;
  outline-offset: -2px;
}

.nav-link:focus-visible,
.nav-group-toggle:focus-visible {
  outline: 2px solid #4F89D2;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .main-navigation {
    display: none;
  }
}
