/**
 * Frontend CSS for Download Monitor Multiple Files Extension
 * Clean, simple styles with no !important - can be easily overridden
 */

/* Container styling */
.dlm-multiple-files-container {
    background-color: #ffffff;
    padding: 20px;
    margin: 20px 0;
    border:1px solid black;
}

/* File item styling */
.dlm-file-item {
    background-color: #666666;
    border: none;
    color: #ffffff;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* File name styling */
.dlm-file-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-align:left;
}

/* File meta styling */
.dlm-file-meta {
    color: #cccccc;
    font-size: 14px;
    margin: 5px 0 0 0;
}

/* File size and type badges */
.dlm-file-size,
.dlm-file-type {
    background-color: #444;
    color: #ffffff;
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    margin-right: 8px;
    display: inline-block;
}

/* Download buttons */
.dlm-download-button,
.dlm-multiple-download-button,
.dlm-individual-download,
.dlm-download-all-button {
    background: #ffffff;
    color: #666666;
    border: 1px solid #666666;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Download button hover effect */
.dlm-download-button:hover,
.dlm-multiple-download-button:hover,
.dlm-individual-download:hover,
.dlm-download-all-button:hover {
    background: #0cb4ce;
    color: #666666 !important;
    border: 1px solid #0cb4ce;
}

/* Fade-in items */
.dlm-download-item.fade-in {
    background-color: #f8f9fa;
    border: none;
    outline: none;
    box-shadow: none;
    padding:0px
}

/* Download title hover effect */
.dlm-download-title:hover {
    color: #0cb4ce;
}
/* Featured image*/
.dlm-featured-image {
    min-width: 100%;
    min-height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.dlm-download-item.fade-in h3 {
    background-color: #e1e2e4;
    padding:20px;
    margin-top:2px;
}
.dlm-download-title:not(.collapsed)::after {
    color: #666;
    font-family: "FontAwesome";
    font-weight: 600;
    content: "\f107";
    padding-left: 10px;
    transition: all 0.3s ease;
}
.dlm-download-title.collapsed::after{
    color: #666;
    font-family: "FontAwesome";
    font-weight: 600;
    content: "\f106";
    padding-left: 10px;
    transition: all 0.3s ease;
}

/* Hide all content by default to prevent blink effect */
.dlm-download-item .dlm-featured-image,
.dlm-download-item .dlm-download-description,
.dlm-download-item .dlm-main-file,
.dlm-download-item .dlm-multiple-files {
    display: none;
}

/* Show content only for the first item */
.dlm-download-item:first-child .dlm-featured-image,
.dlm-download-item:first-child .dlm-download-description,
.dlm-download-item:first-child .dlm-main-file,
.dlm-download-item:first-child .dlm-multiple-files {
    display: block;
}