/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --nav-width: 68px;

  /*===== Colors =====*/
  --main-color: #EB6123;
  --main-color-light: #f9b799;
  --main-color-gradient: linear-gradient(125deg, rgb(235, 99, 36) 0%, rgb(130, 50, 13) 100%);
  --main-color-accent: #435EA9;
  --white-color: #fdfdfd;
  --white-color-gray: #F1F1F1;
  --white-color-moregray: #d4d4d4;
  --red-color: #ff3b2a;
  --orange-color: #EB6123;
  --orange-color-light: #EFBE71;
  --green-color: #78B76E;
  --dark-gray-color: #222529;

  /*===== Font and typography =====*/
  --body-font: "Poppins", sans-serif;
  --normal-font-size: 0.8rem !important;

  /*===== z index =====*/
  --z-fixed: 100;
  --btn-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

.text-orange {
  color: var(--orange-color);
}
.bg-orange {
  background: var(--orange-color);
}

.text-green {
  color: var(--green-color);
}

.text-red {
  color: var(--red-color) !important;
}

.row:before,
.row:after {
  display: none !important;
}

.display-none {
  display: none !important;
}

/* ===== SWAL ===== */
.swal-css {
  color: var(--main-color) !important;
  max-width: 500px !important;
  border-radius: 15px !important;
}

.swal2-popup {
  background-color: rgba(255, 255, 255, 100%) !important;
  backdrop-filter: blur(5px) !important;
}

.swal-css-notif {
  color: var(--main-color) !important;
  max-width: 500px !important;
  border-radius: 15px !important;
  background-color: rgba(255, 255, 255, 100%) !important;
}

.swal2-confirm {
  background-color: var(--red-color) !important;
  width: 120px;
  /* height: 40px; */
  border-radius: 15px !important;
  font-weight: 400;
  letter-spacing: 2px;
  transition: 0.3s;
}

.swal2-deny {}

.swal2-cancel {
  background-color: var(--main-color) !important;
  width: 120px;
  /* height: 40px; */
  border-radius: 15px !important;
  font-weight: 400;
  letter-spacing: 2px;
}

.swal-title-css {
  font-weight: 600;
  color: var(--orange-color);
  padding: 10px;
  font-size: 1.5em;
}

.swal-title-css-notif {
  font-size: 0.8em !important;
  color: var(--orange-color);
}

.swal-title-css-error {
  font-weight: 600;
  color: var(--red-color);

  padding: 10px;
  font-size: 1.5em;
}

/*===== BASE =====*/
*,
::before,
::after {
  box-sizing: border-box;
}

