:root {
    --primary: #007aff;
    --secondary: #333;
    --light-bg: #e9edf3;
    --border: #d1d1d6;
    --border-color: #d8d8d8;
    --card-bg: linear-gradient(145deg, #ffffff 0%, #f2f3f5 100%);
    --heading-color: #222;
    --input-bg: #f2f3f5;
    --white: #ffffff;
    --accent: #6c757d;
    --text-color: #3a3a3a;
    --glass: rgba(255, 255, 255, 0.7);

}

/* Sticky layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /*background: url('../img/pozadina.jpg') no-repeat center center fixed;*/
    background:#F4F4F4;
    background-size: cover;
    font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    font-weight: 300;
    font-size: 0.75rem;
}


main.container {
    flex: 1;
    padding-top: 70px;
}

/* Ostatak ostaje potpuno tvoj originalni */

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 1rem;
}
h1 { font-size: 1.5rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

.h1_naslov { font-size: 1.15rem; }


/* Kartice sada transparentne s laganim blur efektom za moderniji izgled */

.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.card-hover-zoom:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transform: scale(1.02);
}
.accordion-collapse {
    transition: height 0.3s ease, opacity 0.3s ease;
}
.card-welcome { background: linear-gradient(145deg, #ffffff 0%, #f5f6f7 100%); }
.card-products { background: linear-gradient(145deg, #f9fafb 0%, #e9edf3 100%); }
.card-users { background: linear-gradient(145deg, #fdeef2 0%, #fad2e0 100%); }
.card-projects { background: linear-gradient(145deg, #fafafa 0%, #eef8f2 100%); }

.navbar-custom {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}


.navbar-brand {
    color: var(--secondary) !important;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none !important;
}

.navbar-toggler {
    border: none; /* Makni okvir */
    background: transparent !important; /* Makni pozadinu */
    outline: none;
    box-shadow: none;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}


.navbar-brand:hover { color: var(--primary) !important; }
.navbar-nav .dropdown-menu .dropdown-item { font-size: 0.75rem !important; }

.table thead th {
    background: var(--light-bg);
    font-weight: 400;
}

.table-label, .form-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 300;
    padding: 2px 10px;
   
    border-radius: 6px;
    background: var(--accent);
    color: var(--white);
    font-weight: 400;
}

input, textarea, select {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 0.55rem;
    font-weight: 300;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    outline: none;
}

.font-300 {
    font-weight: 300;
}
.font-400 {
    font-weight: 400;
}
.font-500 {
    font-weight: 500;
}
.font-600 {
    font-weight: 600;
}



.btn {
    height: 1.4rem;
    padding: 0.1rem 0.6rem;
    font-size: 0.85rem;
    border-radius: 0.375rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0066cc;
    border-color: #0066cc;
}

.btn-danger {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

.btn-outline-secondary.btn-sm {
    font-size: 0.75rem;
    font-weight: 400;
    padding: 2px 10px;
}

.btn-secondary-filled {
    background: var(--glass);
    border: 1px solid var(--glass);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 400;
    padding: 2px 10px;
    border-radius: 6px;
}

.btn-secondary-filled:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    color:white;
}

.btn-glass-hover {
    background-color: #6b757d;
    border: 1px solid #6b757d;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 400;
    padding: 2px 10px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.btn-glass-hover:hover {
    background: var(--glass);
    border: 1px solid var(--glass);
    color: #000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


.form-upload-area {
    background-color: #f3f3f3;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.custom-file label {
    display: inline-block;
    padding: 4px 16px;
    font-size: 0.85rem;
    border-radius: 6px;
    background-color: var(--primary);
    color: #fff;
    cursor: pointer;
}

.custom-file label:hover { background-color: #0066cc; }

.media-item img {
    border-radius: 6px;
    object-fit: cover;
    width: 100%;
}

.slike_galerija {
    height: 150px;
    width: 100%;
    object-fit: cover;
}

.footer {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--secondary);
    flex-shrink: 0;
}



/* Dropdown hover boja */
.dropdown-menu .dropdown-item:hover {
    background-color: var(--accent);
    color: var(--white);
}

.glass-table {
    width: 100%;
       border-collapse: separate;
    border-spacing: 0 1px; /* Manji razmak */
    background: transparent;
    border-radius: 12px;
}

.glass-table thead th:first-child {
    border-top-left-radius: 12px;
}

.glass-table thead th:last-child {
    border-top-right-radius: 12px;
}


.glass-table tbody tr {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.glass-table th, .glass-table td {
    padding: 16px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-weight:400;
}

.glass-table thead th {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    padding: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.glass-table tbody tr {
    position: relative;
    z-index: 1;
}

.glass-table tbody tr:hover {
    z-index: 2;
}

.dropdown-menu {
    z-index: 9999 !important;
}


.glass-table tbody tr:hover {
    z-index: 2;
}

.dropdown-menu {
    z-index: 9999 !important;
}

@media screen and (max-width: 1200px) {
    .slike_galerija { height: 100px; }
}

@media screen and (max-width: 768px) {
    .slike_galerija { height: 40px; }
}


  @media (max-width: 768px) {
  /* GRID: Osiguraj da sve kolone zauzimaju punu širinu */
  .col-md-1, .col-md-2, .col-md-3, .col-md-4,
  .col-md-5, .col-md-6, .col-md-7, .col-md-8,
  .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* CONTAINER */
  .container, .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* NAVBAR collapse */
  .navbar-nav {
    flex-direction: column;
    gap: 0.25rem;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  /* DROPDOWNS unutar collapsea */
  .navbar .dropdown-menu {
    position: static;
    float: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .navbar .dropdown-item {
    padding-left: 1.5rem;
  }

  /* KARTICE */
  .card {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .card h5 {
    font-size: 1.1rem;
  }

  /* TABLICE */
  .glass-table thead {
    display: none;
  }

  .glass-table tbody,
  .glass-table tr,
  .glass-table td {
    display: block;
    width: 100%;
  }

  .glass-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  .glass-table tr {
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
  }

  /* GUMB */
  .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
  }

  /* AVATAR + ODJAVA */
  .navbar .nav-item img {
    width: 24px;
    height: 24px;
    margin-right: 6px;
  }

  /* FOOTER */
  .footer {
    font-size: 0.7rem;
    text-align: center;
    padding: 0.5rem;
  }

  /* FORME */
  input, select, textarea {
    font-size: 0.85rem;
  }

  label, .form-label, .table-label {
    font-size: 0.75rem;
  }

  /* Galerija slike */
  .slike_galerija {
    height: 80px !important;
  }
}
.accordion-body input[type="text"],
.accordion-body input[type="email"],
.accordion-body input[type="password"],
.accordion-body input[type="number"],
.accordion-body input.form-control,
.accordion-body input.form-control-sm,
.accordion-body textarea,
.accordion-body textarea.form-control,
.accordion-body textarea.form-control-sm,
.accordion-body select,
.accordion-body select.form-select,
.accordion-body select.form-select-sm {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 10px !important;
    font-size: 0.7rem !important;
    font-weight: 300 !important;
    transition: border-color 0.3s ease;
    width: 100%;
    height: auto !important;
    line-height: 1.2;
    box-shadow: none !important;
}

.accordion-body input:focus,
.accordion-body textarea:focus,
.accordion-body select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: none !important;
}


.accordion-body .form-control,
.accordion-body .form-control-sm,
.accordion-body .form-select,
.accordion-body .form-select-sm {
    font-size: 0.7rem !important;
    padding: 4px 10px !important;
    background-color: var(--input-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    font-weight: 300 !important;
    height: auto !important;
    line-height: 1.2 !important;
}

.accordion-button{
    font-size: 0.75rem !important;
    padding:6px 10px !important;
}

.accordion-button {
  --bs-accordion-btn-icon-width: 0.75rem !important;
}


.form-control,
.form-select {
  font-size: 0.75rem !important;
  padding: 6px 10px !important;
  height: auto !important;
  border-radius: 6px !important;
  background-color: var(--input-bg) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-color) !important;
}

@media (max-width: 575.98px) {
  .col-sm-6 {
    width: 50% !important;
    flex: 0 0 50% !important;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  .card {
    padding: 0.75rem !important;
  }

  .form-control,
  .form-select,
  textarea {
    font-size: 0.85rem !important;
  }
}

@media (max-width: 576px) {
  .btn-sm,
  .btn.btn-glass-hover.btn-sm {
    font-size: 0.85rem !important;
    padding: 0.35rem 0.9rem !important;
    height: auto;
  }
}

@media (max-width: 576px) {
  .form-label {
    font-size: 0.85rem !important;
    font-weight: 400 !important;
  }
}

.form-check-input {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  -moz-appearance: auto !important;

  width: 1rem !important;
  height: 1rem !important;

  padding: 0 !important;
  margin-top: 0.2rem; /* lagano poravnanje s tekstom */
  line-height: normal !important;

  display: inline-block !important;
  vertical-align: middle;
}

.form-check-input:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}


