/* CertiProve plugin base frontend CSS. This file is required for WordPress inline styles to work. */

:root {
    --tw-bg-opacity: 1;
    --tw-text-opacity: 1;
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-ring-inset: ;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / .5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --certify-primary: #FA3C00;
    --certify-primary-light: #FA3C001a;
    --certify-primary-border: #FA3C004d;
    --certify-text: #6E3C32;
    --certify-text-light: #ffffff;
    --certify-bg: #ffffff;
    --certify-surface: #f9fafb;
}

.cf-search {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
    line-height: inherit;
    font-feature-settings: "cv02","cv03","cv04","cv11";
    font-variant-numeric: normal;
    box-sizing: border-box;
	/* box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); */
    /* border-style: solid; */
    font-family: Inter, system-ui, -apple-system, sans-serif;
    max-width: 500px !important;
    margin: 15px auto 15px auto !important;
    /* background: var(--certify-bg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;  */
	align-content: normal !important;
	overflow: hidden; /* <== IMPORTANT */
    /* border: 1px solid var(--certify-primary-border); */
    /* border-radius: 0.5rem; */
    padding: 0 !important;
    opacity: 1;
    transform: none;
}
.cf-search form {
    display: flex;
    width: 100%;
    gap: 0.5rem !important;
    align-items: center;
}
.cf-field {
    box-sizing: border-box !important;
    font-family: Inter, system-ui, -apple-system, sans-serif !important;
    display: inline-block !important;
    border: 1px solid #FFFFFF !important;
    margin-bottom: 0px !important;
	margin-right: 0.05rem !important; /* only here */
    width: 80%;
    padding: 0.75rem 0.75rem !important;
    height: 33px !important;
    border-radius: 0.5rem !important;
    background: #FFFFFF !important;
    color: var(--certify-text);
    font-size: 12px;
	margin-top: 1rem !important;
}
.cf-field:focus {
    outline: none;
    border-color: var(--certify-primary);
    box-shadow: 0 0 0 3px var(--certify-primary-light);
}
.cf-btn {
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, sans-serif !important;
    display: inline-block;
    border: 1px solid var(--certify-primary-border) !important;
    height: 33px !important;
    width: 100px !important;
    background: var(--certify-primary) !important;
    color: #fff !important;
    min-height: 30px;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    cursor: pointer;
    text-transform: none;     /* it was uppercase; */
    letter-spacing: 0.5px;
	margin-top: 1rem !important;
}

.cf-btn:hover {
    background: var(--certify-primary-light) !important;
	color: var(--certify-primary) !important;
    box-shadow: 0 0 0 0 var(--certify-primary-light);
}

.cf-loader {
    display: none;
    text-align: center;
    }

.cf-spinner {
    border: 3px solid #FFFFFF;
    border-top: 3px solid var(--certify-text);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    }
    @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
    }

.loader {
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    max-width: 500px;
    margin: auto auto 15px auto;
    color: #fff;
    background-color: var(--certify-text);
    position: relative;
    border: 1px solid var(--certify-text);
    border-radius: 0.5rem;
    font-size: 12px !important;
    font-weight: 600;
    display: flex; /* Use flexbox */
    align-items: center; /* Vertically center the items */
    justify-content: flex-start; /* or center to align items to the center */
	padding: 0 12px;
    height: auto; /* Automatically adjusts height based on content */
    min-height: 33px; /* Ensures a minimum height */
}

.success, .expired, .danger {
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    max-width: 500px;
    margin: auto;
    position: relative;
    border-radius: 0.5rem;
    font-size: 12px !important;
    font-weight: 600;
    display: flex; /* Use flexbox */
    align-items: center; /* Vertically center the items */
    justify-content: flex-start; /* or center to align items to the center */
	padding: 0 12px;
    *height: auto; /* Automatically adjusts height based on content */
    min-height: 33px; /* Ensures a minimum height */
}

.success {
 	color:  #fff;
    background-color: #008000;
	border: 1px solid #0080004d;
}

.expired {
    color: #FFFFFF;
    background-color: #FF0000;
    border: 1px solid #FF00004d;
}

.danger {
    color: #000000;
    background-color: #fff000;
    border: 1px solid #FFF0004d;
}



