/* General styles */
#advmo .wrap {
	max-width: 800px;
	margin: 20px auto;
	background: #fff;
	padding: 30px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	overflow: hidden;
}

#advmo h1 {
	color: #23282d;
	font-size: 24px;
	margin-bottom: 20px;
}

/* Form styles */
#advmo form {
	margin-top: 20px;
}

#advmo .form-table th {
	font-weight: 600;
	padding: 20px 10px 20px 0;
	width: 200px;
	vertical-align: top;
}

#advmo .form-table td {
	padding: 15px 10px;
	vertical-align: middle;
}

/* Field styles */
#advmo select,
#advmo input[type="text"],
#advmo input[type="password"] {
	width: 100%;
	max-width: 400px;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* Checkbox style */
#advmo input[type="checkbox"] {
	margin-right: 10px;
}

/* Description style */
#advmo .description {
	font-style: italic;
	color: #666;
	margin-top: 5px;
}

/* Responsive design */
@media screen and (max-width: 782px) {
	#advmo .form-table th,
	#advmo .form-table td {
		display: block;
		width: 100%;
		padding: 10px 0;
	}

	#advmo .form-table th {
		padding-bottom: 0;
	}
}

/* Custom styles for credential fields */
#advmo .advmo-credentials-field {
	margin-bottom: 15px;
}

#advmo .advmo-credentials-field label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

/* Test connection button */
#advmo .advmo-test-connection {
	margin-top: 10px;
}

/* Notification styles */
#advmo .advmo-notification {
	padding: 10px 15px;
	border-radius: 3px;
	margin-top: 20px;
}

#advmo .advmo-notification.success {
	background-color: #dff0d8;
	border: 1px solid #d6e9c6;
	color: #3c763d;
}

#advmo .advmo-notification.error {
	background-color: #f2dede;
	border: 1px solid #ebccd1;
	color: #a94442;
}

/* Custom styles for the "Test connection" button */

.advmo-test-connection-container {
	margin-top: 10px;
}
.advmo-test-connection-result {
	margin-top: 10px;
}
/* Feedback Messages */
.advmo-test-success,
.advmo-test-error {
	padding: 10px;
	border-radius: 3px;
	margin-top: 10px;
}

.advmo-test-success {
	background-color: #d4edda;
	color: #155724;
}

.advmo-test-error {
	background-color: #f8d7da;
	color: #721c24;
}
.advmo-test-success .dashicons,
.advmo-test-error .dashicons {
	vertical-align: middle;
}

#bulk-offload-button {
	margin: 0.6rem 0;
}

#bulk-offload-cancel-button {
	margin: 1rem 0;
	display: inline-block;
}
/* Progress Bar */
.progress-bar-container {
	width: 100%;
	background-color: #e0e0e0;
	padding: 3px;
	border-radius: 3px;
	margin-top: 20px;
}

#offload-progress {
	width: 0;
	height: 20px;
	background-color: #0073aa;
	border-radius: 2px;
	transition: width 0.5s;
}

#progress-title {
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 10px;
}

#progress-text {
	margin-top: 10px;
	font-weight: bold;
}

/* General section styles */
#advmo .wrap > h2 {
	background-color: #f1f1f1;
	padding: 15px;
	margin-top: 30px;
	margin-bottom: 20px;
	border-top: 3px solid #0085ba;
	font-size: 18px;
	color: #23282d;
	text-align: center;
	position: relative;
}

#advmo .wrap > h2::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 50px;
	height: 3px;
	background-color: #0085ba;
}

#advmo .wrap > p {
	margin-bottom: 20px;
	color: #555;
	text-align: center;
}

/* Form table styles */
#advmo .form-table {
	background-color: #fff;
	border: 1px solid #e5e5e5;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	margin-bottom: 30px;
}

#advmo .form-table th {
	background-color: #f9f9f9;
	border-bottom: 1px solid #e5e5e5;
}

#advmo .form-table td {
	border-bottom: 1px solid #f0f0f0;
}

#advmo .form-table tr:last-child th,
#advmo .form-table tr:last-child td {
	border-bottom: none;
}

