/**
 * Ultra Tenders - Frontend Stylesheet
 *
 * @package Ultra_Tenders
 */

.utt-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1e293b;
	box-sizing: border-box;
}

.utt-container * {
	box-sizing: border-box;
}

.utt-header {
	margin-bottom: 28px;
}

.utt-title {
	font-size: 2rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px;
}

.utt-subtitle {
	font-size: 1.05rem;
	color: #64748b;
	margin: 0;
}

/* Search & Filter Bar */
.utt-search-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 32px;
}

.utt-filter-group {
	flex: 1;
	min-width: 180px;
}

.utt-filter-group:first-child {
	flex: 2;
	min-width: 240px;
}

.utt-input,
.utt-select,
.utt-textarea {
	width: 100%;
	padding: 10px 14px;
	font-size: 0.95rem;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #ffffff;
	color: #1e293b;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.utt-input:focus,
.utt-select:focus,
.utt-textarea:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Buttons */
.utt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	text-decoration: none;
	border: none;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.utt-btn-primary {
	background: #0284c7;
	color: #ffffff;
}

.utt-btn-primary:hover {
	background: #0369a1;
	color: #ffffff;
}

.utt-btn-outline {
	background: transparent;
	border: 1px solid #0284c7;
	color: #0284c7;
}

.utt-btn-outline:hover {
	background: #0284c7;
	color: #ffffff;
}

.utt-btn-small {
	padding: 6px 12px;
	font-size: 0.85rem;
}

.utt-btn-block {
	width: 100%;
}

/* Cards & Grid */
.utt-tenders-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 24px;
}

.utt-tender-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.utt-tender-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.utt-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.utt-ref-badge,
.utt-ref-pill {
	font-family: monospace;
	font-size: 0.8rem;
	font-weight: 700;
	background: #f1f5f9;
	color: #475569;
	padding: 4px 8px;
	border-radius: 4px;
}

.utt-stage-badge,
.utt-stage-pill {
	font-size: 0.75rem;
	font-weight: 600;
	background: #dbeafe;
	color: #1e40af;
	padding: 3px 8px;
	border-radius: 12px;
}

.utt-card-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 10px;
	line-height: 1.35;
}

.utt-card-title a {
	color: #0f172a;
	text-decoration: none;
}

.utt-card-title a:hover {
	color: #0284c7;
}

.utt-card-meta {
	font-size: 0.85rem;
	color: #646970;
	margin-bottom: 12px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.utt-card-excerpt {
	font-size: 0.95rem;
	color: #475569;
	line-height: 1.5;
	margin: 0 0 20px;
	flex: 1;
}

.utt-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 16px;
	border-top: 1px solid #f1f5f9;
}

.utt-closing-time {
	font-size: 0.85rem;
	font-weight: 600;
	color: #0369a1;
}

/* Tabs */
.utt-tabs-nav {
	display: flex;
	gap: 8px;
	border-bottom: 2px solid #e2e8f0;
	margin-bottom: 24px;
	overflow-x: auto;
}

.utt-tab-btn {
	padding: 12px 18px;
	font-size: 0.95rem;
	font-weight: 600;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	color: #64748b;
	white-space: nowrap;
}

.utt-tab-btn.active {
	color: #0284c7;
	border-bottom-color: #0284c7;
}

.utt-tab-pane {
	display: none;
}

.utt-tab-pane.active {
	display: block;
}

/* Single Header Key Dates */
.utt-single-key-dates {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin: 20px 0;
}

.utt-date-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 14px 18px;
}

.utt-date-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
}

.utt-date-val {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
	margin-top: 4px;
}

/* Tables */
.utt-table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
}

.utt-table th,
.utt-table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid #e2e8f0;
}

.utt-table th {
	background: #f8fafc;
	font-weight: 600;
	font-size: 0.85rem;
	color: #475569;
	text-transform: uppercase;
}

/* Document & QA List */
.utt-doc-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.utt-doc-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	margin-bottom: 10px;
}

.utt-doc-icon {
	font-size: 1.8rem;
}

.utt-doc-info {
	flex: 1;
}

.utt-doc-info strong {
	display: block;
	color: #0f172a;
}

.utt-doc-info small {
	color: #64748b;
}

/* Alerts */
.utt-alert {
	padding: 14px 18px;
	border-radius: 6px;
	margin-bottom: 18px;
	font-size: 0.95rem;
}

.utt-alert-success {
	background: #dcfce7;
	color: #166534;
}

.utt-alert-error {
	background: #fee2e2;
	color: #991b1b;
}

/* Receipt Card */
.utt-receipt-card {
	background: #ffffff;
	border: 2px solid #22c55e;
	border-radius: 8px;
	padding: 28px;
	text-align: center;
}

.utt-receipt-box {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 16px;
	text-align: left;
	margin: 20px 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
	.utt-search-filter-bar {
		flex-direction: column;
	}
	.utt-filter-group {
		width: 100%;
	}
	.utt-portal-grid {
		grid-template-columns: 1fr !important;
	}
}
