@import "tailwindcss";

@custom-variant dark (&:where(.dark, .dark *));

:root{
   --text-primary: #4f39f6;
}

body {
   @apply bg-gradient-to-br from-indigo-50 via-white to-purple-50 min-h-screen;
}

/* Form Field */
.form-label {
   @apply block text-sm font-medium text-gray-700 mb-1;
}

.form-input {
   @apply w-full border border-gray-300 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500;
}

/* Buttons */
.btn {
   @apply border text-center py-2 px-4 rounded-lg font-medium transition inline-block cursor-pointer;
}

.btn-sm {
	@apply px-2! py-1! text-sm rounded-lg font-medium;
}

.btn-primary {
   @apply bg-indigo-600 hover:bg-indigo-700 text-white;
}

.btn-outline-white {
   @apply  border-gray-300 hover:bg-gray-100 text-gray-800;
}

/* Typography */

p {
   @apply text-gray-500 dark:text-gray-400;
}

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

.text-mute {
   @apply text-sm font-normal text-gray-700 dark:text-gray-400;
}

/* Card */
.card {
   @apply bg-white shadow-lg rounded-2xl;
}

.debit-card-bg {
   background: url(../img/card-bg.svg) no-repeat;
   background-size: cover;
   border-radius: 16px;
}

/* Badges */

.badge {
   @apply inline-flex items-center rounded-full  px-2 py-0.5 text-xs font-medium;
}

.badge-success {
   @apply bg-green-100 text-green-700;
}

.badge-danger {
   @apply bg-red-100 text-red-700;
}

.badge-warning {
   @apply bg-amber-100 text-amber-700;
}

.badge-primary {
   @apply bg-blue-100 text-blue-700;
}

.badge-info {
   @apply bg-purple-100 text-purple-700;
}

/* Credit Card */

.credit-card {
	width: 60%;
	font-family: 'Open Sans', sans-serif;
	height: auto;
	margin: auto;
}

.credit-card-outer {
	fill: #EEE7E7;
}

.credit-card-inner {
	stroke: #1d355e;
}

.current_balance {
	font-size: 16px;
	color: #1c355d;
	font-weight: 600;
}

.current_balance_text {
	font-size: 16px;
	color: #1c355d;
	font-weight: 600;
}

.card_number {
	font-size: 16px;
	font-weight: 600;
	--tw-text-opacity: 1;
	color: rgb(29 53 94 / var(--tw-text-opacity));
}

.cvv_text {
	font-size: 15px;
	color: #1c355d;
	font-weight: 300;
}

.cvv_number {
	font-size: 15px;
	color: #1c355d;
	font-weight: 600;
}

.exp_text {
	font-size: 15px;
	color: #1c355d;
	font-weight: 300;
}

.exp_number {
	font-size: 15px;
	color: #1c355d;
	font-weight: 600;
}

.debit_text {
	font-size: 15px;
	font-weight: 600;
	--tw-text-opacity: 1;
	color: rgb(29 53 94 / var(--tw-text-opacity));
}

.custom-input:focus {
	border-color: #1c355d;
}

.debit-card {
	background-color: transparent;
	color: #1c355d !important;
}

.debit-card-inner {
	border: 2px solid #1c355d;
}

.debit-card-text .text1,
.custom-input {
	color: #1c355d;
}

/* Accordian */

.acc-panel {
	overflow: hidden; /* for height animations */
	will-change: height;
}
.acc-icon { transition: transform .25s ease; }
@media (prefers-reduced-motion: reduce) {
	.acc-icon { transition: none; }
}

.acc-item-title {
	@apply flex w-full items-center justify-between gap-4 p-3 text-left focus:outline-none;
}


.customMultiSelectDropdown { 
   position: relative;
}

.customMultiSelectDropdown .dropdown-btn {
   width: 100%;
   min-height: 42px;
   border: 1px solid #ccc;
   border-radius: 9px;
   padding: 5px 10px;
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 5px;
   cursor: pointer;
   background: #fff;
     font-size: 14px;
}

.customMultiSelectDropdown .pill {
   background: #3b82f6;
   color: white;
   padding: 2px 8px;
   border-radius: 999px;
   font-size: 13px;
   display: flex;
   align-items: center;
   gap: 5px;
}

.customMultiSelectDropdown .pill span {
   cursor: pointer;
   font-weight: bold;
}

.customMultiSelectDropdown .dropdown-content {
   position: absolute;
   top: 100%;
   left: 0;
   width: 100%;
   background: #fff;
   border: 1px solid #ccc;
   border-radius: 6px;
   max-height: 200px;
   overflow-y: auto;
   display: none;
   z-index: 10;
}

.customMultiSelectDropdown .dropdown-content label {
   display: block;
   padding: 5px 10px;
   cursor: pointer;
}

.customMultiSelectDropdown .dropdown-content label:hover {
   background: #f0f0f0;
}


.customMultiSelectDropdownWithoutComponent { 
   position: relative;
}

.customMultiSelectDropdownWithoutComponent .dropdown-btn {
   width: 100%;
   min-height: 42px;
   border: 1px solid #ccc;
   border-radius: 9px;
   padding: 5px 10px;
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 5px;
   cursor: pointer;
   background: #fff;
   font-size: 14px;
}

.customMultiSelectDropdownWithoutComponent .pill {
   background: #3b82f6;
   color: white;
   padding: 2px 8px;
   border-radius: 999px;
   font-size: 12px;
   display: flex;
   align-items: center;
   gap: 5px;
}

.customMultiSelectDropdownWithoutComponent .pill span {
   cursor: pointer;
   font-weight: bold;
}

.customMultiSelectDropdownWithoutComponent .dropdown-content {
   position: absolute;
   top: 100%;
   left: 0;
   width: 100%;
   background: #fff;
   border: 1px solid #ccc;
   border-radius: 6px;
   max-height: 200px;
   overflow-y: auto;
   display: none;
   z-index: 10;
}

.customMultiSelectDropdownWithoutComponent .dropdown-content label {
   display: block;
   padding: 5px 10px;
   cursor: pointer;
}

.customMultiSelectDropdownWithoutComponent .dropdown-content label:hover {
   background: #f0f0f0;
}

.loader-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(255, 255, 255, 0.8);
   z-index: 9999;
   display: flex;
   justify-content: center;
   align-items: center;
}

.spinner {
   width: 50px;
   height: 50px;
   border: 6px solid #ddd;
   border-top-color: #3498db;
   border-radius: 50%;
   animation: spin 1s linear infinite;
}

@keyframes spin {
   to {
      transform: rotate(360deg);
   }
}

/* .border-green-500 {
    border-color: #22c55e;
}

.border-red-500 {
    border-color: #ef4444;
} */

.patient-status-div .tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.patient-status-div .tooltip-wrapper .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #111;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    transition: opacity 0.2s ease-in-out;
}

.patient-status-div .tooltip-wrapper .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #111 transparent transparent transparent;
}


.patient-status-div .tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.blink-dot {
    animation: blink 1s infinite ease-in-out;
}
.text-green { color: var(--green); }
.text-rose { color: var(--rose); }