/* Cloud Provider section */
#advmo .form-table:nth-of-type(1) {
	border-top: 3px solid #0073aa;
}

/* General Settings section */
#advmo .form-table:nth-of-type(2) {
	border-top: 3px solid #0073aa;
}

/* Media Overview section */
#advmo .form-table:nth-of-type(3) {
	border-top: 3px solid #0073aa;
}

#advmo .form-table tbody tr th {
	vertical-align: middle;
	padding-left: 1rem;
}

/* Submit button styling */
#advmo .submit {
	margin-top: 30px;
	text-align: center;
}

#advmo .button-primary {
	background: #0085ba;
	border-color: #0073aa #006799 #006799;
	box-shadow: 0 1px 0 #006799;
	color: #fff;
	text-decoration: none;
	text-shadow:
		0 -1px 1px #006799,
		1px 0 1px #006799,
		0 1px 1px #006799,
		-1px 0 1px #006799;
	padding: 0.5rem 1.5rem;
	height: auto;
	min-height: 30px;
	font-size: 1rem;
	vertical-align: middle;
	transition: all 0.3s ease;
}

#advmo .button-primary:hover,
#advmo .button-primary:focus {
	background: #008ec2;
	border-color: #006799;
	color: #fff;
}

#advmo .button-primary:active {
	background: #0073aa;
	border-color: #006799;
	box-shadow: inset 0 2px 0 #006799;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
	#advmo .wrap > h2 {
		padding: 10px;
		font-size: 16px;
	}

	#advmo .form-table th,
	#advmo .form-table td {
		padding: 15px;
	}
}

.advmo-radio-group {
	margin-bottom: 20px;
}

.advmo-radio-option {
	margin-bottom: 20px;
}

.advmo-radio-option input[type="radio"] {
	margin-right: 10px;
}

.advmo-radio-option label {
	font-weight: bold;
	display: inline-block;
	margin-bottom: 5px;
	cursor: pointer;
}

.advmo-radio-option .description {
	margin-left: 24px;
	color: #666;
	font-size: 13px;
	line-height: 1.5;
}

.advmo-radio-option input[type="radio"]:checked + label {
	color: #0073aa;
}

@media screen and (max-width: 782px) {
	.advmo-radio-option {
		margin-bottom: 25px;
	}
}

/* Checkboxes */
.advmo-checkbox-option {
	margin-bottom: 20px;
	padding-left: 24px;
	position: relative;
}

.advmo-checkbox-option input[type="checkbox"] {
	position: absolute;
	left: 0;
	top: 5px;
}

.advmo-checkbox-option label {
	font-weight: bold;
	cursor: pointer;
	display: inline-block;
	margin-bottom: 5px;
}

.advmo-checkbox-option .description {
	margin-top: 5px;
	color: #666;
	font-size: 13px;
	line-height: 1.5;
}

.advmo-checkbox-option input[type="checkbox"]:checked + label {
	color: #0073aa;
}

/* Input below Checkbox */

.advmo-checkbox-option input[type="input"]#path_prefix {
	width: 100%;
	max-width: 300px;
	padding: 8px;
	margin-top: 5px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	color: #333;
	transition: all 0.3s ease;
}

.advmo-checkbox-option input[type="input"]#path_prefix:focus {
	border-color: #007cba;
	box-shadow: 0 0 0 1px #007cba;
	outline: 2px solid transparent;
}

.advmo-checkbox-option input[type="input"]#path_prefix:disabled {
	background-color: #f0f0f0;
	color: #888;
	cursor: not-allowed;
}

@media screen and (max-width: 782px) {
	.advmo-checkbox-option {
		padding-left: 32px;
	}

	.advmo-checkbox-option input[type="checkbox"] {
		width: 25px;
		height: 25px;
	}

	.advmo-checkbox-option label {
		line-height: 25px;
	}
}

.advmo-code-snippet {
	margin-top: 20px;
	padding: 10px;
	border-radius: 3px;
	background-color: #f9f9f9;
	border: 1px;
}
