@font-face {
  font-family: 'DiodrumArabic-Regular';
  src: url('/fonts/DiodrumArabic/DiodrumArabic-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
 @font-face {
  font-family: 'DiodrumArabic-Medium';
  src: url('/fonts/DiodrumArabic/DiodrumArabic-Medium.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

 @font-face {
  font-family: 'DiodrumArabic-Bold';
  src: url('/fonts/DiodrumArabic/DiodrumArabic-Bold.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

:root {
  --grey-100: #D4DADA;
  --grey-200: #B8BEBF;
  --grey-300: #9CA1A3;
  --grey-400: #7F8486;
  --grey-500: #434646;
  --grey-600: #252626;
  --grey-700: #101111;
}



body {
    background: white;
    font-family: 'DiodrumArabic-Regular', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


.font-regular {
    font-family: 'DiodrumArabic-Regular', sans-serif;
}
.font-medium {
    font-family: 'DiodrumArabic-Medium', sans-serif;
}
.font-bold {
    font-family: 'DiodrumArabic-Bold', sans-serif;
}

/* * {
  font-family: 'DiodrumArabic', sans-serif !important;
} */

.search-bar {
    border-radius: 16px;
    border: 1px solid var(--grey-100, rgba(212, 218, 218, 1));
    position: relative;
    /* background-color: #f1f1f1; */
    display: flex;
    align-items: center; /* Center input vertically */
    padding: 0; /* Remove padding to avoid pushing content */
}
.search-bar input {
    font-family: 'DiodrumArabic-Regular', sans-serif;
    font-size: 12px;
    line-height: normal;
    text-align: right;
    color: #000;
    padding-inline-end: 2.5rem; /* for search icon */
    padding-inline-start: 12px;
    border: none;
    outline: none;
    width: 100%;
    margin-right: 10%;
    height: 100%;
    background-color: transparent; /* inherits from parent */
    /* border-radius: 8px; */
    padding-bottom: 8px;
    box-shadow: none !important;
}

.search-bar input::placeholder {
    font-family: 'DiodrumArabic-Regular', sans-serif;
    font-weight: 400;
    font-size: 12px;
    text-align: right;
    /* padding-right: 20px; */
    color: var(--Header-Search-bar-placeholder, rgba(123, 127, 125, 1));
    /* opacity: 1; */
    padding-bottom: 8px;
}

input::placeholder {
    /* position: relative; */
    /* top: 0; */
    /* bottom: 5px; */
    /* opacity: 1; */
    /* color: rgba(136, 140, 140, 0.8); */
    /* padding: 0; */
    /* margin: 0x; */
}

input:focus::placeholder {
    /* opacity: 0.6; */
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.user-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;

}
.user-name {
    font-family: "DiodrumArabic-Regular";
    font-weight: 400;
    text-align: right;
    font-size: 14px;
    color: rgba(16, 17, 17, 1);
    /* padding-bottom: 8px; */
}

.user-name-link{
  text-decoration: none;
   font-family: "DiodrumArabic-Regular";
    font-weight: 400;
    text-align: right;
    font-size: 14px;
    color: rgba(16, 17, 17, 1);
    padding-bottom: 8px;
}

.user-name{
  cursor: pointer;
}

.notifications:hover{
  cursor: pointer;
}

.user-job{
    font-family: "DiodrumArabic-Regular";
    font-weight: 400;
    font-size: 12px;
    color: var(--grey-400, rgba(101, 104, 104, 1));
    padding-bottom: 8px;
}

/* Outer toggle button */
.toggle-btn {
  width: 63px;
  height: 32px;
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(212, 218, 218, 1);
  border-radius: 24px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  transition: background 0.3s ease, justify-content 0.3s ease;
}

/* Circle inside */
.toggle-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(239, 165, 44, 1); /* Inactive (orange) */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.toggle-circle img {
  width: 9px;
  height: 9px;
}

/* Active state */
.toggle-btn.active {
  background: rgba(40, 155, 147, 1); /* Active green */
  justify-content: flex-start;
}



.main-content {
    gap: 32px;
    flex: 1 1 auto;
    overflow-y: auto;
}

.main-content2 {
    /* border: 1px solid rgba(40, 155, 147, 1); */
    /* border: 1px;
    border-radius: 80px;
    padding: 24px; */
    /* margin-right: 60px; */
    /* gap: 32px; */
}

.custom-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 9999;
    background-color: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.15);
    max-width: 90%;
    width: 100%;
    display: none;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.custom-modal.show {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}


.custom-modal.hidden {
    display: none;
    pointer-events: none;
    visibility: hidden;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* filter bar */
.filter-container {
    position: relative;
    top: 50px;
    right: 30px;
    z-index: 2;
    gap: 0;
    margin: 0;
}

.filter-bar {
    /* width: 364px; */
    height: 48px;
    padding: 0 24px;
    /* background: rgba(243, 246, 246, 0.8); */
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
}

.filter-items {
    display: flex;
    direction: rtl;
}

.filter-item {
    /* min-width:  86px; */
    height: 47px;
    gap: 8px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;

    font-family: 'DiodrumArabic-Regular', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    padding: 8px 12px;
    background: none;
    cursor: pointer;
    background: rgba(243, 246, 246, 0.8);
    color: rgba(136, 140, 140, 1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(235, 237, 240, 0.5);
    /* margin: auto; */
    padding-bottom: 16px;
}

.filter-item.active {
    background: rgba(40, 155, 147, 1);
    color: rgba(255, 255, 255, 1);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    font-family: 'DiodrumArabic-Bold', sans-serif;
}
    

.filter-item:hover:not(.active) {
    color: rgba(40, 155, 147, 0.8);
}

.filter-item:hover:not(.active) {
    color: rgba(40, 155, 147, 0.8);
    background: #EFA52C;
}

.center-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* for damaged items page */
.header-with-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.damaged-summary-box {
    min-width: 153px;
    /* height: 68px; */
    border-radius: 16px;
    background: #EFA52C; /* primary-base-2 */
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.damaged-summary-box .summary-label {
    font-family: "DiodrumArabic-Medium", sans-serif;
    /* height: 27px; */
    font-weight: 400;
    font-size: 14px; /* Assuming H7 is 14px */
    color: #FFFFFF;
    text-align: right;
    margin: 0;
    line-height: 1;
    padding-bottom: 8px;
}

.damaged-summary-box .summary-value {
    font-family: "DiodrumArabic-Bold", sans-serif;
    /* height: 36px; */
    font-weight: 400;
    font-size: 18px; /* Assuming H5 is 18px */
    color: #FFFFFF;
    text-align: center;
    margin: 0;
    line-height: 1;
    padding-bottom: 8px;
}

/* checkbox style */
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--grey-300, rgba(136, 140, 140, 1));
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  cursor: pointer;
}

input[type="checkbox"]:checked {
  background-color: rgba(40, 155, 147, 1); /* optional fill */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l3 3 7-7' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px;
}

/* .stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
 */

/* 
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
} */

.stat-card {
    position: relative;
    overflow: hidden; /* Required for ripple animation */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
}

.stat-card:hover {
    transform: translateY(-6px) scale(1.03);
    /* box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1); */
}

/* Optional: subtle glow/pulse ring (invisible until hover) */
.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    /* background: radial-gradient(circle at center, rgba(40,155,147,0.08) 0%, transparent 70%); */
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.stat-card:hover::after {
    opacity: 1;
}

/* Click animation (feels clickable) */
.stat-card:active {
    transform: translateY(0px) scale(0.99);
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); */
}


/* Date selecter */


.date-input {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 104px;
    border: 1px solid var(--filter-date-stroke, rgba(197, 204, 201, 1));
    border-radius: 16px;
    padding: 8px;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.date-input2 {
    display: flex;
    align-items: center;
    justify-content: right;
    height: 40px;
    width: 104px;
    border: 1px solid var(--filter-date-stroke, rgba(197, 204, 201, 1));
    border-radius: 16px;
    padding: 8px;
    gap: 4px;
    position: relative;
    overflow: hidden;
}


/* Remove gap when date is selected */
.date-input.no-gap {
    gap: 0;
}

.date-input-span.has-date {
    color: rgb(16, 17, 17);
    white-space: nowrap;
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    text-align: right;
    /* padding: 0 5px 5px 0; */
    /* color: var(--filter-date-placeholder, rgba(123, 127, 125, 1)); */
}

.date-input-span {
    white-space: nowrap;
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    text-align: right;
    padding: 0 5px 5px 0;
    color: var(--filter-date-placeholder, rgba(123, 127, 125, 1));
}
/* 
.date-arrow-icon {
    width: 16px;
    height: 16px;
    margin: 3px 0 0 0;
} */

.native-date-input {
    opacity: 0;
    position: absolute;
    pointer-events: auto;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.date-arrow-icon {
    width: 16px;
    height: 16px;
    /* margin: 3px 0 0 0; */
    /* padding-top: 8px; */
}   

/* profile dropdown */
.dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.dropdown-wrapper:hover{
  cursor: pointer;
}


/* Dropdown menu */
.profile-dropdown {
  width: 150px;
  position: absolute;
  top: 100%; /* directly below the icon */
  left: 0;
  background: #fff;
  border: 1px solid rgba(235, 237, 240, 1);
  border-radius: 16px;
  padding: 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: auto;
}

.profile-dropdown-link{
  text-decoration: none;
  padding-bottom: 9px;
}

/* Visible state */
.profile-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  /* min-height: 25px; */
    border-radius: 8px;
}

.nav-dropdown-icon {
  width: 16px;
  height: 16px;
    flex-shrink: 0;

}

.dropdown-text {
  font-family: "DiodrumArabic-Medium", sans-serif;
  font-weight: 400;
  font-size: 12px; /* H8 size */
  color: rgba(16, 17, 17, 1);
  text-align: right;
  vertical-align: middle;
  padding-bottom: 8px;
  cursor: pointer;
}


.dropdown-text:hover {
  cursor: pointer;
  text-decoration: underline;
}

.logout .dropdown-text {
  color: rgba(213, 35, 35, 1);
}

/* Utility class to hide */
.hidden {
  display: none;
}

/* Mobile friendly */
@media (max-width: 576px) {
  .profile-dropdown {
    right: auto;
    left: 0;
    transform: translateY(-10px) translateX(0);
    width: 100vw;
    max-width: 280px;
  }
}


.btn-transaction  {
  transition: all 0.2s ease-in-out;
  transform-origin: center;
  cursor: pointer;
}

.btn-transaction:hover {
  transform: scale(1.4) translateY(-2px);
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
}

.btn-transaction:active {
  transform: scale(0.98) translateY(0);
  box-shadow: none;
}


.scan-barcode{
  transition: all 0.2s ease-in-out;
  transform-origin: center;
  cursor: pointer;
}
.scan-barcode:hover{
  transform: scale(1.2) translateY(-2px);
}

.scan-barcode:active {
  transform: scale(0.98) translateY(0);
  box-shadow: none;
}

.close-buttons{
  transition: all 0.3s ease;
  cursor: pointer;
}

.close-buttons:hover{
  transform: rotate(90deg);
}



.top-navbar {
    font-size: 14px;
    height: 72px;
    border-bottom: 1px solid rgba(233, 236, 236, 1);
    background: #fff;
    border-radius: 32px;
    padding: 16px 32px;
    margin: 0;
}


.mobile-navbar {
    width: 100%;
    /* width: 375px; */
    /* height: 48px; */
    border-radius: 32px;
    padding: 8px 16px;
    background: #fff;
    gap: 8px;
    border-bottom: 1px solid rgba(233, 236, 236, 1);
    margin: 0 auto;
}

.mobile-logo img {
    width: 32px;
    height: 32px;
}

.mobile-user-info {
    width: 96px;
    height: 32px;
    gap: 8px;
    display: flex;
    align-items: center;
}

.mobile-user-info img {
    display: inline-block;
}

.dropdown-toggle-icon {
    cursor: pointer;
}

.mobile-dropdown-menu {
    position: absolute;
    top: 60px;
    left: 16px;
    width: 200px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px;
}

.mobile-dropdown-menu .dropdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
}

.mobile-dropdown-menu .dropdown-row:hover {
    background-color: #f1f1f1;
}

.mobile-dropdown-menu .nav-dropdown-icon {
    width: 20px;
    height: 20px;
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e7eb;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.toast-message {
    flex: 1;
    font-family: "DiodrumArabic-Medium", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.toast-close:hover {
    background-color: #f3f4f6;
}

/* Toast Types */
.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success .toast-icon img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-icon img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-warning .toast-icon img {
    filter: brightness(0) saturate(100%) invert(70%) sepia(88%) saturate(1032%) hue-rotate(359deg) brightness(103%) contrast(101%);
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-info .toast-icon img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(199deg) brightness(118%) contrast(119%);
}

/* RTL Support */
[dir="rtl"] .toast-container {
    right: auto;
    left: 20px;
}

[dir="rtl"] .toast {
    transform: translateX(-100%);
}

[dir="rtl"] .toast.show {
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    [dir="rtl"] .toast-container {
        right: 10px;
        left: 10px;
    }
    
    .toast-content {
        padding: 12px;
    }
    
    .toast-message {
        font-size: 13px;
    }
}
