/* Estilos para o Admin UI General */

/* Layout responsivo */
@media screen and (max-width: 782px) {
	.form-table {
		box-sizing: border-box;
		table-layout: fixed;
	}
}

/* Seções e contêineres */
.codir2me-sidebar-widget h3 {
	margin-top: 0;
	border-bottom: 1px solid #e5e5e5;
	padding-bottom: 10px;
	font-size: 14px;
}

.codir2me-tips-list li {
	margin-bottom: 8px;
}

/* Toggle switch */
.codir2me-toggle-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 24px;
	vertical-align: middle;
}

.codir2me-toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.codir2me-toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .4s;
	border-radius: 34px;
}

.codir2me-toggle-slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: .4s;
	border-radius: 50%;
}

input:checked + .codir2me-toggle-slider {
	background-color: #2196F3;
}

input:focus + .codir2me-toggle-slider {
	box-shadow: 0 0 1px #2196F3;
}

input:checked + .codir2me-toggle-slider:before {
	transform: translateX(26px);
}

.codir2me-debug-status {
	display: inline-block;
	margin-left: 10px;
	font-weight: 600;
}

.codir2me-debug-status.active {
	color: #46b450;
}

.codir2me-debug-status.inactive {
	color: #dc3232;
}

/* Informações de log */
.codir2me-log-info {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}

.codir2me-log-info code {
	background: #f5f5f5;
	padding: 5px 8px;
	margin-right: 10px;
	border-radius: 3px;
	flex-grow: 1;
}

.codir2me-log-size {
	white-space: nowrap;
	padding: 3px 8px;
	border-radius: 3px;
	font-weight: 600;
	color: #008a20;
}

.codir2me-log-actions {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
}

.codir2me-log-actions .button {
	display: flex;
	align-items: center;
}

.codir2me-log-actions .dashicons {
	margin-right: 5px;
}

/* Log viewer */
.codir2me-log-viewer {
	max-height: 300px;
	overflow-y: auto;
	background: #f5f5f5;
	padding: 0;
}

.codir2me-log-preview {
	padding: 15px;
	margin: 0;
	white-space: pre-wrap;
	font-size: 12px;
	line-height: 1.5;
}

/* Coloração de logs */
.log-timestamp {
	color: #666;
}

.log-debug {
	color: #3498db;
}

.log-info {
	color: #27ae60;
}

.log-error {
	color: #e74c3c;
}

/* Conexão R2 */
.codir2me-connection-result {
	margin-top: 15px;
	padding: 10px;
	border-radius: 5px;
}

/* Informações do sistema */
.codir2me-system-info-panel {
	margin-top: 15px;
}

/* Verificação de ambiente */
.codir2me-environment-check-container {
	margin: 20px 0;
}

.codir2me-environment-summary {
	padding: 15px !important;
	border-left-width: 5px !important;
	margin-bottom: 20px;
}

.codir2me-environment-summary h3 {
	margin: 0;
	display: flex;
	align-items: center;
}

.codir2me-environment-summary .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	margin-right: 10px;
}

.codir2me-environment-details {
	margin-bottom: 20px;
}

.codir2me-check-item {
	border: 1px solid #e5e5e5;
	margin-bottom: 10px;
	border-radius: 4px;
	overflow: hidden;
}

.codir2me-check-title {
	margin: 0;
	padding: 10px 15px;
	display: flex;
	align-items: center;
	font-weight: 600;
	font-size: 14px;
}

.codir2me-check-title .dashicons {
	margin-right: 8px;
}

.codir2me-check-title.success {
	background-color: #f0f6e4;
	border-bottom: 1px solid #d8e6c7;
}

.codir2me-check-title.warning {
	background-color: #fff8e5;
	border-bottom: 1px solid #f5e3b2;
}

.codir2me-check-title.error {
	background-color: #fce8e8;
	border-bottom: 1px solid #f5c2c2;
}

.codir2me-check-details {
	padding: 12px 15px;
	background-color: #fff;
}

.codir2me-check-details p:first-child {
	margin-top: 0;
}

.codir2me-check-details p:last-child {
	margin-bottom: 0;
}

.codir2me-check-details ul {
	margin-top: 5px;
	margin-bottom: 5px;
}

.codir2me-environment-recommendations {
	padding: 15px;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	background-color: #f9f9f9;
}

.codir2me-environment-recommendations h3 {
	margin-top: 0;
	margin-bottom: 10px;
	font-weight: 600;
}

.codir2me-environment-recommendations ul {
	margin-bottom: 0;
}

.codir2me-environment-recommendations li {
	margin-bottom: 8px;
}

.codir2me-environment-recommendations li:last-child {
	margin-bottom: 0;
}

.codir2me-check-loading {
	display: flex;
	align-items: center;
	padding: 20px;
	background-color: #f9f9f9;
	border-radius: 4px;
	border: 1px solid #e5e5e5;
}

.codir2me-check-loading .spinner {
	margin-top: 0;
	margin-right: 10px;
}

.codir2me-check-loading p {
	margin: 0;
}