/**
 * Procurement Notices Widget Styles
 * 
 * Styles for the Procurement Notices widget cards
 * 
 * @package OMSAR
 */

.omsar-procurement-notices-container {
	margin-top: 20px;
}

/* No Results Message */
.omsar-procurement-no-results {
	padding: 2rem 1rem;
	text-align: center;
}

.omsar-procurement-no-results-message {
	font-size: 1rem;
	color: #666;
	margin: 0;
	line-height: 1.6;
}

/* Filter Tabs Styles (Open, Cancelled, Closed — default active: Open) */
.omsar-procurement-filters {
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.omsar-procurement-filter-label {
	font-weight: 600;
	color: #333;
	margin: 0;
}

.omsar-procurement-status-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.omsar-procurement-status-tab {
	cursor: pointer;
	transition: all 0.3s ease;
	outline: none;
	padding: 10px 24px;
	border: 2px solid #7db3e8;
	background-color: transparent;
	background-image: none !important;
	color: #7db3e8;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 600;
}

.omsar-procurement-status-tab.active {
	color: #ffffff;
	background-color: #7db3e8;
	border-color: #7db3e8;
}

.omsar-procurement-status-tab:hover:not(.active) {
	color: #ffffff;
	background-color: #7db3e8;
	border-color: #7db3e8;
}

@media (max-width: 768px) {
	.omsar-procurement-filters {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	
	.omsar-procurement-status-tabs {
		gap: 8px;
	}
	
	.omsar-procurement-status-tab {
		padding: 8px 16px;
		font-size: 13px;
	}
}

/* Load More: hidden when no more pages for current tab */
.omsar-load-more-wrapper--hidden {
	display: none !important;
}

/* Procurement Load More wrapper and button */
.omsar-procurement-load-more-wrapper {
	text-align: center;
	margin-top: 24px;
	margin-bottom: 16px;
}

.omsar-procurement-load-more-btn {
	cursor: pointer;
	transition: all 0.3s ease;
	outline: none;
	padding: 10px 24px;
	border: 2px solid #7db3e8;
	background-color: transparent;
	color: #7db3e8;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 600;
}

.omsar-procurement-load-more-btn:hover:not(:disabled) {
	color: #ffffff;
	background-color: #7db3e8;
	border-color: #7db3e8;
}

.omsar-procurement-load-more-btn.loading,
.omsar-procurement-load-more-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.omsar-procurement-notices-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.omsar-procurement-notices-grid.loading {
	opacity: 0.6;
	pointer-events: none;
	position: relative;
}

.omsar-procurement-notices-grid.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #7db3e8;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: translate(-50%, -50%) rotate(0deg); }
	100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 1024px) {
	.omsar-procurement-notices-grid {
		grid-template-columns: 1fr !important;
		gap: 15px;
	}
}


/* @media (max-width: 768px) {
	.omsar-procurement-notices-grid {
		grid-template-columns: 1fr !important;
		gap: 15px;
	}
} */

.omsar-procurement-card {
	background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
	background-size: cover;
	background-position: center bottom;
	background-repeat: no-repeat;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	min-height: 150px;
	display: flex;
	flex-direction: column;
	height: auto;
	cursor: pointer;
}

.omsar-procurement-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Card Link */
.omsar-procurement-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	flex: 1;
	position: relative;
	z-index: 2;
	cursor: pointer;
	outline: none;
}

.omsar-procurement-card-link:hover {
	text-decoration: none;
	color: inherit;
}

.omsar-procurement-card-link:focus {
	outline: none;
}

.omsar-procurement-card-gradient {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(227, 242, 253, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
	pointer-events: none;
	z-index: 1;
}

.omsar-procurement-card-content {
	padding: 10px 10px 10px 10px;
	flex-grow: 0;
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 2;
	height: auto;
	justify-content: flex-start;
}

.omsar-procurement-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 8px;
	gap: 10px;
}

.omsar-procurement-card-title {
	font-weight: 700;
	margin: 0;
	flex: 1;
	line-height: 1.4;
	color: #000000;
	font-size: 18px;
	position: relative;
	z-index: 3;
}

.omsar-procurement-status-badge {
	display: inline-block;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border: 1px solid currentColor;
	white-space: nowrap;
	flex-shrink: 0;
	position: relative;
	z-index: 3;
}

.omsar-procurement-status-badge.omsar-status-open {
	color: #28a745;
	background-color: transparent;
	border: 1px solid #28a745;
	border-radius: 20px;
}

.omsar-procurement-status-badge.omsar-status-closed {
	color: #dc3545;
	background-color: transparent;
	border: 1px solid #dc3545;
	border-radius: 20px;
}

.omsar-procurement-status-badge.omsar-status-cancelled {
	color: #6c757d;
	background-color: transparent;
	border: 1px solid #6c757d;
	border-radius: 20px;
}

.omsar-procurement-card-description {
	margin-top: 5px;
	margin-bottom: 5px;
}

.omsar-procurement-description-info {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #666;
	font-size: 14px;
	position: relative;
	z-index: 3;
}

.omsar-procurement-description-info i {
	font-size: 16px;
	color: #999;
}

.omsar-procurement-card-dates {
	margin-top: 5px;
	margin-bottom: 0;
}

.omsar-procurement-date-range {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	color: #666;
	font-size: 14px;
	position: relative;
	z-index: 3;
}

.omsar-procurement-date-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.omsar-procurement-date-label {
	font-weight: 600;
}

.omsar-procurement-date-value {
	font-weight: 400;
}

.omsar-procurement-date-range i {
	font-size: 16px;
	color: #999;
}

.omsar-procurement-card-button {
	/* margin-top: 15px; */
	padding: 0 12px 12px 12px;
	position: relative;
	z-index: 3;
}

.omsar-procurement-apply-button {
	display: inline-block;
	text-decoration: none;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	border: none;
	position: relative;
	z-index: 4;
}

.omsar-procurement-apply-button:hover {
	text-decoration: none;
}

/* Legacy class (no longer used): keep harmless if present */
.omsar-procurement-apply-button--disabled { opacity: 0.55; cursor: not-allowed; }

/* RTL Support */
/* [dir="rtl"] .omsar-procurement-card-header {
	flex-direction: row-reverse;
} */

/* [dir="rtl"] .omsar-procurement-date-range {
	flex-direction: row-reverse;
} */