@media screen and ( max-width: 500px ){
    .cf-search{ width: 100%; }
}
@media screen and ( max-width: 500px ){
    .cf-search form { display: initial; }
    .cf-field, .cf-btn {
        display: block !important;
        width: 100%;
    }
}
.cf-result-card {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
    line-height: inherit;
    font-feature-settings: "cv02","cv03","cv04","cv11";
    font-variant-numeric: normal;
    box-sizing: border-box;
    max-width: 498px;
    margin: 15px auto 15px auto;
	/* background: var(--certify-bg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;  */
	align-content: normal;
	overflow: hidden; /* <== IMPORTANT */
    border-radius: 0.5rem;
    border: 1px solid none; /* var(--certify-primary-border); */
    background-color: #fff;     
    /* box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); */
    padding: 0.75rem 5%; /* 1rem top/bottom, 5% left/right */
	font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 12px;
    color: var(--certify-text);
    opacity: 1;
    transform: none;
	/* clip-path: path("M0,0 H498 V1000 H0 Z M10,10 m-5,0 a5,5 0 1,0 10,0 a5,5 0 1,0 -10,0"); if you wan to add corner circle */
}

/* Glow Start */
.glow-wrapper {
  	position: relative;
  	max-width: 498px;
  	border-radius: 0.55rem;
  	padding: 1px;
  	margin: 15px auto;
  	overflow: hidden; /* to clip the rotating background */
	justify-content: center;
}

.glow-wrapper::before {
  	content: '';
  	position: absolute;
  	top: -75%;
  	left: -75%;
  	width: 250%;
  	height: 250%;
  	background: conic-gradient(
    			from 0deg,
    			#FFFFFF,
				#FFFFFF,		
				#FA3C004d,
				#FFFFFF,
    			#FFFFFF,
				#FA3C004d,
		    	#FFFFFF 100%
  				);
  	animation: spinConic 3s linear infinite;
}

@keyframes spinConic {
  	from {
    	transform: rotate(0deg);
  	}
  	to {
    	transform: rotate(360deg);
  	}
}

.glow-wrapper .cf-result-card {
  	position: relative; /*remove to temporarily see the Conical colors  */
  	margin: auto;
}
/* Glow End */

.cf-result-card .cf-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 7.5px 0;
    border-bottom: 1px solid var(--certify-primary-border);
}
.cf-result-card .cf-row:last-child {
    border-bottom: none;
}

/*results labels*/
.cf-result-card .cf-label { 
    flex: 1 1 180px; /* Allow shrinking and growing, base width 180px */
    min-width: 140px; /* Prevent getting too small */
    max-width: 10%; /* Prevent label from taking too much space */
    font-weight: 600;
    color: var(--certify-text);
    text-align: left;
    letter-spacing: 0.5px;
    font-family: Inter, system-ui, -apple-system, sans-serif;
}

.cf-result-card .cf-value {
    flex: 1;
    color: var(--certify-text);
    text-align: left;
    font-weight: 600;
	color: #000000; /*results values colors except date which is below class .date-field */
	background: #ffffff7d;
    word-break: break-word;
    position: relative;
    display: flex;
    align-items: center;
	font-family: monospace !important;
	font-size: 12px;
	padding: 2px 3px 1px 3px;
}

/* Style for the QR code clickable image inside the .cf-result-card */
.qr-code-img {
	cursor: pointer; /* Make it clear the image is clickable */
    transition: opacity 0.3s ease;
	background-color: #ffffff7d !important;
	position: relative;
	display: block;
	padding: 4px;
}

