@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500&display=swap');

:root{

  --sidebar-width-restore : 250px;
  --sidebar-width: 250px;
  --header-height: 75px;

  --bg-color: rgb(240, 240, 245);
  --fg-color: rgb(70, 70, 70);
  --fg-secondary: rgb(116,130,156);
  --bg2-color: rgb(255, 255, 255);
  --border-color: rgba(0, 0, 0, 0.1);

  --active-color: rgb(108, 95, 252);
  --active-color-dark: rgb(83, 73, 201);
  --muted-color: rgba(0, 0, 0, 0.2);

}


body[data-theme='dark']{
  --bg-color: rgb(26,26,60);
  --fg-color: rgb(222,222,253);
  --fg-secondary: rgba(255,255,255,0.3);
  --bg2-color: rgb(42,42,74);
  --border-color: rgba(255, 255, 255, 0.1);

  --active-color: rgb(108, 95, 252);
  --active-color-dark: rgb(83, 73, 201);
  --muted-color: rgba(255, 255, 255, 0.2);
}

body{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--bg-color);
  color: var(--fg-color);
  font-family: 'IBM Plex Sans', sans-serif;
  font-feature-settings: "liga"0;
  font-size: 14px;
  font-weight: 400;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: none;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  -webkit-font-feature-settings: "liga"0;
  
}

h1, h2, h3, h4, h5, h6{
  margin: 0;
  padding: 0;
  font-weight: 500;
}

ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

a{
  text-decoration: none;
  color: var(--fg-color);
}

select{
  /* padding: 6px; */
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--fg-color);
  background: var(--bg2-color);
  
  appearance: none;
  height: 2.375rem;
  padding: 0.5rem 1.5rem 0.5rem 0.5rem;
  line-height: 1.5;
  vertical-align: middle;

  background-size: 8px 10px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23515a64' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

textarea:focus, input:focus, select:focus{
  outline: none;
}

input[type="text"], input[type="date"], input[type="number"] {
  line-height: 20px;
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--fg-color);
  background: var(--bg2-color);
  font-family: 'IBM Plex Sans', sans-serif;
}




::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: var(--muted-color);
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: var(--muted-color);
}

::-ms-input-placeholder { /* Microsoft Edge */
  color: var(--muted-color);
}

/* scrollbar dekorasyon */
::-webkit-scrollbar {
    width: 5px;
}
 
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}
 
::-webkit-scrollbar-thumb {
  background-color: darkgrey;
  outline: 1px solid slategrey;
}

/* Form */
.form-group-col{
  display: flex;
  flex-direction: column;
}

/* ----------- */


iconify-icon{
  font-size: 18px;
  color: var(--active-color);
}

body[data-theme='dark'] iconify-icon{
  color: var(--fg-color);
}

#header-container{
  height: var(--header-height);
  border-bottom: 1px solid transparent;
}

#header{
  display: flex;
  position: fixed;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg2-color);
  border-bottom: 1px solid var(--border-color);
  z-index: 1;
}

#logo-login{
  height: 45px;
  width: 160px;
  background: url('./img/mp-logo-d.png') no-repeat center center;
}

body[data-theme='dark'] #logo-login{
  background: url('./img/mp-logo-l.png') no-repeat center center;
}

#logo a{
  display: block;
  height: var(--header-height);
  width: var(--sidebar-width);
  background: url('./img/mp-logo-d.png') no-repeat center center;
  border-right: 1px solid var(--border-color);
}

#logo a.shrink{
  background: url('./img/api.png') no-repeat center center;
}

#logo-sm{
  display: none;
  height: var(--header-height);
  background: url('./img/mp-logo-d.png') no-repeat center center;
  background-size: 90%;
}

body[data-theme='dark'] #logo-sm{
  display: none;
  height: var(--header-height);
  background: url('./img/mp-logo-l.png') no-repeat center center;
}

body[data-theme='dark'] #logo a{
  display: block;
  height: var(--header-height);
  width: var(--sidebar-width);
  background: url('./img/mp-logo-l.png') no-repeat center center;
  border-right: 1px solid var(--border-color);
}

body[data-theme='dark'] #logo a.shrink{
  background: url('./img/api.png') no-repeat center center;
}


