/**
 * Styles for internship documents section
 */

.documents-grid-wrapper {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin-bottom: 2rem;
}

@media (min-width: 768px) {
	.documents-grid-wrapper {
		grid-template-columns: repeat(2, 1fr);
	}
}

.document-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
	padding: 1rem;
	background: #f9f9f9;
	border-radius: 4px;
	border: 1px solid #e0e0e0;
	transition: all 0.13s ease;
}

.document-item:hover {
	background: #f0f0f0;
	border-color: #d0d0d0;
}

.document-item input[type='text'] {
	flex: 1;
	padding: 0.5rem;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.document-info {
	color: #666;
	font-size: 0.9em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
}

.document-list {
	margin-bottom: 1rem;
}

.remove-document {
	color: #dc3545;
	background: none;
	border: none;
	padding: 0.25rem;
	cursor: pointer;
	transition: color 0.13s ease;
}

.remove-document:hover {
	color: #bd2130;
}

.existing-documents {
	margin-bottom: 2rem;
}

.existing-documents h4 {
	margin-bottom: 1rem;
	font-size: 1.1em;
	font-weight: 600;
}

.muner-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1rem;
}

.muner-table th,
.muner-table td {
	padding: 0.75rem;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}

.muner-table th {
	background-color: #f5f5f5;
	font-weight: 600;
}

.document-row {
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.document-row.removing {
	opacity: 0;
	transform: translateX(-20px);
}

.document-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: #0073aa;
	text-decoration: none;
	transition: color 0.13s ease;
}

.document-link:hover {
	color: #00a0d2;
}

.document-link.delete-link {
	color: #dc3545;
}

.document-link.delete-link:hover {
	color: #bd2130;
}

/* Media Manager customizations */
.media-modal {
	z-index: 160001; /* Ensure it's above other elements */
}

.media-modal-content {
	min-height: 400px;
}

.media-frame-content {
	bottom: 61px; /* Adjust for footer height */
}

.media-frame-toolbar {
	bottom: 0;
}

/* Upload button styles */
#upload-documents {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.13s ease;
	border: 1px solid #000000;
}

#upload-documents:hover {
	background-color: #000;
	color: #fff;
}

#upload-documents .dashicons {
	font-size: 1.2em;
	width: auto;
	height: auto;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}