/* Dimming effect on hover */
.qr-code-img:hover {
	transform: scale(1.1); /* Slightly scales the image */
	box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Toast Copied! */
.toast-inline {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 8px;
  background: white;
  color: black;
  padding: 2px 6px 4px 6px;
  border-top: 2px solid black;    /* thick top border */
  border-left: 2px solid black;   /* thick left border */
  border-bottom: 1px solid black; /* thin bottom border */
  border-right: 1px solid black;  /* thin right border */
  border-radius: 0;
  white-space: nowrap;
  opacity: 0; 
  pointer-events: none;
  transition: opacity 0.3s ease; 
  font-size: 12px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  align-items: center;
}

.rs-heading {
	text-align: center;
	font-family: Inter, system-ui, -apple-system, sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #000000;
}

.search-table {
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    border-spacing: 0 !important;
    border-top: none !important;
    border-right: none !important;
    border-left: none !important;
    min-width: 100%;
    border-bottom: 1px solid var(--certify-primary-border);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.search-table thead {
    background-color: transparent;
}
.search-table thead tr th {
    background-color: var(--certify-primary) !important;
    color: #fff !important;
    text-transform: uppercase;
    text-align: center;
    padding: 1rem 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: Inter, system-ui, -apple-system, sans-serif;
}
.search-table tbody tr td {
    border-right: 1px solid var(--certify-primary-border);
    padding: 1rem 0.75rem;
    text-align: center;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    background: var(--certify-bg);
}
.search-table tbody tr:nth-child(even) td {
    background: var(--certify-surface);
}
.br-0 {
    border-right: none !important
}
body {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
    line-height: inherit;
    font-feature-settings: "cv02","cv03","cv04","cv11";
    font-variant-numeric: normal;
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    color: var(--certify-text);
    background-color: var(--certify-surface);
}

.btlr-10{ border-top-left-radius: 10px; }
.btrr-10{ border-top-right-radius: 10px; }
.bl-1{ border-left: 1px solid #ddd; }

/* Special styling for date display */
.date-field {
    font-weight: 600;
    color: #000000; /* date value color */  
	font-family: monospace !important;
}

/* jQuery UI Datepicker Custom Styles - Admin Only */

.ui-datepicker {
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, sans-serif !important;
  background: var(--certify-bg) !important;
  border: 1px solid var(--certify-primary-border) !important;
  border-radius: 6px !important;
  box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 5) !important;
  z-index: 9999 !important;
  padding: 0px !important;
  width: 236.5px; /* Optional: limit width for compact layout */
  justify-content: center !important; 
}

.ui-datepicker.ui-datepicker-modal {
  z-index: 100000 !important;
  position: fixed !important;
}

.ui-datepicker .ui-datepicker-header {
  background: var(--certify-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 5px 5px 0 0 !important;
  padding: 5px !important;
  font-weight: 600 !important;
  position: relative !important;
}

.ui-datepicker .ui-datepicker-title {
  color: #fff !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  font-size: 12px !important;
}

/* Fix: Next/Prev buttons properly styled and positioned */
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  cursor: pointer !important;
  border-radius: 5px !important;
  font-size: 8px !important;
  z-index: 2 !important;
  text-decoration: none !important; /* Prevent underline */
}

.ui-datepicker .ui-datepicker-prev {
  left: 10px !important;
}

.ui-datepicker .ui-datepicker-next {
  right: 10px !important;
}

/* Optional: Use simple arrow characters instead of missing icons */
.ui-datepicker .ui-datepicker-prev::after {
  content: "◀";
}

.ui-datepicker .ui-datepicker-next::after {
  content: "▶";
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

.ui-datepicker table {
  width: 100% !important;
  margin: 0px !important;
  border-collapse: collapse !important;
}

.ui-datepicker th {
  background: #70747c !important; /* Week Days S, M, T, W, T, F, S background */
  padding: 5px !important;
  font-weight: 600 !important;
  color: var(--certify-text-light) !important;
  font-size: 12px !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

.ui-datepicker td {
  padding: 0 !important;
  border: none !important;
}

.ui-datepicker td a {
  display: block !important;
  padding: 5px !important;
  text-align: center !important;
  text-decoration: none !important;
  color: var(--certify-text) !important;
  border-radius: 5px !important;
  margin: 2px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
}

.ui-datepicker td a:hover {
  background: var(--certify-primary) !important;
  color: #fff !important;
}

.ui-datepicker .ui-state-active {              /* Entered Date */
  background: var(--certify-primary) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.ui-datepicker .ui-state-highlight {    /* Current date highlight */
  background: #70747c !important;
  color: #ffffff !important;
}

.ui-datepicker .ui-datepicker-buttonpane {
  background: var(--certify-surface) !important;
  border-top: 1px solid var(--certify-primary-border) !important;
  text-align: center !important;
  padding: 5px !important;
  border-radius: 0 0 5px 5px !important;
}

.ui-datepicker .ui-datepicker-buttonpane button {
  margin: 0 5px !important;
  padding: 5px 10px !important;
  cursor: pointer !important;
  color: #fff !important;
  border: none !important;
  border-radius: 5px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.ui-datepicker .ui-datepicker-buttonpane button:hover {
  background: #16a34a !important;
}

.ui-datepicker .ui-datepicker-calendar {
  background-color: none !important;
}

.ui-datepicker .ui-datepicker-month
{
  font-size: 12px !important;
}

.ui-datepicker .ui-datepicker-year
{
  font-size: 12px !important;
}


/* Date input field styling */
input[type="text"].hasDatepicker {
    box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, sans-serif !important;
    padding-right: 48px !important;
    cursor: pointer !important;
    border: 1px solid var(--certify-primary-border) !important;
    border-radius: 5px !important;
}

input[type="text"].hasDatepicker:focus {
    outline: none !important;
    border-color: var(--certify-primary) !important;
    box-shadow: 0 0 0 3px var(--certify-primary-light) !important;
}

/* Fix: Shift the default "Choose File" button to the right */
.form-control {
  padding-left: 10px !important; 
}