#top-menu{
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

#top-menu div{
  display: flex;
}

#main-container{
  display: flex;
}

#sidebar-container{
  width: var(--sidebar-width);
}

#sidebar{
  position: fixed;
  width: var(--sidebar-width);
  background-color: var(--bg2-color);
  border-right: 1px solid var(--border-color);
  height: 100vh;
  overflow-y: auto;
  transition: width 0.2s ease;
  z-index: 1;
}

#side-menu{
  padding: 1.5rem;
}

#side-menu li{
  margin-bottom: 1.5rem;
}

#side-menu li a{
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02rem;
}

#side-menu li a:hover{
  color: var(--active-color);
}

#side-menu li a .label{
  padding-left: 8px;
  display: inline;
}

#side-menu .title{
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 11px;
  color:var(--fg-secondary);
}

#sidebar.shrink .title{
  display: none;
}

#sidebar.shrink li a .label{
  display: none;
}

#sidebar.shrink:hover{
  width: var(--sidebar-width-restore);
}

#sidebar.shrink:hover .title{
  display: list-item;
}

#sidebar.shrink:hover li a .label{
  display: block;
}

#page-container{
  padding: 2rem;
  flex-grow: 1;
  /* width: calc(100% - var(--sidebar-width)); */
}

#search-drawer{
  position: fixed;
  right: -250px;
  top: var(--header-height);
  background: var(--bg2-color);
  width: 250px;
  height: calc(100% - var(--header-height));
  z-index: 1;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  overflow-y: auto;

  transition: right 250ms ease-in-out;
}

#search-drawer-header{
  display: flex;
  height: 45px;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  color: rgb(224 224 224);
  background: var(--active-color);
  font-size: 15px;
}

#search-drawer-body{
  padding: 1rem;
}

#shrink-sm{
  display: none;
}

#shrink-lg{
  display: block;
}

#username{
  display: inline;
  padding-right: 0.5rem;
}

#chip-container{
  display: flex;
  padding: 1rem 2rem;
}

.chip{
  display: flex;
  background: var(--bg-color);
  padding: 6px 10px;
  margin-right: 8px;
  border-radius: 20px;
}

.chip .label{
  padding-right: 6px;
}


/* ---------------- */


.card{
  background: var(--bg2-color);
  border-radius: 4px;
}

.card-header{
  display: flex;
  align-items: center;
  
  padding: 1.2rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.card-header div{
  display: flex;
}

.card-body{
  padding: 2rem;
}

/* ---------------- */

table{
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  /* border-top: 1px solid var(--border-color); */

}

th{
  font-weight: bold;
  text-transform: uppercase;
  text-align: left;
}

.limited{
  width: 100px;
}

td, th{
  padding: 14px;
  border-bottom: 1px solid var(--border-color);
 
}

th.edit{
  width: 20px;
}

tr:hover td{
  background: var(--border-color);
}

/* ------------- Loader ------------- */

.loader { 
  width:100%; 
  margin:0 auto;
  position:relative;
  padding:1px;
}
.loader:before {
  content:'';
  position:absolute;
  top:0; 
  right:2px; 
  bottom:0; 
  left:0;
}
.loader .loaderBar { 
  position:absolute;
  top:0;
  right:100%;
  bottom:0;
  left:0;
  background:var(--active-color); 
  width:0;
  animation:loading 3s linear infinite;
}


@keyframes loading {
  0% {
    left:0%;
    right:100%;
    width:0%;
  }
  10% {
    left:0%;
    right:75%;
    width:25%;
  }
  90% {
    right:10%;
    left:0%;
    width:90%;
  }
  100% {
    left:0%;
    right:0%;
    width:99%;
  }
}

/* ------------------------------------------- */

.table-footer{
  margin: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-footer div{
  display: flex;
}

span.status{
  display: block;
  width: 45px;
  font-size: 12px;
  /* color: #f5f5f5; */
  text-align: center;
  padding: 3px 9px;
  border-radius: 4px;
}

span.success{
  background: #237f021a;
  border: 1px solid #237f02;
}

span.accepted{
  background: #237f021a;
  border: 1px solid #237f02;
}

span.waiting{
  background: #edaa2d1a;
  border: 1px solid #edaa2d;
}

span.fail{
  background: #c720141a;
  border: 1px solid #c72014;
}

span.rejected{
  background: #c720141a;
  border: 1px solid #c72014;
}


/* --------------------- */

.fp-wrapper{
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
}

/* --------------------- */

.mt-08{
  margin-top: 0.8rem;
}

.mt-1{
  margin-top: 1rem;
}

.mt-15{
  margin-top: 1.5rem;
}

.mt-2{
  margin-top: 2rem;
}

.mb-08{
  margin-bottom: 0.8rem;
}

.mb-1{
  margin-bottom: 1rem;
}

.mb-15{
  margin-bottom: 1.5rem;
}

.mb-2{
  margin-bottom: 2rem;
}

.jc-between{
  justify-content: space-between;
}

.jc-center{
  justify-content: center;
}

.fluid{
  width: 100%;
}

/* ---------- Button ----------- */

button{
  background: transparent;
  border: none;
  padding: 0;
}

.button{
  background: var(--active-color);
  color: white;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
}

button:disabled iconify-icon{
  color: var(--fg-secondary);
}

.button:hover{
  background: var(--active-color-dark);
}

.button:active{
  background: var(--active-color);
}

.btn, .btn2{
  display: flex;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
}

.btn:hover{
  background-color: var(--border-color);
}

.btn-outline {
  display: flex;
  padding: 6px;
  border: 1px solid var(--border-color);
  margin-right: 4px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--border-color);
}

.close-btn{

  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--fg-color);

}