/*? ============================ HEADER ============================ */
/*? ================================================================ */
.header {
  width: 100%;
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  /* background-color: var(--white-color-gray); */
  /* background-color:   rgba(0, 0, 0, 10%); */
  /* background-color:   rgba(235, 97, 35, 0.1); */
  z-index: var(--z-fixed);
  transition: 0.5s;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

.header__toggle {
  color: var(--main-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.header__img {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
}

.header__img img {
  width: 40px;
}

.header-right-side {
  display: flex;
  text-align: right;
  align-items: center;
}

.header-right-side box-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}

.user-info {
  /* border: 1px solid red; */
}

.user-info div {
  /* border: 1px solid red; */
}

.user-info-sparator {
  height: 40px;
  width: 1px;
  background-color: #222222;
  margin-left: 25px;
  margin-right: 25px;
}

.user-name {
  font-weight: 600;
  font-size: 1.05em;
}

/*===== NAV =====*/
.l-navbar {
  position: fixed;
  top: 0;
  left: -30%;
  width: var(--nav-width);
  height: 100vh;
  background: var(--main-color-gradient);
  padding: 0.5rem 1rem 0 0;
  transition: 0.5s;
  z-index: var(--z-fixed);
}

.nav {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.nav__logo,
.nav__link {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  column-gap: 1rem;
  padding: 0.5rem 0 0.5rem 1.5rem;
}

.nav__logo {
  margin-bottom: 2rem;
}

.nav__logo-icon {
  font-size: 1.25rem;
  color: var(--white-color);
}

.nav__logo-name {
  color: var(--white-color);
  font-weight: 700;
  letter-spacing: 2px;
}

.nav__link {
  position: relative;
  color: var(--main-color-light) !important;
  margin-bottom: 1.5rem;
  transition: 0.3s;
}

.nav__link:hover {
  color: var(--white-color) !important;
  cursor: pointer;
}

.nav__icon {
  font-size: 1.3rem !important;
}

/*Show navbar movil*/
.show-navbar {
  left: 0;
}

/*Add padding body movil*/
.body-pd {
  padding-left: calc(var(--nav-width) + 1rem);
}

/*Active links*/
.active {
  color: var(--white-color) !important;
}

.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 2px;
  height: 32px;
  background-color: var(--white-color) !important;
}


/*? ============================ BODY ============================== */
/*? ================================================================ */
html,
body,
.container-fluid {
  background-color: var(--white-color);
  /* background-color: var(--dark-gray-color); */
  /* color: var(--white-color-moregray); */
}

body {
  position: relative;
  margin: var(--header-height) 0 0 0;
  padding: 0 1rem;
  font-family: var(--body-font) !important;
  font-size: var(--normal-font-size);
  transition: 0.5s;
}

a {
  text-decoration: none !important;
}



.title-content {
  /* border: 1px solid red; */
  margin-top: 10px;
  margin-bottom: 30px;
  color: var(--main-color-accent);
  text-shadow: 0px 0px 1px rgba(255,255,255,0.5);
  /* font-variant: small-caps;
  font-weight: 800 !important; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.title-content h4 {
  color: var(--main-color);
}

.sidebar-icon {
  width: 28px;
}

.container-fluid>div {
  /* border: 1px solid red; */
}

table thead {
  /* background-color: var(--main-color) !important; */
  /* color: #ffffff; */
  font-size: 1em;
  text-align: center;
}

table thead tr th {
  vertical-align: middle !important;
}

table tbody tr td {
  vertical-align: middle !important;
  font-size: 1em;
  /* line-height: 1.1em; */
}

table tbody tr td button {
  box-shadow: var(--btn-shadow);
}

/* TABLE DETIL & EDIT */
.table-form {
  font-size: 1.1em;
  /* display: flex; */
}

.table-form tr {
  vertical-align: middle !important;
}

.btn {
  color: #ffffff !important;
  outline: none !important;
  border-radius: 15px;

  height: 40px;
  width: auto;
  /* height: 40px; */
  border-radius: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  padding-left: 20px;
  padding-right: 20px;
  min-width: 120px;
  text-transform: uppercase;
  font-size: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px; */
  box-shadow: var(--btn-shadow);
}

.btn,
.btn-primary,
.btn-secondary:active {
  outline: none;
}

.btn,
.btn-primary,
.btn-secondary:focus {
  outline: none;
}

.btn:hover {
  /* background-color: var(--orange-color) !important; */
  filter: brightness(110%);
}

.btn:disabled {
  /* background-color: var(--main-color) !important; */
}

.btn-primary {
  background-color: var(--green-color) !important;
  outline: none !important;
  border: none !important;
}

.btn-secondary {
  outline: none !important;
  border: none !important;
}

.btn-success {
  background-color: var(--green-color) !important;
  border: none !important;
}

button {
  border: none;
  cursor: pointer;
  border-radius: 0.15em;
}

button.close {
  background: none !important;
  font-size: 2em !important;
}

button:focus {
  outline: none;
}

button div{
  display: inline-flex;
  /* border: 1px solid red; */
  width: 100%;
  justify-content: space-around;
  align-items: center;
}
button .bx{
  font-size: 1rem !important;
  margin-right: 5px;
}

.th-action {
  width: 150px !important;
}

tbody tr td button {
  float: right;
}

.button-action {
  background-color: var(--main-color);
  color: #ffffff !important;
  /* padding-top: 5px; */
  padding-left: 10px;
  /* padding-right: 8px; */
  margin: 2px;
  transition: 0.3s;
  font-size: 1.5em;
}

.button-action-red {
  background-color: var(--red-color) !important;
}

.button-action-green {
  background-color: var(--green-color) !important;
}

.button-action:hover {
  /* filter: brightness(90%); */
  background-color: var(--orange-color) !important;
}

.link-back-button {
  font-size: 20px;
  color: var(--main-color);
}

.link-back-button a {
  color: var(--main-color);
  font-variant: normal;
  transition: 0.3s;
}

.link-back-button a:hover {
  color: var(--orange-color);
}

.link-back-button i {
  font-size: 25px;
  align-self: center;
  padding: 5px;
  display: flex;
}

.link-back-button i div {
  font-size: 20px;
  font-family: var(--body-font);
  font-variant: small-caps;
  display: inline;
  padding: 3px;
  vertical-align: middle;
}

.tooltip-ballon {
  --balloon-color: var(--main-color-accent);
}

.span {
  font-variant: normal;
  font-size: 0.75em;
  font-weight: bold;
  color: var(--orange-color);
}

input {
  font-family: var(--body-font) !important;
}

input[type="file"]::file-selector-button {
  background-color: var(--green-color) !important;
  color: #fff !important;
  box-shadow: var(--btn-shadow);
  /* border-top-left-radius: 10px; */
  /* border-bottom-left-radius: 10px; */
}

input::placeholder,
textarea::placeholder {
  color: #ccc !important;
}

.form-control {
  font-size: var(--normal-font-size);
}

.bootstrap-select {
  width: 500px !important;
  vertical-align: middle;
}

.bootstrap-select>.dropdown-toggle {
  background-color: #eaecef !important;
  border-radius: 5px !important;
  color: #222222 !important;
}

.bootstrap-select>.dropdown-toggle:hover {
  background-color: var(--orange-color) !important;
}

.filter-option {
  display: flex;
  align-items: center;
}

/*? ========================== DASHBOARD SECTION =================== */
/*? ================================================================ */
.order-card {
  color: #fff;
}

.bg-c-blue {
  background: linear-gradient(45deg, var(--main-color), #53a1ad);
}

.bg-c-green {
  background: linear-gradient(45deg, #41974e, #55bb65);
}

.bg-c-yellow {
  background: linear-gradient(45deg, var(--orange-color), #ffcb80);
}

.bg-c-pink {
  background: linear-gradient(45deg, #FF5370, #ff869a);
}


.card {
  border-radius: 5px;
  -webkit-box-shadow: 0 1px 2.94px 0.06px rgba(4, 26, 55, 0.16);
  box-shadow: 0 1px 2.94px 0.06px rgba(4, 26, 55, 0.16);
  border: none;
  margin-bottom: 30px;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.card:hover {
  filter: brightness(110%)
}

.card:active {
  filter: brightness(90%)
}

.card .card-block {
  padding: 25px;
}

.order-card i {
  font-size: 26px;
}

.f-left {
  float: left;
}

.f-right {
  float: right;
}

.zoom {
  transition: 0.3s;
}

.zoom:hover {
  transform: scale(2);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  /* transition: 0.3s; */
  cursor: zoom-in;
}



/* TODO ===== MEDIA QUERIES=====*/
@media screen and (min-width: 768px) {
  body {
    margin: calc(var(--header-height) + 1rem) 0 0 0;
    padding-left: calc(var(--nav-width) + 2rem);
  }

  .header {
    height: calc(var(--header-height) + 1rem);
    padding: 0 2rem 0 calc(var(--nav-width) + 2rem);
  }

  .header__img {
    width: 40px;
    height: 40px;
  }

  .header__img img {
    width: 45px;
  }

  .l-navbar {
    left: 0;
    padding: 1rem 1rem 0 0;
  }

  /*Show navbar desktop*/
  .show-navbar {
    width: calc(var(--nav-width) + 156px);
  }

  /*Add padding body desktop*/
  .body-pd {
    padding-left: calc(var(--nav-width) + 188px);
  }
}

/* BOOTSTRAP */

.checkbox-lg .custom-control-label::before,
.checkbox-lg .custom-control-label::after {
  top: -0rem;
  width: 1.55rem;
  height: 1.55rem;
}

.ckbx:hover {
  cursor: pointer !important;
}

.checkbox-lg .custom-control-label {
  padding-top: 13px;
  padding-left: 6px;
}


.modal-xl {
  width: 100vw !important;
  height: 93% !important;
}

.modal-content-custom {
  width: 100% !important;
  height: 100% !important;
}


/*? ======================== NEWS SECTION ========================== */
/*? ================================================================ */

.image-area-news img,
.image-area-portofolio img {
  z-index: 2;
  position: relative;
  width: 300px !important;
  display: flex;
  align-items: center;
  /* border: 1px solid red; */
}

.alert-input-exist,
.alert-input-exist:focus {
  border: 1px solid red;
  background-color: rgba(255, 0, 0, 0.1);
}

#alert-msg-exist-news,
#alert-msg-exist-news-update,
#alert-msg-exist-portofolio,
#alert-msg-exist-portofolio-update {
  position: absolute;
  top: -25px;
  background-color: var(--red-color);
  border-radius: 15px;
  color: #fff;
  font-size: 0.8rem;
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
}



/*? ======================= BUTTON DETAIL SECTION ================ */
/*? ============================================================== */
.floating-button-action {
  position: fixed;
  right: 0;
  bottom: 0;
  padding-right: 70px;
  padding-bottom: 5px;
  padding-top: 5px;
  z-index: 50;
  width: 100%;
  /* background-color: rgba(0, 0, 0, 10%); */
  background-color:   rgba(235, 97, 35, 0.1);
  transition: 0.5s;
  backdrop-filter: blur(5px) !important;
}

#news-isi-insert,
#news-isi-update,
#portofolio-isi-insert,
#portofolio-isi-update {
  /* border: 1px solid red; */
  height: 80vh !important;
}

.notif-draft-tersimpan {
  position: absolute;
  top: -20px;
  /* right: 200px; */
  font-variant: normal !important;
  font-weight: normal !important;
  background-color: var(--main-color-accent);
  border-radius: 15px;
  color: #fff;
  font-size: 0.8rem;
  padding: 5px;
  padding-left: 15px;
  padding-right: 15px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}
.notif-draft-tersimpan::after {
  content: "";
	position: absolute;
	height: 20px;
	width: 20px;
	bottom: -15px;
	left: 40%;
  background-color: var(--main-color-accent);
	clip-path: polygon(0 0, 100% 0, 100% 100%);
  /* transform: rotate(45deg) !important; */
}