@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');



:root{

      --pop: "Poppins", sans-serif;
  --int: "Inter", sans-serif;

    --primary-bg:#010a0f;
    --secondary-bg:#0A0F2C;
  --accent:#0A0F2C;
  --text:#e0e6ed;
  --action:#4cc9f0;
  --light:#878F57;
  --textwhite:#F6F8EB;
  --landing-width:68.89vw;
  --landing-width-mobile:86vw;
  --boxshadow:0px 0px 30px 0px #0000000F;
}

::-webkit-scrollbar {
    width: 10px;
    font-size: var(--outfit);
    
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    background: white;
  }
  
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: var(--primary-bg);
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-bg);
  }


.header{
    background-color: #0A0F2C;
    display: flex;
    justify-content: space-between;
    height: 100px;
    place-items: center;
}

.header .logo{
    height: 90px;
    margin-left: 100px;
}

.header .hamburger{
    width: 40px;
    margin-right: 100px;
    cursor: pointer;
}

.dashboard-main{
    width: 90vw;
    margin: auto;
    margin-top: 60px;
}


    .overlay {
      position: fixed;
      top: 0;
      right: -100%;
      width: 300px;
      height: 100%;
      background:#010a0f;
      color: white;
      transition: right 0.4s ease;
      z-index: 1000;
      padding: 20px;
    }

    .overlay.active {
      right: 0;
    }

    .overlay .close-btn {
      font-size: 24px;
      cursor: pointer;
      color: #fff;
      position: absolute;
      top: 20px;
      right: 20px;
    }

    .overlay ul {
      list-style: none;
      padding: 60px 0 0 0;
      margin: 0;
    }

    .overlay ul li {
      padding: 15px 0;
      border-bottom: 1px solid #444;
    }

    .overlay ul li a {
      color: white;
      text-decoration: none;
      font-size: 18px;
      transition: color 0.2s ease;
    }

    .overlay ul li a:hover {
      color: #00bcd4;
    }

/* Body dark background */
body {
    background-color: var(--primary-bg);
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* Headings */
h2, h3 {
    color: var(--text);
    font: var(--pop);
    font-weight: 600;
    font-size: 32px;

}

#addRow, #addPotencial{
    background-color: transparent;
    border: 1px solid var(--action);
    border-radius: 12px;
}

.dodaj-pop{
    display: none;
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 70vh;              /* ili npr. 600px */
    background-color: #0A0F2C;
    overflow-y: auto;          /* auto je bolje od scroll */
    border-radius: 8px;        /* ljepše izgleda */
}

.potenical-pop, .dodaj-pop {
    display: none;
    position: fixed;
    top: 10%; /* malo fleksibilnije za desktop i mobitel */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;       /* prilagodljivo za mobitele */
    max-width: 1000px;
    max-height: 80vh; /* ne izlazi van ekrana */
    background-color: #0A0F2C;
    overflow-y: auto;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    z-index: 1050;
}

/* Naslovi */
.dodaj-pop h2, .potenical-pop h2 {
    font-family: var(--pop);
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

/* Dugmad */
.dodaj-pop button, .potenical-pop button {
    width: 150px;
    color: var(--action);
    background: transparent;
    border: 1px solid var(--text);
    border-radius: 16px;
    margin: 15px auto 10px auto;
    display: block;
    transition: 0.3s;
}

.dodaj-pop button:hover, .potenical-pop button:hover {
    background-color: var(--text);
    color: var(--action);
}

/* Inputi, labeli, select, textarea */
.dodaj-pop label, .dodaj-pop input, .dodaj-pop select, .dodaj-pop textarea,
.potenical-pop label, .potenical-pop input, .potenical-pop textarea {
    background: transparent;
    width: 90%;
    max-width: 500px;
    margin: 0 auto 15px auto;
    display: block;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 1rem;
}

.form-flex{
    display: flex;
    justify-content: space-between;
}

.form-flex p{
    margin-top: 25px;
    margin-right: 95px;
    font-size: 36px;
    cursor: pointer;
}



.select2-results__option {
    padding: 6px;
    user-select: none;
    -webkit-user-select: none;
    color: black;
}

.dataTables_length, #klijentiTable_filter{
    margin-top: 30px;
    margin-bottom: 30px;
}

/* DataTables styling */
.dataTables_wrapper {
    color: #e0e0e0;
}

table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid #333;
}

table.dataTable thead {
    background-color: var(--accent);
}

table.dataTable thead th {
    color: #ffffff;
    border-bottom: 1px solid #444;
}

table.dataTable tbody tr {
    background-color: #1b1b1b;
}

table.dataTable tbody tr:nth-child(even) {
    background-color: #0A0F2C;
}

table.dataTable tbody tr:hover {
    background-color: #333333;
}

table.dataTable td, table.dataTable th {
    color: #e0e0e0;
    padding: 8px;
}

/* Select2 dark theme */
.select2-container--default .select2-selection--multiple {
    background-color: #1b1b1b;
    border: 1px solid #444;
    color: #e0e0e0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #555;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #ff4d4d;
}

/* Dropdown labels */
label {
    color: #e0e0e0;
    font-weight: 500;
}

/* Section spacing */
.mb-3 {
    margin-bottom: 1rem !important;
}

/* Links */
a {
    color: #4da6ff;
}
a:hover {
    color: #80c1ff;
    text-decoration: underline;
}



table.follow-up-table  {
    border-collapse: separate !important;
    border-spacing: 0;
    border: 1px solid #333;
}

table.follow-up-table  thead {
    background-color: var(--accent)!important;
}

table.follow-up-table  thead th {
    color: #ffffff;
    border-bottom: 1px solid #444;
}

table.follow-up-table  tbody tr {
    background-color: #1b1b1b;
}

table.follow-up-table  tbody tr:nth-child(even) {
    background-color: #0A0F2C;
}

table.follow-up-table  tbody tr:hover {
    background-color: #333333;
}

table.follow-up-table  td, table.follow-up-table  th {
    color: #e0e0e0;
    padding: 8px;
}


.table-striped>tbody>tr:nth-of-type(odd)>* ,.table>:not(caption)>*>* {
    background: transparent;
}


  @media screen and (max-width:1200px){
      #klijentiTable_wrapper{
          overflow-x: scroll;
      }
      .followreminder{
          overflow-x: scroll;
      }
      .potenical-pop{
          width:90vw;
          margin:auto;
      }
      .header .logo{
    height: 90px;
    margin-left: 20px;
}

.header .hamburger{
    width: 40px;
    margin-right: 20px;
    cursor: pointer;
}

   .potenical-pop, .dodaj-pop {
        width: 95%;
        top: 5%;
        max-height: 90vh;
    }
    .dodaj-pop button, .potenical-pop button {
        width: 100%;
    }
    .dodaj-pop label, .dodaj-pop input, .dodaj-pop select, .dodaj-pop textarea,
    .potenical-pop label, .potenical-pop input, .potenical-pop textarea {
        width: 100%;
    }
}
  }