.close-btn:hover{
  background: var(--border-color);
}

.close-btn::after{
  content: '\2715';
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 16px;
  width: 16px;
}


/* ---------- Pagination & Button ----------- */

div.pagination{
  display: flex;
}

div.pagination button{
  display: flex;
  padding: 6px 12px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 13px;
}

div.pagination button.active{
  color: #f5f5f5;
  background: var(--active-color);
}

div.pagination button:first-child{
  border-left: 1px solid var(--border-color);
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

div.pagination button:last-child{
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

div.pagination button:disabled{
  cursor: auto;
}

div.pagination button:not(:disabled):hover{
  color: var(--fg-color);
  background: var(--border-color);
}

/* ---------- icon input ----------- */

.icon-input{
  display: flex;
  align-items: center;
}

.icon-input .icon{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 50px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.icon-input input{
  border:none;
  font-size: 15px;
  height: 40px;
  line-height: 1.5;
  padding: 0 15px;
  background: var(--bg2-color);
  width: 100%;
  color: var(--fg-color);
  border: 1px solid var(--border-color);
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

span.err{
  font-size: 12px;
  color: rgb(180, 40, 40);
}


/* modal  */

.modal{
  display: flex; 
  position: fixed; 
  z-index: 1; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.30);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  0%{
    opacity: 0;
  }
  100%{
    opacity: 1;
  }
}

/* --------------------- */

@media screen and (max-width: 860px) {

  :root{
    --sidebar-width: 0px;
  }

  #logo{
    display: none;
  }

  #logo-sm, body[data-theme='dark'] #logo-sm{
    display: block;
    width: 160px;
  }

  #shrink-sm{
    display: block;
  }
  
  #shrink-lg{
    display: none;
  }

}

@media screen and (max-width: 600px) {



  table.responsive {
    border: none;
  }

  table.responsive caption {
    font-size: 1.3em;
  }
  
  table.responsive thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  table.responsive tr {
    display: block;
    margin-bottom: 1.5rem;
  }
  
  table.responsive td {
    border-right: none;
    display: block;
    font-size: .8em;
    text-align: right;
  }
  
  table.responsive td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  table.responsive td:last-child {
    border-bottom: 0;
  }


  #page-container {
    padding: 0;
  }

  .table-footer {
    flex-direction: column-reverse;
  }

  .pagination, #row-count{
    margin-bottom: 1rem;
  }

  span.status{
    display: inline;
  }

  .modal{
    display: block;
  }


  #logo-sm, body[data-theme='dark'] #logo-sm{
    display: block;
    width: 100px;
    background-size: 90%;
  }

  #username{
    display: none;
  }

  

}
