
/* ========== LOGIN STRANICA ========== */

.login-bg {
    background-color: #2E3740;
}

.login-card {
    background-color: #E7CEA4;
    border: none;
    border-radius: 12px;
}

.login-card label {
    color: #2E3740;
    font-weight: bold;
}

.login-card input {
    border-radius: 6px;
    border: 1px solid #ccc;
}

.login-logo img {
    max-height: 200px;
    width: auto;
}


/* ========== DASHBOARD ========== */

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    background-color: #2E3740;
    width: 250px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.sidebar.collapsed {
    transform: translateX(-100%);
}
.sidebar .nav-link {
    color: #ffffff;
    font-weight: bold;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    text-decoration: underline;
    color: #ffc107;
}
.sidebar-logo img {
    max-height: 140px;
    width: auto;
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.toggle-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1050;
    background-color: #E7CEA4;
    color: #2E3740;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
}
.main-content {
    background-color: #ffffff;
    padding: 2rem;
    flex-grow: 1;
    width: 100%;
}

/* CSS DORADA MARIO 10.9.2025*/
.sidebar, .main-content {
  max-width: 100%;
  overflow-x: hidden;
}

textarea.form-control{
    height: 120px;
}
.table-light tr th:first-child{
    width: 200px;
}
.table-light tr th:nth-of-type(3){
    width: 400px;
}
.table-light tr th:last-child{
    width: 128px;
}
.table-light tr th.akcija{
    width: 200px;
}
.table-responsive-wrapper {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;               
  -webkit-overflow-scrolling: touch;
}
.table-responsive-wrapper table {
  min-width: 900px;               
  width: 100%;                  
  border-collapse: collapse;
}
.contacts-table tr th:first-child{
    width: 100px; 
}
.contacts-table tr th:nth-of-type(3){
    width: 250px; 
}
.contacts-table tr th:nth-of-type(4){
    width: 200px; 
}
.contacts-table tr th:nth-of-type(5){
    width: 140px; 
}



/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        height: 100vh;
        z-index: 1040;
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        padding: 1rem;
    }
}

/*CSS za tablicu*/

/* Mobilni prikaz do 600px */
@media (max-width: 600px) {
  table.table {
    border: 0;
    width: 100%;
    min-width: 0;
  }

  table.table thead {
    display: none; /* Sakrivamo zaglavlje */
  }

  table.table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem;
  }

  table.table td {
    display: block;
    text-align: left;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
  }

  table.table td:last-child {
    border-bottom: none; /* zadnja ćelija bez linije */
  }

  /* Dodaj labelu iz thead-a preko data-label atributa */
  table.table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 0.2rem;
    color: #555;
  }
}
