/* ===== МОДАЛЬНОЕ ОКНО УПРАВЛЕНИЯ ===== */
.url_manager {
	position: relative;
}

.popup-close.arcticmodal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	font-size: 30px;
	line-height: 1;
	color: #999;
	text-decoration: none;
	cursor: pointer;
	z-index: 1000;
}

/* ===== ФОРМА ДОБАВЛЕНИЯ/РЕДАКТИРОВАНИЯ ===== */
.url_form {
	background: #f5f5f5;
	border-radius: 4px;
}

.url_form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
}

.url_form input[type="text"] {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.form_buttons {
	display: flex;
	gap: 10px;
}

.btn_save_url {
	padding: 10px 20px;
	background: #28a745;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
}

.btn_cancel_url {
	padding: 10px 20px;
	background: #6c757d;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
}

/* ===== КАРТОЧКИ ССЫЛОК ===== */
.urls_cards {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.url_card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 15px;
	transition: all 0.2s ease;
}

.url_card:hover,
.url_card_selected {
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	border-color: #007bff;
}

.url_card_header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.url_card_title {
	font-weight: 600;
	font-size: 16px;
	color: #333;
	flex: 1;
}

.url_card_status {
	flex-shrink: 0;
	margin-left: 10px;
}

.status-indicator {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #ccc;
	transition: background 0.3s ease;
}

.url_card_url {
	margin-bottom: 12px;
	padding: 8px;
	background: #f8f9fa;
	border-radius: 4px;
	word-break: break-all;
}

.url_card_url a {
	color: #007bff;
	text-decoration: none;
	font-size: 14px;
}

.url_card_url a:hover {
	text-decoration: underline;
}

.url_card_actions {
	display: flex;
	gap: 10px;
	flex-wrap: nowrap;
}

.url_card_actions button {
	flex: 1;
	padding: 8px 15px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.btn_edit_url {
	background: #ffc107;
	color: #000;
}

.btn_edit_url:hover {
	background: #e0a800;
}

.btn_delete_url {
	background: #dc3545;
	color: white;
}

.btn_delete_url:hover {
	background: #c82333;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Большие экраны (ПК, ноутбуки, большие планшеты) */
@media (min-width: 992px) {
	.url_card {
		display: grid;
		grid-template-columns: 2fr 3fr auto 2fr;
		grid-template-areas: "title url status actions";
		gap: 15px;
		align-items: center;
		padding: 12px 15px;
	}
	
	.url_card_header {
		grid-area: title;
		margin-bottom: 0;
		display: flex;
		align-items: center;
	}
	
	.url_card_title {
		font-size: 15px;
	}
	
	.url_card_status {
		grid-area: status;
		margin-left: 0;
		display: flex;
		justify-content: center;
	}
	
	.url_card_url {
		grid-area: url;
		margin-bottom: 0;
		padding: 6px 10px;
	}
	
	.url_card_url a {
		font-size: 13px;
	}
	
	.url_card_actions {
		grid-area: actions;
		flex-wrap: nowrap;
		justify-content: flex-end;
	}
	
	.url_card_actions button {
		min-width: auto;
		padding: 6px 12px;
		font-size: 13px;
		white-space: nowrap;
	}
}

/* Планшеты */
@media (max-width: 768px) {
	.url_manager {
		padding: 15px !important;
	}
	
	.url_manager h2 {
		font-size: 18px;
		padding-right: 30px;
	}
	
	.url_form {
		padding: 12px !important;
	}
	
	.url_form h3 {
		font-size: 16px;
	}
	
	.url_form input[type="text"] {
		font-size: 16px !important; /* Предотвращает zoom на iOS */
	}
	
	.url_form button {
		width: 100%;
		margin: 5px 0 !important;
	}
	
	.url_card {
		padding: 12px;
	}
	
	.url_card_title {
		font-size: 14px;
		word-break: break-word;
	}
	
	.url_card_url a {
		font-size: 12px;
	}
	
	.url_card_actions button {
		font-size: 13px;
		padding: 6px 10px;
	}
}

/* Мобильные устройства */
@media (max-width: 480px) {
	.url_card_title {
		font-size: 13px;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

/* ===== ОТОБРАЖЕНИЕ ССЫЛОК НА СТРАНИЦЕ ===== */
.btn_url {
	padding: 10px 20px;
	background: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

.urls_display_list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.urls_list_empty {
	padding: 20px;
	text-align: center;
	color: #999;
	font-style: italic;
}

.url_item {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
	transition: all 0.2s ease;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.url_item:hover {
	box-shadow: 0 3px 8px rgba(0,0,0,0.1);
	border-color: #007bff;
}

.url_item img.url_icon {
	width: 22px;
	height: 22px;
	margin-right: 12px;
	flex-shrink: 0;
}

.url_item a {
	flex: 1;
	color: #007bff;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	transition: color 0.2s ease;
	word-break: break-word;
}

.url_item a:hover {
	color: #0056b3;
}

.url_item_edit {
	width: 16px;
	height: 16px;
	margin-left: 12px;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s ease;
	flex-shrink: 0;
}

.url_item_edit:hover {
	opacity: 1;
}

.url_item_arrow {
	margin-left: 12px;
	color: #6c757d;
	font-size: 12px;
	flex-shrink: 0;
}

