/**
 * Estilos para a aba de arquivos estáticos do CDN R2
 */

/* Estilo para cards de resumo */
.codir2me-summary-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin: 15px 0;
}

.codir2me-summary-card {
	background-color: #f8f9fa;
	border-radius: 8px;
	padding: 15px;
	display: flex;
	align-items: center;
	flex: 1 1 200px;
	min-width: 200px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	border: 1px solid #eee;
}

.codir2me-summary-icon {
	margin-right: 15px;
	background-color: #2271b1;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
}

.codir2me-summary-icon.js-icon {
	background-color: #f7df1e;
	color: #333;
}

.codir2me-summary-icon.css-icon {
	background-color: #264de4;
}

.codir2me-summary-icon.font-icon {
	background-color: #ff6d00;
}

.codir2me-summary-icon.svg-icon {
	background-color: #ff7c00;
}

.codir2me-summary-details h4 {
	margin: 0 0 5px 0;
	font-size: 14px;
	font-weight: 600;
}

.codir2me-summary-count {
	font-size: 20px;
	font-weight: bold;
	color: #2271b1;
	margin: 0;
}

/* Estilo para tabela de arquivos */
.codir2me-files-filter {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	gap: 15px;
}

.codir2me-files-count {
	font-size: 13px;
	color: #666;
}

.codir2me-files-table-container {
	overflow-x: auto;
	max-height: 500px;
	overflow-y: auto;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.codir2me-files-table {
	width: 100%;
	border-collapse: collapse;
}

.codir2me-files-table th {
	position: sticky;
	top: 0;
	background-color: #f0f0f1;
	z-index: 10;
}

.codir2me-file-name {
	font-weight: 600;
}

.codir2me-file-name .dashicons {
	margin-right: 5px;
	color: #666;
}

.codir2me-type-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	background-color: #f0f0f1;
	color: #666;
}

.codir2me-type-badge.file-type-js {
	background-color: #fff9c4;
	color: #856404;
}

.codir2me-type-badge.file-type-css {
	background-color: #e3f2fd;
	color: #0c5460;
}

.codir2me-type-badge.file-type-font {
	background-color: #ffebee;
	color: #721c24;
}

.codir2me-type-badge.file-type-svg {
	background-color: #e8f5e9;
	color: #155724;
}

.codir2me-path-preview {
	max-width: 240px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: monospace;
	font-size: 12px;
	color: #666;
}

.codir2me-file-actions {
	white-space: nowrap;
}

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

.codir2me-file-actions .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	margin-top: 0;
	margin-right: 3px;
}

@keyframes codir2me-rotate {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.codir2me-rotating {
	animation: codir2me-rotate 1.5s linear infinite;
}

.codir2me-success-msg {
	display: inline-block;
	margin-left: 10px;
	color: #46b450;
	font-size: 12px;
	font-weight: 600;
}

.codir2me-error-msg {
	display: inline-block;
	margin-left: 10px;
	color: #dc3232;
	font-size: 12px;
	font-weight: 600;
}

/* Estilos para a configuração CORS na barra lateral */
.codir2me-cors-steps {
	margin-left: 18px;
}

.codir2me-code-block {
	background-color: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 10px;
	margin: 15px 0;
	position: relative;
}

.codir2me-code-block pre {
	white-space: pre-wrap;
	word-wrap: break-word;
	margin: 0;
	padding: 0;
	font-family: monospace;
	font-size: 12px;
	max-height: 200px;
	overflow-y: auto;
}

.codir2me-copy-cors-config {

	top: 5px;
	right: 5px;
	background-color: #f8f8f8;
	border-color: #ddd;
}

.codir2me-cors-note {
	font-size: 12px;
	color: #666;
	font-style: italic;
}

.codir2me-cors-info {
	background-color: #f0f6fc;
	border-left: 4px solid #0073aa;
	padding: 10px 15px;
	margin-top: 15px;
}

.codir2me-cors-info p {
	margin: 0;
	font-size: 12px;
}