/* COMTJobs Plugin Styles */

/* =========================================================================
   Base wrapper
   ========================================================================= */
.comt-jobs {
	margin: 0 auto;
	font-family: inherit;
	box-sizing: border-box;
}
.comt-jobs *,
.comt-jobs *::before,
.comt-jobs *::after {
	box-sizing: inherit;
}

/* =========================================================================
   Section header
   ========================================================================= */
.comt-jobs-section-header {
	background: #1a5ca8;
	padding: 14px 20px;
	margin: 24px 0 20px;
	border-radius: 4px 4px 0 0;
}
.comt-jobs-section-header h2 {
	color: #fff;
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

/* =========================================================================
   Form fields
   ========================================================================= */
.comt-jobs-field {
	margin-bottom: 18px;
}
.comt-jobs-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: #333;
}
.comt-jobs-field input[type="text"],
.comt-jobs-field input[type="email"],
.comt-jobs-field input[type="tel"],
.comt-jobs-field input[type="password"],
.comt-jobs-field input[type="number"],
.comt-jobs-field input[type="url"],
.comt-jobs-field select,
.comt-jobs-field textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
	transition: border-color 0.2s;
	background: #fff;
}
.comt-jobs-field input:focus,
.comt-jobs-field select:focus,
.comt-jobs-field textarea:focus {
	border-color: #1a5ca8;
	outline: none;
	box-shadow: 0 0 0 2px rgba(26,92,168,0.15);
}
.comt-jobs-field textarea {
	resize: vertical;
	min-height: 100px;
}
.comt-jobs-field--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.comt-jobs-field--checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: normal;
	cursor: pointer;
}
.comt-jobs-field--checkbox input[type="checkbox"] {
	width: auto;
	margin-top: 2px;
	flex-shrink: 0;
}
.comt-jobs-required {
	color: #c00;
}
.comt-jobs-hint {
	display: block;
	font-size: 12px;
	color: #666;
	margin-top: 4px;
}

/* Two-column row */
.comt-jobs-row--two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 600px) {
	.comt-jobs-row--two {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
   Buttons
   ========================================================================= */
.comt-jobs-btn {
	display: inline-block;
	padding: 10px 24px;
	border: none;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, opacity 0.2s;
	text-decoration: none;
	line-height: 1.4;
}
.comt-jobs-btn--primary {
	background: #1a5ca8;
	color: #fff;
}
.comt-jobs-btn--primary:hover {
	background: #154d8e;
	color: #fff;
}
.comt-jobs-btn--danger {
	background: #c0392b;
	color: #fff;
}
.comt-jobs-btn--danger:hover {
	background: #a93226;
	color: #fff;
}
.comt-jobs-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.comt-jobs-actions {
	margin-top: 24px;
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Spinner */
.comt-jobs-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(26,92,168,0.3);
	border-top-color: #1a5ca8;
	border-radius: 50%;
	animation: comt-spin 0.7s linear infinite;
}
@keyframes comt-spin {
	to { transform: rotate(360deg); }
}

/* =========================================================================
   Messages / notices
   ========================================================================= */
.comt-jobs-message {
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-size: 15px;
}
.comt-jobs-message--success {
	background: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}
.comt-jobs-message--error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}
.comt-jobs-message ul {
	margin: 6px 0 0 16px;
	padding: 0;
}
.comt-jobs-notice {
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 15px;
}
.comt-jobs-notice--warning {
	background: #fff3cd;
	border: 1px solid #ffc107;
	color: #856404;
}
.comt-jobs-notice--error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

/* =========================================================================
   Status badges
   ========================================================================= */
.comt-jobs-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.comt-jobs-badge--pending {
	background: #fff3cd;
	color: #856404;
}
.comt-jobs-badge--published {
	background: #d4edda;
	color: #155724;
}
.comt-jobs-badge--rejected {
	background: #f8d7da;
	color: #721c24;
}
.comt-jobs-badge--expired {
	background: #e2e3e5;
	color: #383d41;
}
.comt-jobs-badge--retracted {
	background: #d6d8db;
	color: #383d41;
}
.comt-jobs-badge--free {
	background: #cce5ff;
	color: #004085;
}

/* =========================================================================
   Credits info bar
   ========================================================================= */
.comt-jobs-credits-info {
	background: #eaf0fa;
	border: 1px solid #b8d0f0;
	padding: 10px 16px;
	border-radius: 4px;
	margin-bottom: 20px;
	font-weight: 600;
	color: #1a5ca8;
}
.comt-jobs-credit-notice {
	background: #fff8e1;
	border: 1px solid #ffe082;
	padding: 10px 16px;
	border-radius: 4px;
	margin-bottom: 10px;
	color: #5d4037;
}

/* =========================================================================
   Dashboard
   ========================================================================= */
.comt-jobs-empty {
	color: #666;
	font-style: italic;
	padding: 20px 0;
}

/* Offer rows */
.comt-jobs-offers-list {
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	background: #fff;
}
.comt-jobs-offer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	padding: 14px 18px;
	border-bottom: 1px solid #eee;
}
.comt-jobs-offer-row:last-child {
	border-bottom: none;
}
.comt-jobs-offer-row--expired,
.comt-jobs-offer-row--retracted {
	opacity: 0.85;
}

