/* DeeBesto Internship Applications - front-end styling. No inline styles anywhere in the plugin. */

.dbap-wrap {
	padding: 24px 16px;
}

.dbap-container {
	max-width: 960px;
	margin: 0 auto;
}

.dbap-card {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 24px;
}

.dbap-mb-24 {
	margin-bottom: 24px;
}

.dbap-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

.dbap-hero h1 {
	margin: 0;
	font-size: 1.5rem;
}

.dbap-card-title {
	font-weight: 600;
	font-size: 1.1rem;
	margin: 0 0 8px;
}

.dbap-card-sub {
	color: #555;
	margin: 0 0 16px;
}

.dbap-btn {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	border: 1px solid transparent;
	cursor: pointer;
}

.dbap-btn-primary {
	background: #1a73e8;
	color: #fff;
}

.dbap-btn-secondary {
	background: #f1f3f4;
	color: #202124;
	border-color: #dadce0;
}

.dbap-notice {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
}

.dbap-notice-success {
	background: #e6f4ea;
	color: #137333;
}

.dbap-notice-error {
	background: #fce8e6;
	color: #c5221f;
}

.dbap-notice-info {
	background: #e8f0fe;
	color: #1967d2;
}

.dbap-empty-state {
	text-align: center;
	padding: 40px 16px;
	color: #666;
}

.dbap-empty-icon {
	font-size: 2rem;
	margin-bottom: 8px;
}

.dbap-internship-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.dbap-internship-header h2 {
	margin: 0;
	font-size: 1.2rem;
}

.dbap-tag {
	background: #f1f3f4;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 0.8rem;
}

.dbap-internship-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	color: #555;
	font-size: 0.85rem;
	margin: 8px 0;
}

.dbap-internship-description {
	color: #333;
	white-space: pre-line;
}

.dbap-field-hint {
	color: #666;
	font-size: 0.85rem;
}

.dbap-field-label {
	display: block;
	font-weight: 600;
	font-size: 0.85rem;
	margin: 8px 0 4px;
}

.dbap-screening-questions textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 8px;
	border: 1px solid #dadce0;
	border-radius: 6px;
}

.dbap-apply-form {
	margin-top: 12px;
}

.dbap-table-scroll {
	overflow-x: auto;
}

.dbap-application-table {
	width: 100%;
	border-collapse: collapse;
}

.dbap-application-table th,
.dbap-application-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
	font-size: 0.9rem;
}

.dbap-check-tag {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.8rem;
}

.dbap-tag-done {
	background: #e6f4ea;
	color: #137333;
}

.dbap-tag-pending {
	background: #fef7e0;
	color: #b06000;
}

.dbap-tag-locked {
	background: #f1f3f4;
	color: #555;
}

.dbap-inline-action-form {
	display: inline;
	margin: 0;
	padding: 0;
}

.dbap-link-button {
	background: none;
	border: none;
	color: #1a73e8;
	cursor: pointer;
	padding: 0;
	font-size: inherit;
	text-decoration: underline;
}

.dbap-applicant-row {
	border-top: 1px solid #eee;
	padding: 16px 0;
}

.dbap-applicant-row:first-child {
	border-top: none;
	padding-top: 0;
}

.dbap-applicant-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.dbap-applicant-header h3 {
	margin: 0;
	font-size: 1rem;
}

.dbap-answers {
	margin: 8px 0;
}

.dbap-answer-text {
	white-space: pre-line;
	color: #333;
	margin: 0 0 8px;
}

.dbap-stage-form {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.dbap-stage-form select {
	padding: 6px 8px;
	border-radius: 6px;
	border: 1px solid #dadce0;
}

@media ( max-width: 640px ) {
	.dbap-application-table thead {
		display: none;
	}

	.dbap-application-table tr {
		display: block;
		margin-bottom: 12px;
		border: 1px solid #eee;
		border-radius: 6px;
	}

	.dbap-application-table td {
		display: flex;
		justify-content: space-between;
		gap: 8px;
		border-bottom: none;
	}

	.dbap-application-table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: #666;
	}
}
