@import "tailwindcss";
@tailwind utilities;

@font-face {
  font-family: 'Iransans';
  src: url(../fonts/IRANSansX-Black.ttf) format(ttf);
}
*{
  box-sizing: border-box;

}


.text-primary {
  color: #00a8e8;
}

.text-sec {
  color: #00171f;
}

.bg-primary {
  background-color: #00a8e8;
}

.hover-primary:hover {
  background-color: #00a8e8;
  color: white;
}

.bg-sec {
  background-color: #00171f;
}

.border-primary {
  border-color: #00a8e8;
}

.btn-dotted {
  border: 2px dotted #000000;
  border-radius: 0.5rem;

  background-color: white;
}

.btn1 {
  cursor: pointer;
  color: #fff;
  border-radius: 8px;
  background-color: #00a8e8;
  white-space: nowrap;
}

.btn2 {
  cursor: pointer;
  color: #00a8e8;
  background-color: #fff;
  border: #00a8e8 2px;
  border-style: inherit;
  border-width: 1px;
  border-radius: 8px;
  white-space: nowrap;
  margin-inline: 2px;
  max-width: 150px;
}

.v-card{
  box-shadow: 0 0 10px #d7d7d7;
  max-width: 506px;
  overflow: hidden;
  margin: auto;
}


.hover-btn:hover {
  background-color: #0177a5;
  color: #fff;
  white-space: nowrap;
}

.hover-text:hover {
  color: #00a8e8;
}

/* fonts */

/* text-3xl */
.f1 {
  font-size: 30px;
  font-weight: bold;
}

/* f2 */
.f2 {
  font-size: 18px;
  font-weight: bold;
}

.f3 {
  font-size: 14px;
}

/* outline */

.oe {
  outline: none;
}



/* .close {
  position: absolute;
  top: 50%;
  right: 80%;
  width: 60px;
  height: 60px;

} */

.close {
  cursor: pointer;
}

.opens {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  width: 0;
  opacity: 0;
  overflow: hidden;
  cursor: pointer;
}
.pop-up{

}
.getme{
  cursor: pointer;
  box-shadow: 0 0 10px #d7d7d7;
}

.in-primary {
    height: 30px;
    outline-color: rgb(102, 140, 255);
    border-radius: 5px;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    padding: 1px 15px;
    background: rgb(230, 245, 255);
    color: #000000;

}
.bg-wtf{
  color: aqua;
}
.flex-wrap{flex-wrap: wrap;}

.arrow-point:hover{
  width: 100px;
 opacity: 1;
}


/* hamerger menu */


nav {
  /* position: absolute; */
  top: 50px;

}


.close {
  position: absolute;
  top: 15%;
  right: 1%;
  width: 60px;
  height: 60px;
  background-size: 50%;
  background-image: url(../img/menu-2.png);
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  cursor: pointer;



}


nav ul{
 position: absolute;
  align-items: center;
  justify-content: center;
  list-style: none;
   box-shadow: 0 25px 50px -25px #000001;
  -webkit-border-radius: 5;
  -moz-border-radius: 5;
  -ms-border-radius: 5;
  -o-border-radius: 5;
  opacity: 0;
  padding: 20px;

  overflow: hidden;
  background: white;
  transition: all .2s ease-in-out;


}

nav.show ul{
  opacity: 1;
  padding: 1px;


  padding: 20px;

}

.v-card-img{
  margin: auto;
}

.closeBTN{
  transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-ms-transform: rotate(360deg);
-o-transform: rotate(360deg);
  background-image: url(../img/close3.png);


}

@media (max-width: 420px) {
    .v-card{
      flex-direction: column;
      width: 80%;
      min-width: 212px;
      align-items: stretch;
    }
}


.opens {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 0;
}

.getme.active .opens {
  max-height: 200px; 
  opacity: 1;
}


.gradient-p {
  background: linear-gradient(to right, #d1d5db, #e5e7eb);

}


.ray-box {

  background:
    radial-gradient(
      ellipse at top center,
      rgba(255,255,255,0.8) 0%,
      rgba(255,255,255,0.6) 15%,
      rgba(255,255,255,0.3) 35%,
      rgba(255,255,255,0) 55%
    ),
    radial-gradient(
      ellipse at top left,
      rgba(255,255,255,0.7) 0%,
      rgba(255,255,255,0.45) 18%,
      rgba(255,255,255,0) 50%
    ),
    radial-gradient(
      ellipse at top right,
      rgba(255,255,255,0.65) 0%,
      rgba(255,255,255,0.4) 20%,
      rgba(255,255,255,0) 50%
    ),
    #9cc4ff;

  border-radius: 32px;
}






/* chat */


/* .chat-app {
  display: flex;
  height: 100vh;
} */


.sidebar {
  width: 320px;
  background: #fff;
  border-left: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}

.tabs {
  display: flex;
}

.tab {
  flex: 1;
  padding: 5px;
  border: none;
  background: #f1f1f1;
  cursor: pointer;
  font-weight: bold;
}

.tab.active {
  background: #fff;
  border-bottom: 2px solid #1da1f2;
}

.chat-list {
  overflow-y: auto;
  
}

.chat-item {
  padding: 14px;
  border-bottom: 1px solid #eee;
  cursor: pointer;

}

.chat-item.active {
  background: #eef6ff;
}

.chat-item h4 {
  margin: 0;
  font-size: 14px;
}

.tag {
  font-size: 11px;
  background: #1da1f2;
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
  margin-right: 6px;
}


.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 16px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  font-weight: bold;
}

.messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.message {
  max-width: 60%;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.message.received {
  background: #e9eef3;
  align-self: flex-start;
}

.message.sent {
  background: #1da1f2;
  color: white;
  align-self: flex-end;
}


.chat-input {
  display: flex;
  padding: 5px;
  border-top: 1px solid #ddd;
  background: #fff;
}

.chat-input input {
  flex: 1;
  padding: 10px;
}

.chat-input button {
  margin-right: 8px;
  padding: 10px 16px;
  background: #1da1f2;
  color: #fff;
  border: none;
  cursor: pointer;
}


.messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}


.message.received {
  background: #021f31;
  color: #fff;
  align-self: flex-end;
  text-align: right;
  border-bottom-left-radius: 0;
}


.message.sent {
  background: #1da1f2;
  align-self: flex-start;
  text-align: right;
  border-bottom-right-radius: 0;
}


.topic {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

.badge {
  background: red;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 12px;
  margin-right: 6px;
}











/* sidebar */






.sidebar-item {
  @apply flex items-center gap-4
         w-full px-4 py-3
         text-black font-bold
         cursor-pointer
         transition-all duration-300;
}

.sidebar-item:hover {
  background-color: rgba(255,255,255,0.3);
  border-radius: 12px;
}

.sidebar-text {
  @apply whitespace-nowrap transition-all duration-300;
}


.sidebar-collapsed {
  width: 72px;
}

.sidebar-collapsed .sidebar-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.sidebar-collapsed .sidebar-item {
  justify-content: center;
}









/* @media (max-width: 768px) { */


  .sidebar nav a {
    position: relative;
    padding-right: 40px; 
  }


  .sidebar nav a::before {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background-size: contain;
    background-repeat: no-repeat;
  }

  /* آیکن هر آیتم */
  .sidebar nav a:nth-child(1)::before {
    background-image: url("/img/icon/male-user-50.png");
    color: #000000;
  }
  .sidebar nav a:nth-child(2)::before {
    background-image: url("/img/icon/invoice2.png");
  }
  .sidebar nav a:nth-child(3)::before {
    background-image: url("/img/icon/chat-3.png");
  }
  .sidebar nav a:nth-child(4)::before {
    background-image: url("/img/icon/email-24.png");
  }
  .sidebar nav a:nth-child(5)::before {
    background-image: url("/img/icon/invoice2.png");
  }
  .sidebar nav a:nth-child(6)::before {
    background-image: url("/img/icon/phone-number-30.png");
  }
  .sidebar nav a:nth-child(7)::before {
    background-image: url("/img/icon/close3.png");
  }
/* } */

@media (max-width: 768px) {

  .sidebar.sidebar-collapsed {
    width: 72px;
    padding: 4px;
  }

  .sidebar.sidebar-collapsed nav a {
    padding: 14px 0;
    text-align: center;
    text-indent: -9999px; 
  }

  .sidebar.sidebar-collapsed nav a::before {
    right: 0;
    left: 0;
    margin: auto;
  }
}










 @media (max-width: 768px) {

     
      .sidebar {
        width: 220px;
        transition: width .3s ease;
      }

      .sidebar.sidebar-collapsed {
        width: 72px;
      }

   
      .menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        font-weight: bold;
        white-space: nowrap;
        transition: background .2s ease;
      }

      .menu-item:hover {
        background: rgba(0,0,0,.08);
      }

 
      .menu-item .icon {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
      }

    
      .menu-item .text {
        transition: opacity .2s ease;
      }

      .sidebar.sidebar-collapsed .menu-item {
        justify-content: center;
        padding: 12px 0;
      }

      .sidebar.sidebar-collapsed .menu-item .text {
        display: none;
      }


      .sidebar.sidebar-collapsed .profile-info {
        display: none;
      }

      .sidebar.sidebar-collapsed .profile-img {
        margin: 0 auto;
      }
    }















    @media (max-width: 768px) {

  .sidebar {
    width: 256px;
    transition: width .3s ease;
  }


  .sidebar.sidebar-collapsed {
    width: 46px;
  }


  .sidebar.sidebar-collapsed .menu-item {
    justify-content: center;
    padding: 12px 0;
  }

 
  .sidebar.sidebar-collapsed .menu-item .text {
    display: none;
  }


  .sidebar.sidebar-collapsed .profile-info {
    display: none;
  }

  .sidebar.sidebar-collapsed .profile-img {
    margin: 0 auto;
  }
}


@media (max-width: 768px) {
  .main-collapsed {
    margin-right: 72px !important;
  }
}






