.comt-jobs-offer-row__main {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	flex: 1 1 320px;
}
.comt-jobs-offer-row__dot {
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #aaa;
}
.comt-jobs-offer-row--published .comt-jobs-offer-row__dot {
	background: #28a745;
}
.comt-jobs-offer-row--pending .comt-jobs-offer-row__dot {
	background: #f0ad4e;
}
.comt-jobs-offer-row--rejected .comt-jobs-offer-row__dot {
	background: #dc3545;
}

.comt-jobs-offer-row__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #eaf1fb;
	color: #1a5ca8;
}
.comt-jobs-offer-row--pending .comt-jobs-offer-row__icon {
	background: #fdf3e3;
	color: #b9770e;
}
.comt-jobs-offer-row--rejected .comt-jobs-offer-row__icon {
	background: #fbeae9;
	color: #c0392b;
}
.comt-jobs-offer-row--expired .comt-jobs-offer-row__icon,
.comt-jobs-offer-row--retracted .comt-jobs-offer-row__icon {
	background: #eee;
	color: #888;
}

.comt-jobs-offer-row__info {
	min-width: 0;
}
.comt-jobs-offer-row__heading {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-width: 0;
}
.comt-jobs-offer-row__ref {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 600;
	color: #888;
}
.comt-jobs-offer-row__title {
	display: block;
	min-width: 0;
	font-size: 15px;
	font-weight: 700;
	color: #1a5ca8;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
a.comt-jobs-offer-row__title:hover {
	text-decoration: underline;
}
.comt-jobs-offer-row__company {
	font-size: 13px;
	color: #333;
}
.comt-jobs-offer-row__date {
	font-size: 12px;
	color: #888;
}
.comt-jobs-offer-row__rejection {
	font-size: 12px;
	color: #c0392b;
	margin-top: 2px;
}

.comt-jobs-offer-row__meta {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}
.comt-jobs-badge--pill {
	white-space: nowrap;
}
.comt-jobs-offer-row__stat {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: #666;
	white-space: nowrap;
}
.comt-jobs-offer-row__stat svg {
	flex-shrink: 0;
}

.comt-jobs-offer-row__menu {
	position: relative;
}
.comt-jobs-offer-row__menu-trigger {
	display: flex;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	color: #666;
	border-radius: 4px;
	line-height: 0;
}
.comt-jobs-offer-row__menu-trigger:hover {
	background: #f0f0f0;
	color: #333;
}
.comt-jobs-offer-row__menu-dropdown {
	display: none;
	position: absolute;
	right: 0;
	top: 100%;
	margin-top: 4px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.12);
	min-width: 180px;
	z-index: 10;
	overflow: hidden;
	text-align: left;
}
.comt-jobs-offer-row__menu-item {
	display: block;
	width: 100%;
	padding: 10px 14px;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #c0392b;
}
.comt-jobs-offer-row__menu-item:hover {
	background: #fbeae9;
}
.comt-jobs-offer-row__menu-hint {
	margin: 0;
	padding: 0 14px 10px;
	font-size: 11px;
	color: #888;
}
.comt-jobs-offer-row__menu-spacer {
	width: 28px;
}

@media (max-width: 600px) {
	.comt-jobs-offer-row__main {
		flex-basis: 100%;
	}
	.comt-jobs-offer-row__meta {
		flex-basis: 100%;
		justify-content: space-between;
	}
}

/* =========================================================================
   Public offer view (category archives / single offer)
   ========================================================================= */
.comt-jobs-offer-detail {
	margin-top: 20px;
}
.comt-jobs-offer-detail__meta {
	list-style: none;
	margin: 0 0 20px;
	padding: 12px 16px;
	background: #f5f8fb;
	border: 1px solid #dbe6f1;
	border-radius: 4px;
	font-size: 14px;
	color: #555;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.comt-jobs-offer-detail__meta li {
	margin: 0;
}
.comt-jobs-offer-detail__section-title {
	font-size: 16px;
	font-weight: 600;
	color: #1a5ca8;
	margin: 16px 0 6px;
}
.comt-jobs-offer-detail__ref {
	margin: 24px 0 0;
	font-size: 12px;
	color: #888;
}

/* =========================================================================
   Login form
   ========================================================================= */
.comt-jobs-login {
	max-width: 440px;
}
.comt-jobs-login-links {
	margin-top: 16px;
	font-size: 14px;
	color: #555;
}

/* =========================================================================
   Admin backoffice
   ========================================================================= */
.comt-jobs-admin .comt-jobs-table th,
.comt-jobs-admin .comt-jobs-table td {
	vertical-align: middle;
}
.comt-jobs-admin .comt-jobs-badge {
	font-size: 11px;
}
.comt-jobs-admin ul.subsubsub {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 16px 0 20px;
	padding: 0;
	border-bottom: 1px solid #dcdcde;
	float: none;
}
.comt-jobs-admin ul.subsubsub li {
	margin: 0;
}
.comt-jobs-admin ul.subsubsub li::after {
	content: none;
}
.comt-jobs-admin ul.subsubsub a {
	display: inline-block;
	padding: 8px 16px;
	color: #50575e;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: 4px 4px 0 0;
}
.comt-jobs-admin ul.subsubsub a:hover {
	color: #1a5ca8;
	background: #f0f6fc;
}
.comt-jobs-admin ul.subsubsub a.current {
	color: #1a5ca8;
	background: #fff;
	border-color: #dcdcde;
	border-bottom: 2px solid #fff;
	margin-bottom: -1px;
}
.comt-jobs-area-drag {
	cursor: move;
	color: #787c82;
	vertical-align: middle;
}
.comt-jobs-area-row.ui-sortable-helper {
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
