@import url("https://fonts.googleapis.com/css2?family=Intel+One+Mono:ital,wght@0,300..700;1,300..700&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* custom theme style set start */
.thm-card {
    border: none;
    border-radius: 12px;
    background: white;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
    transition: all 0.3s ease, box-shadow 0.3s ease;
}

.thm-card:hover {
    /* transform: translate(-5px); */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Enhanced Card Header */
.thm-card-head {
    padding: 10px 20px;
    background: linear-gradient(135deg, #962B7B 0%, #6a11cb 100%);
    color: white;
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.thm-card-head::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(
        to bottom,
        rgba(106, 17, 203, 0.2) 0%,
        rgba(106, 17, 203, 0) 100%
    );
}

.thm-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
    color: #fff;
}

.thm-card-title i {
    margin-right: 12px;
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
}

/* Card Body */
.thm-card-body {
    padding: 25px;
}

/* Action Buttons */
.thm-btn-primary {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.thm-btn-primary i {
    margin-right: 8px;
    font-size: 0.9em;
}

.thm-btn-primary {
    background: linear-gradient(135deg, #962B7B 0%, #6a11cb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(106, 17, 203, 0.2);
}

.thm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(106, 17, 203, 0.3);
    color: white;
}

.erp-form .form-control {
    border: 1px solid rgb(233, 233, 233);
    box-shadow: inset 3px 4px 5px rgb(238, 238, 238);
}

.erp-form .form-select {
    border: 1px solid rgb(233, 233, 233);
    box-shadow: inset 3px 4px 5px rgb(238, 238, 238);
}

.main-profile-cover:before {
    background: linear-gradient(135deg, #962B7B 0%, #6a11cb 100%) !important;
}

/* Apply to your main table class */
.thm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    /* min-width: 800px; */
    border: 2px solid #962B7B;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    vertical-align: middle;
    text-align: center;
    /* margin-bottom:4rem; */
}

.thm-table thead th {
    background-color: #ffe9fa;
    color: #3c096c;
    text-align: left;
    padding: 14px 18px;
    font-weight: 600;
    border: 1px solid #ffc9f1;
    border-bottom: 2px solid #962B7B;
    white-space: nowrap;
    text-align: center;
}

.thm-table tbody td {
    padding: 14px 18px;
    white-space: nowrap;
    border: 1px solid #ffc9f1;
    background-color: #fff;
    /* box-shadow:inset 1px 1px 10px rgb(248, 247, 247); */
}

.thm-table tbody tr:hover {
    background-color: #f7f2ff;
    transition: background-color 0.2s ease;
}

/* Scrollbar for table container when DataTables applies overflow */
.dataTables_scrollBody::-webkit-scrollbar {
    height: 10px;
}

.dataTables_scrollBody::-webkit-scrollbar-track {
    background: #f0e9ff;
    border-radius: 10px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb {
    background-color: #962B7B;
    border-radius: 10px;
    border: 2px solid #f0e9ff;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb:hover {
    background-color: #962B7B;
}

/* Firefox support */
.dataTables_scrollBody {
    scrollbar-width: thin;
    scrollbar-color: #962B7B #f0e9ff;
}

/* save button design  */
.savebtn {
  background: linear-gradient(to right, #962B7B, #6a11cb);
  color: white;
  font-family: inherit;
  padding: 0.35em;
  padding-left: 0.8em;
  font-size: 15px;
  font-weight: 500;
  border-radius: 0.9em;
  border: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  height: 2.5em;
  padding-right: 2.8em;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.savebtn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #6a11cb, #962B7B);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: 0.9em;
}

.savebtn .saveicon {
  background: white;
  margin-left: 1em;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2em;
  width: 2em;
  border-radius: 0.7em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  right: 0.3em;
  transition: all 0.3s;
}

.savebtn .saveicon i {
  color: #962B7B;
  font-size: 1em;
  transition: transform 0.3s;
}

/* Hover Effects */
.savebtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.351);
}

.savebtn:hover::before {
  opacity: 1;
}

.savebtn:hover .saveicon {
  width: calc(100% - 0.6em);
}

.savebtn:hover .saveicon i {
  transform: translateX(0.1em);
}

/* Active (Click) Effects */
.savebtn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.gradient-button:active .saveicon {
  transform: scale(0.95);
}


/* view , commonn , thm btn  */
.thm-btn{
  --color-start: #962B7B;
  --color-end: #6a11cb;
  
  font-family: inherit;
  display: inline-block;
  width: auto;
  padding:5px 8px;
  /* margin: 20px; */
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid var(--color-start);
  transition: color 0.5s;
  z-index: 1;
  font-size: 15px;
  border-radius: 6px;
  font-weight: 500;
  color: var(--color-start);
  background: transparent;
}

.thm-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  background: linear-gradient(135deg, var(--color-start), var(--color-end));
  height: 150px;
  width: 200px;
  border-radius: 50%;
  top: 100%;
  left: 100%;
  transition: all 0.7s;
}

.thm-btn:hover {
  color: #fff;
  border-color: transparent;
}

.thm-btn:hover::before {
  top: -30px;
  left: -30px;
}

.thm-btn:active::before {
  background: linear-gradient(135deg, #3a0ca3, #1a4fc4);
  transition: background 0s;
}

.downloadbtn {
    display: inline-block; /* Keep it inline in layout */
    position: relative;
    width: 85px;
    height: 35px;
    padding: 6px 9px;
    background: linear-gradient(45deg, #ff4500);
    border: 2px solid #ff4500;
    border-radius: 0.3rem;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.downloadbtntext,
.downloadbtnicon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #fff;
}

/* Text centered vertically */
.downloadbtntext {
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

/* Icon starts above and hidden */
.downloadbtnicon {
    top: 0%;
    transform: translate(-50%, -150%) rotate(30deg);
    opacity: 0;
    width: 20px;
    height: 20px;
}

/* Hover effects */
.downloadbtn:hover {
    background: linear-gradient(45deg, #ff4500, #ff0000);
}

.downloadbtn:hover .downloadbtnicon {
    top: 50%;
    transform: translate(-50%, -40%) rotate(0deg);
    opacity: 1;
}

.downloadbtn:hover .downloadbtntext {
    transform: translate(-50%, 150%);
    opacity: 0;
}

.downloadbtn:active {
    transform: scale(0.97);
}

.delete-btn {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background-color: red;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.delete-btn::before {
    content: "";
    width: 9px;
    height: 13px;
    background: url("data:image/svg+xml;utf8,<svg width='33' height='39' xmlns='http://www.w3.org/2000/svg'><mask id='path-1' fill='white'><path d='M0 0H33V35C33 37.2091 31.2091 39 29 39H4C1.79086 39 0 37.2091 0 35V0Z'/></mask><path d='M0 0H33H0ZM37 35C37 39.4183 33.4183 43 29 43H4C-0.418278 43 -4 39.4183 -4 35H4H29H37ZM4 43C-0.418278 43 -4 39.4183 -4 35V0H4V35V43ZM37 0V35C37 39.4183 33.4183 43 29 43V35V0H37Z' fill='white' mask='url(%23path-1)'/><path d='M12 6L12 29' stroke='white' stroke-width='4'/><path d='M21 6V29' stroke='white' stroke-width='4'/></svg>")
        no-repeat center / contain;
    z-index: 1;
    transform: translateY(1px);
}

.delete-btn::after {
    content: "";
    position: absolute;
    top: 7px;
    width: 12px;
    height: 5px;
    background: url("data:image/svg+xml;utf8,<svg width='39' height='7' xmlns='http://www.w3.org/2000/svg'><line y1='5' x2='39' y2='5' stroke='white' stroke-width='4'/><line x1='12' y1='1.5' x2='26.0357' y2='1.5' stroke='white' stroke-width='3'/></svg>")
        no-repeat center / contain;
    transform-origin: right center;
    transition: transform 0.3s ease;
    z-index: 2;
}
.delete-btn .garbage {
    position: absolute;
    top: 8px;
    left: 20%;
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transform: translateX(-50%);
    z-index: 0;
}

.delete-btn:hover {
    background-color: #ff0000;
}
.delete-btn:hover::after {
    animation: lidOpenClose 1.5s ease forwards;
}
.delete-btn:hover .garbage {
    animation: garbageDrop 0.6s ease forwards 0.4s;
}

.delete-btn:active {
    transform: scale(0.9);
}

/* Animations */
@keyframes lidOpenClose {
    0% {
        transform: rotate(0deg);
    }
    30% {
        transform: rotate(45deg);
    }
    70% {
        transform: rotate(45deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes garbageDrop {
    0% {
        top: 2px;
        left: 35%;
        opacity: 1;
    }
    100% {
        top: 26px;
        left: 60%;
        opacity: 0;
    }
}

.pencil-btn {
    position: relative;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: #f3f3f3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    overflow: hidden;
}

/* Pencil icon */
.pencil-btn::before {
    content: "";
    width: 15px;
    height: 15px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%23000" viewBox="0 0 24 24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM21.71 6.04a1.003 1.003 0 0 0 0-1.42l-2.34-2.34a1.003 1.003 0 0 0-1.42 0l-1.83 1.83 3.75 3.75 1.84-1.82z"/></svg>')
        no-repeat center / contain;
    display: block;
    z-index: 2;
    position: relative;
    transform-origin: bottom right; /* for tilt effect */
    transition: transform 0.3s ease;
}

/* Drawing line */
.pencil-btn::after {
    content: "";
    position: absolute;
    height: 2px;
    background: #000;
    top: 82%;
    left: calc(50% + -6px);
    transform: translateY(-50%);
    width: 0px;
    opacity: 0;
}

/* Hover effect */
.pencil-btn:hover {
    background: #e2e2e2;
}

.pencil-btn:hover::before {
    transform: rotate(-20deg); /* Tilt forward */
}

.pencil-btn:hover::after {
    animation: drawLine 0.8s forwards;
}

@keyframes drawLine {
    0% {
        width: 0;
        opacity: 1;
    }
    100% {
        width: 35px;
        opacity: 1;
    }
}

/* custom alert message  */
.custom-alert {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(-30px) scale(0.95);
    z-index: 9999;
    min-width: 320px;
    width: fit-content;
    max-width: 90%;
    border-left: 5px solid;
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    line-height: normal;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    animation: alertSlideIn 0.5s forwards;
    font-family: "Segoe UI", sans-serif;
}

/* Exit Animation Trigger */
.custom-alert.hide {
    animation: alertFoldOut 0.6s forwards ease-in-out;
}

/* Icon Styling */
.custom-alert .alert-icon {
    font-size: 26px;
    margin-right: 15px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Text Content */
.custom-alert .alert-content {
    flex-grow: 1;
    font-size: 15px;
    line-height: 1.4;
}

/* Close Button */
.custom-alert .alert-close {
    background: none;
    border: none;
    font-size: 30px;
    opacity: 0.6;
    cursor: pointer;
    margin-left: 15px;
    transition: opacity 0.2s;
}
.custom-alert .alert-close:hover {
    opacity: 1;
}

/* Entrance Animation */
@keyframes alertSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-40px) scale(0.95)
            rotateX(-10deg);
    }
    70% {
        opacity: 1;
        transform: translateX(-50%) translateY(5px) scale(1.03) rotateX(2deg);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1) rotateX(0);
    }
}

@keyframes alertFoldOut {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1) rotateX(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px) scale(0.98) rotateX(15deg);
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px) scale(0.9) rotateX(90deg);
    }
}

.custom-alert-success {
    border-left-color: #22c55e;
    color: #166534;
    background-color: #ffffff75;
}
.custom-alert-success .alert-icon {
    color: #22c55e;
}

.custom-alert-danger {
    border-left-color: #ef4444;
    color: #991b1b;
    background-color: #ffffff8c;
}
.custom-alert-danger .alert-icon {
    color: #ef4444;
}

.custom-alert-warning {
    border-left-color: #eab308;
    color: #854d0e;
    background-color: #ffffff8c;
}
.custom-alert-warning .alert-icon {
    color: #eab308;
}

/* custom theme style set end */

/* Base marquee Styles start*/
.marquee-wrapper-container {
    width: 100%;
    margin: 0 auto;
    margin-bottom: 25px;
}
.marquee-container {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    padding: 12px 0;
    border: 1px solid #f0f0f0;
}

.marquee-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #962B7B 0%, #6a11cb 100%);
}

.marquee-content {
    display: flex;
}

.marquee-item {
    display: flex;
    align-items: center;
    padding: 0 25px;
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-icon {
    margin-right: 10px;
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #962B7B;
}

.marquee-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}
.highlight {
    background: linear-gradient(45deg, #ff4444, #ff0000);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 0 8px;
    font-weight: 700;
    animation: colorPulse 6s infinite ease-in-out,
        hightlight-bounce 1.5s infinite ease-in-out;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 8px rgba(203, 17, 17, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@keyframes colorPulse {
    0%,
    100% {
        background: linear-gradient(45deg, #ff4444, #ff0000);
    }
    33% {
        background: linear-gradient(45deg, #ff4500, #ffcc00);
    }
    66% {
        background: linear-gradient(45deg, #ff0000, #ff1493);
    }
}

@keyframes hightlight-bounce {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.05);
    }
}

.divider {
    width: 2px;
    height: 40px;
    background: #eaeaea;
    margin: 0 25px;
    flex-shrink: 0;
}
/* Base marquee Styles end*/

/* Base dashboard  menu card Styles start*/
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    max-width: 1200px;
    width: 100%;
    padding: 0 10px 30px;
}

/* Card Styles - Fixed padding issues */
.dashboard-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 22px 20px 20px 25px; /* Consistent padding */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.dashboard-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    /* Use a CSS variable for the accent color, which will be a gradient */
    background: var(--card-accent-color);
    opacity: 0.85;
}

/* Card Header */
.card-header-dynamic {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.icon-outline-dynamic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    /* Use a CSS variable for the background, which will be a gradient */
    background: var(--card-accent-color);
    color: white;
    font-size: 22px;
    transition: all 0.3s ease;
}

.dashboard-card:hover .icon-outline-dynamic {
    transform: rotate(8deg) scale(1.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-title-dynamic {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 18px;
    letter-spacing: 0.4px;
}

/* Options List */
.options-list-dynamic {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

.option-item-dynamic {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: #555;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
}

.option-item-dynamic:hover {
    /* Use a CSS variable for the accent color */
    color: var(--card-accent-start-color);
    padding-left: 18px;
    background: rgba(0, 0, 0, 0.04);
    transform: translateX(5px);
}

.arrow-icon-dynamic {
    font-size: 13px;
    margin-left: 8px;
    color: #bbb;
    transition: all 0.3s ease;
}

.option-item-dynamic:hover .arrow-icon-dynamic {
    color: var(--card-accent-start-color);
    transform: translateX(5px);
}
/* Base dashboard  menu card Styles end*/

/* Base welcome dashboard card Styles start*/
.dsh-welcome-card {
    position: relative;
    width: 100%;
    padding: 50px;
    background: linear-gradient(135deg, #962B7B, #6a11cb);
    border-radius: 20px;
    box-shadow: 0 5px 2px -12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    color: white;
    text-align: center;
    z-index: 1;
    margin-bottom: 1.5rem;
    animation: fadeTop 1s ease-out forwards;
}

.dsh-welcome-title {
    font-size: 42px;
    margin: 0 0 20px 0;
    position: relative;
    display: inline-block;
    animation: fadeTop 1s ease-out forwards;
    font-family: "Merriweather", serif;
    color: #fff;
}

.dsh-welcome-title::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    animation: underline 2s infinite ease-in-out;
}
.dsh-welcome-card p {
    font-size: 20px;
    margin-top: 1.5rem;
    line-height: 20px;
    animation: fadeTop 1s ease-out forwards;
}
.circle-particles-sm {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.circle-particle-sm {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: circle-float-sm 15s infinite linear;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    animation: zoom-circle 8s infinite alternate;
    z-index: -1;
}

@keyframes underline {
    0% {
        width: 80px;
    }
    50% {
        width: 120px;
    }
    100% {
        width: 80px;
    }
}

@keyframes fadeTop {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes circle-float-sm {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

@keyframes zoom-circle {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(0.8);
        opacity: 0.1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}
/* Base welcome dashboard card Styles end*/

/* Base back-btn Styles start*/
.back-btn {
    width: auto !;
    height: 2.2rem !important;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    border: none;
    background: white;
    color: black;
    text-align: center;
    padding-right: 15px;
    padding-left: 2.3rem;
    display: block;
}

.back-btn .icon-box {
    position: absolute;
    left: 0.25rem;
    top: 0.25rem;
    height: 1.7rem;
    width: 1.7rem;
    background-color: #6a11cb;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    z-index: 10;
    padding: 10px;
}

.back-btn:hover .icon-box {
    width: 92%;
}
.back-btn:focus .icon-box i {
    margin-right: 6rem;
}
.back-btn .icon-box i {
    color: #fff;
    transition: all ease-in 0.3s;
}
.back-btn .back-text {
    position: relative;
    top: 0.35rem;
}
/* Base back-btn Style end*/

/* Base toggle-switch Styles start*/
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
}

/* Hide default checkbox */
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider track */
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: red;
    transition: 0.4s;
    border-radius: 34px;
}

/* Slider knob */
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #2bbb2b;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-slider:after {
    content: "OFF";
    color: #fff;
    display: block;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 67%;
    font-size: 11px;
    font-family: Arial, sans-serif;
}

input:checked + .toggle-slider:after {
    content: "ON";
    left: 32%;
    color: #fff;
}

.toggle-slider.active {
    background-color: #2bbb2b;
}

.toggle-slider.inactive {
    background-color: red;
}
/* Base toggle-switch Styles end*/

/* lesson plan card style start  */
    @keyframes lessoncardfadeInUp {
        from {
            opacity: 0;
            transform: translateY(25px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes lessoncardheaderGlow {
        0% {
            background-position: 0% 50%;
        }

        100% {
            background-position: 100% 50%;
        }
    }


    /* Card Container */
    .lesson-plan-card {
        background: #fff;
        border-radius: 18px;
        overflow: hidden;
        animation: lessoncardfadeInUp 0.7s ease forwards;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
    }

    .lesson-plan-card:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.2);
    }

    /* Gradient Header */
    .lesson-plan-header {
        background: linear-gradient(270deg, #962B7B, #6a11cb, #a162e3ff, #598fecff);
        background-size: 400% 400%;
        animation: lessoncardheaderGlow 6s ease infinite;
        padding: 15px;
        color: white;
        text-align: center;
        font-weight: bold;
        font-size: 1.2rem;
        position: relative;
    }

    

    .lesson-plan-date {
        font-size: 0.9rem;
        opacity: 0.9;
        display: block;
        margin-top: 5px;
    }

    /* Card Body */
    .lesson-plan-body {
        padding: 15px;
        display: flex;
        flex-direction: column;
        height: 23rem;
        overflow-y: auto;
    }

    /* Lesson Details */
    .lesson-detail {
        background: #f9f9f9;
        padding: 8px 10px;
        border-radius: 10px;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
        border-left: 4px solid #a16adcff;
        transition: all 0.3s ease;
    }

    .lesson-detail i {
        color: #a16adcff;
        font-size: 1.1rem;
        min-width: 20px;
    }

    .lesson-detail:hover {
        background: #eef8ff;
        border-left-color: #7aa6f1ff;
        transform: translateX(5px);
    }

    /* Not Scheduled */
    .lesson-plan-not-scheduled{
        color: #e74c3c;
        font-weight: bold;
        text-align: center;
        margin-top: 20px;
        font-size: 1rem;
    }

      .lesson-plan-date-range-badge {
        display: inline-block;
        background: linear-gradient(90deg, #962B7B, #6a11cb);
        padding: 8px 20px;
        border-radius: 50px;
        color: white;
        font-weight: bold;
        font-size: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        letter-spacing: 0.5px;
        position: relative;
        overflow: hidden;
    }
    .lesson-plan-date-range-badge::after {
        content: "";
        position: absolute;
        top: 0;
        left: -50%;
        width: 200%;
        height: 100%;
        background: rgba(255,255,255,0.15);
        transform: skewX(-20deg);
        animation: shinebadge 3s infinite;
    }
    @keyframes shinebadge {
        0% { left: -50%; }
        50% { left: 100%; }
        100% { left: 100%; }
    }

/* lesson plan card style end  */

/* script message css  */
.error-msg {
        color: #ff0000;
        font-size: 13px;
        margin-top: 3px;
        display: none;
        font-weight:600;
    }
    .success-msg {
        color: #008000;
        font-size: 13px;
        margin-top: 3px;
        display: none;
        font-weight:600;
    }
    input.error, select.error, textarea.error {
        border-color: red !important;
    }

 .inv-dsh-card {
        border: none;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        margin-bottom: 1.5rem;
        overflow: hidden;
        position: relative;
    }

    .inv-dsh-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    }

    .inv-dsh-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
    }

    .inv-dsh-card-available::before {
        background: linear-gradient(90deg, #28a745, #20c997);
    }

    .inv-dsh-card-issued::before {
        background: linear-gradient(90deg, #007bff, #17a2b8);
    }

    .inv-dsh-card-damaged::before {
        background: linear-gradient(90deg, #dc3545, #e83e8c);
    }

    .inv-dsh-card-repairing::before {
        background: linear-gradient(90deg, #ffc107, #fd7e14);
    }

    .inv-dsh-card-body {
        padding: 1.5rem;
        position: relative;
        z-index: 1;
    }

    .inv-dsh-card-icon {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2.5rem;
        opacity: 0.15;
        transition: all 0.3s ease;
    }

    .inv-dsh-card:hover .inv-dsh-card-icon {
        opacity: 0.25;
        transform: scale(1.1);
    }

    .inv-dsh-card h5 {
        font-size: 0.9rem;
        font-weight: 600;
        color: #6c757d;
        margin-bottom: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .inv-dsh-card h3 {
        font-size: 2.2rem;
        font-weight: 700;
        margin-bottom: 0;
        color: #2c3e50;
    }

    .inv-dsh-card-footer {
        background: transparent;
        border-top: 1px solid rgba(0, 0, 0, 0.03);
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        color: #6c757d;
    }

    .trend-indicator {
        display: inline-flex;
        align-items: center;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 0.2rem 0.5rem;
        border-radius: 20px;
        margin-left: 0.5rem;
    }

    .trend-up {
        background-color: rgba(40, 167, 69, 0.1);
        color: #28a745;
    }

    .trend-down {
        background-color: rgba(220, 53, 69, 0.1);
        color: #dc3545;
    }


    /* Pending Summary Cards */
    .stock-pending-card {
        border: none;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        margin-bottom: 1.5rem;
        overflow: hidden;
        position: relative;
        background: white;
    }

    .stock-pending-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    }

    .stock-pending-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 8px;
        height: 100%;
    }

    .stock-pending-card-purchase::before {
        background: linear-gradient(to bottom, #4dabf7, #339af0);
    }

    .stock-pending-card-approval::before {
        background: linear-gradient(to bottom, #63e6be, #20c997);
    }

    .stock-pending-card-header {
        background: transparent;
        border: none;
        padding: 1.25rem 1.5rem 0;
        font-weight: 600;
        color: #2c3e50;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .stock-pending-card-body {
        padding: 1rem 1.5rem 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .stock-pending-count {
        font-size: 2.5rem;
        font-weight: 700;
        color: #2c3e50;
        line-height: 1;
    }

    .stock-pending-icon {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        color: white;
    }

    .stock-pending-purchase-icon {
        background: linear-gradient(135deg, #4dabf7, #339af0);
        box-shadow: 0 4px 10px rgba(77, 171, 247, 0.4);
    }

    .stock-pending-approval-icon {
        background: linear-gradient(135deg, #63e6be, #20c997);
        box-shadow: 0 4px 10px rgba(99, 230, 190, 0.4);
    }

    .stock-pending-status {
        display: inline-flex;
        align-items: center;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 0.3rem 0.7rem;
        border-radius: 20px;
        margin-top: 0.5rem;
    }

    .status-pending {
        background-color: rgba(255, 193, 7, 0.15);
        color: #e67700;
    }

    .status-approval {
        background-color: rgba(32, 201, 151, 0.15);
        color: #0ca678;
    }

    .trend-indicator {
        display: inline-flex;
        align-items: center;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 0.2rem 0.5rem;
        border-radius: 20px;
        margin-left: 0.5rem;
    }

    .trend-up {
        background-color: rgba(40, 167, 69, 0.1);
        color: #28a745;
    }

    .trend-down {
        background-color: rgba(220, 53, 69, 0.1);
        color: #dc3545;
    }

.card-table-height{
    height:15rem;
    overflow:auto;
}

.tbl-scroll-controls{
    position: fixed;
    top: 200px;
    right: 50px;
    z-index:2;
}

  .tbl-scroll-btn {
            min-width: 42px;
            padding: 8px 12px;
            font-size: 16px;
            transition: 0.2s;
            background:#fff ;
            color:#000;
        }

        /* Active scrolling button */
        .tbl-scroll-active {
            background-color: #dc3545 !important;
            color: white !important;
            border-color: #dc3545 !important;
        }

        /* Disabled button styling (light green) */
        .tbl-scroll-disabled {
            background-color: #dfdfdf !important;
            border-color: #000000 !important;
            color: #000000 !important;
            cursor: not-allowed !important;
            opacity:1 !important;
        }

    /* Responsive adjustments */
    @media (max-width: 768px) {

        .inv-dsh-card h3,
        .stock-pending-count {
            font-size: 1.8rem;
        }

        .inv-dsh-card-icon {
            font-size: 2rem;
        }

        .stock-pending-icon {
            width: 60px;
            height: 60px;
            font-size: 1.5rem;
        }

        .inv-dsh-card h3 {
            font-size: 1.8rem;
        }

        .inv-dsh-card-icon {
            font-size: 2rem;
        }
    }

    @media (max-width: 576px) {
        .stock-pending-card-body {
            flex-direction: column;
            text-align: center;
            gap: 1rem;
        }

        .stock-pending-icon {
            order: -1;
        }
    }


/* media queries Responsive adjustments */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 18px;
    }
}
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .marquee-text {
        font-size: 1.05rem;
    }

    .divider {
        margin: 0 15px;
    }

    .dashboard-card {
        padding: 20px 18px 18px 23px;
    }

    .icon-outline-dynamic {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .dsh-welcome-card {
        padding: 30px;
    }
    .dsh-welcome-title {
        font-size: 30px;
    }
    .dsh-welcome-card p {
        line-height: 25px;
        font-size: 17px;
    }

    .dashboard-card {
        padding: 18px 16px 16px 21px;
        border-radius: 14px;
    }

    .marquee-container {
        padding: 10px 0;
    }

    .marquee-item {
        padding: 0 18px;
    }

    .marquee-text {
        font-size: 0.95rem;
    }

    .divider {
        margin: 0 12px;
        height: 20px;
    }

    .option-item-dynamic {
        padding: 9px 12px;
        font-size: 12.5px;
    }
}
