/* File: assets/css/attachments.css */

/* Admin Styles */
.nemeta-attachments-container {
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    margin-top: 20px;
}

.nemeta-attachments-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.nemeta-attachment-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #fff;
    /*border: 1px solid #ddd;*/
    margin-bottom: 5px;
    cursor: move;
}

.nemeta-attachment-item .attachment-icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.nemeta-attachment-item .attachment-title {
    flex-grow: 1;
}

.nemeta-attachment-item .attachment-size {
    margin-right: 15px;
    color: #666;
    font-size: 0.9em;
}

.nemeta-attachment-item .attachment-remove {
    color: #a00;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
}

.nemeta-attachment-item .attachment-remove:hover {
    color: #f00;
}

/* Frontend Styles */
.nemeta-unit-attachments {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 5px solid #eee;
	/* background-color: #f8fafb; */
	padding: 12px 48px;
	/* border-radius: 9px; */
	margin-bottom: 23px;
	/* border: 1px solid #eeecec; */
	border-bottom: 5px solid #eee;
}

.nemeta-unit-attachments h3 {
	margin-bottom: 24px;
	color: #678485;
	padding-left: 48px;
}

.nemeta-unit-attachments .nemeta-attachments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nemeta-unit-attachments .nemeta-attachment-item {
    margin-bottom: 12px;
}

.nemeta-unit-attachments .nemeta-attachment-item a {
	display: flex;
	align-items: center;
	padding: 3px 24px;
	text-decoration: none;
	color: #605454;
	border: 1px solid #ddd;
	border-radius: 9px;
	transition: all 0.2s;
	background: #ffffffa1;
}

.nemeta-unit-attachments .nemeta-attachment-item a:hover {
    background: #f3f4f5;
    border-color: #bbb;
}

.nemeta-unit-attachments .attachment-thumbnail {
    /*margin-right: 15px;*/
    filter: opacity(0.7);
}

.nemeta-unit-attachments .attachment-thumbnail img {
    max-width: 50px;
    height: auto;
    display: block;
}

.nemeta-unit-attachments .attachment-title {
    flex-grow: 1;
    margin-right: 24px;
}

.nemeta-unit-attachments .attachment-size {
    margin-left: 15px;
    color: #666;
    font-size: 0.9em;
}

/* Add to your existing CSS */
.nemeta-attachment-item .attachment-handle {
    cursor: move;
    margin-right: 10px;
    color: #999;
}

.nemeta-attachment-item .attachment-handle:hover {
    color: #333;
}

/* Make sure items have enough spacing */
.nemeta-attachment-item {
    padding: 0;
    margin-bottom: 8px;
    background: #dbe4ee33;
    /*border: 1px solid #ddd;*/
    border-radius: 9px;
    display: flex;
    align-items: center;
}