.container {
	width: 95%;
	max-width: 1600px;
	margin: 30px auto;
	padding: 20px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.border-red {
	border-color: #dc3545;
}

.d-none {
  display: none !important;
}

h1, h3 {
	text-align: center;
	color: #333;
}
.zone-selection {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}
.zone-selection label {
	margin-right: 10px;
	font-weight: bold;
}
.zone-selection select {
	flex: 1;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.zone-selection button {
	margin-left: 10px;
	padding: 8px 12px;
	background-color: #17a2b8;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}
.zone-selection button:hover {
	background-color: #138496;
}
#zone-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}
#add-record-btn {
	padding: 10px 15px;
	background-color: #28a745;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}
#add-record-btn:hover {
	background-color: #218838;
}
#search {
	padding: 8px;
	width: 300px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
#records-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}
#records-table th, #records-table td {
	padding: 12px 15px;
	border: 1px solid #ddd;
	text-align: left;
	word-wrap: break-word;
	max-width: 170px;
	min-width: 170px;
}
#records-table th {
	background-color: #f2f2f2;
	cursor: pointer;
}
#records-table tr:nth-child(even) {
	background-color: #f9f9f9;
}
#records-table tr:hover {
	background-color: #f1f1f1;
}
#response-message {
	text-align: center;
	font-weight: bold;
	margin-top: 10px;
}
.error {
	color: #dc3545;
}
.success {
	color: #28a745;
}
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.5);
}
.close-button {
	color: #aaa;
	float: right;
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
	position: absolute;
	top: 10px;
	right: 15px;
}
.close-button:hover, .close-button:focus {
	color: #000;
}
.modal-content h2 {
	margin-top: 0;
	text-align: center;
}
.modal-content form {
	display: flex;
	flex-direction: column;
}
.modal-content label {
	margin-top: 10px;
	font-weight: bold;
}
.modal-content input[type="text"], .modal-content input[type="number"], .modal-content select {
	padding: 8px;
	margin-top: 5px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.modal-actions {
	display: flex;
	justify-content: space-around;
	margin-top: 20px;
}
/* SOA Section Styles */

#soa-section {
	margin-bottom: 30px;
	padding: 15px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background-color: #f8f9fa;
}
#soa-section h2 {
	margin-top: 0;
	color: #333;
}
#soa-details {
	display: flex;
	flex-wrap: wrap;
}
.soa-field {
	width: 50%;
	margin-bottom: 10px;
	&.end {
		width: 49%;
		margin-right: 10px;
	}
	&.col-3 {
		width: 32%;
		&.end {
			width: 33%;
			margin-right: 10px;
		}
	}
}
.soa-field label {
	font-weight: bold;
	display: block;
	margin-bottom: 5px;
}
.soa-field span {
	display: block;
	padding: 8px;
	background-color: #e9ecef;
	border-radius: 4px;
}
/* Editable SOA Fields */

.soa-editable {
	cursor: pointer;
	background-color: #fff3cd;
}
#zone-file-modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 80%;
	max-width: 800px;
	background-color: #fff;
	border: 1px solid #ccc;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
#zone-file-modal .modal-content {
	padding: 20px;
	position: relative;
}
#zone-file-modal .close-button {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 1.5em;
	cursor: pointer;
}
.close-button {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}
.close-button:hover, .close-button:focus {
	color: #fff;
	text-decoration: none;
}
.modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
}
/* Optional: Enhance the preformatted text area */

pre {
	white-space: pre-wrap;
	/* Allow wrapping */
	word-wrap: break-word;
	/* Prevent overflow */
}
textarea {
	border: 1px solid #ccc;
}
.grow-wrap {
	/* easy way to plop the elements on top of each other and have them both sized based on the tallest one's height */
	display: grid;
}
.grow-wrap::after {
	/* Note the weird space! Needed to preventy jumpy behavior */
	content: attr(data-replicated-value) " ";
	/* This is how textarea text behaves */
	white-space: pre-wrap;
	/* Hidden from view, clicks, and screen readers */
	visibility: hidden;
}
.grow-wrap>textarea {
	/* You could leave this, but after a user resizes, then it ruins the auto sizing */
	resize: none;
	/* Firefox shows scrollbar on growth, you can hide like this. */
	overflow: hidden;
}
.grow-wrap>textarea, .grow-wrap::after {
	/* Identical styling required!! */
	border: 1px solid black;
	padding: 0.5rem;
	font: inherit;
	/* Place on top of each other */
	grid-area: 1 / 1 / 2 / 2;
}
.general-value-field {
	display: inline-flex;
}
.modal-raw-zone-footer {
	display: flex;
	flex-direction: row;
	width: 100%;
	justify-content: space-between;
}