
/* Custom Styles */
.do_ddd_toggle-box_flex {
    display: flex !important;
    align-items: center !important; 
    justify-content: space-between !important;
    width: 100%;
}

/* Grid Styles */
.downloaded-files-table span.dddownloads_label {
    display: none !important;
}
.downloaded-files-table .download_link_css{
    text-align: right !important;
}
.downloaded-files-table span.file_name_custom_css_by_admin.dddownloads_file_title_name,
.downloaded-files-table small.do_ddd_file_size_custom_css.dddownloads_sub_label,
.downloaded-files-table span.do_ddd_file_size_custom_css.dddownloads_sub_label {
    display: none !important;
}
.downloaded-files-table span.dddownloads_text {
    gap: 0px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .digital-download-item {
        width: 45%;
    }
}

@media screen and (max-width: 768px) {
    .digital-download-item {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Button Customizations */
.do_ddd_toggle-box_flex .button {
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #0073aa;
    color: #fff;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.do_ddd_toggle-box_flex .button:hover {
    background-color: #005a87;
}



/* Custom CSS for Protected Files */

.downloaded-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Adjusts the number of columns based on screen size */
    gap: 20px; /* Space between grid items */
    margin: 20px 0; /* Margin around the grid */
}

.downloaded-file-item {
    background-color: #f9f9f9; /* Background color for each item */
    border: 1px solid #ddd; /* Border for each item */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Padding inside each item */
    text-align: center; /* Center text alignment */
}

.downloaded-file-item a {
    text-decoration: none; /* Remove underline from links */
    color: #0073aa; /* Link color */
}

.downloaded-file-item a:hover {
    color: #005177; /* Darker link color on hover */
}



.downloaded-files-grid {
    display: flex;
    flex-wrap: wrap !important;
    justify-content: start;
    align-items: center;
    gap: 20px; /* Space between items */
}

.downloaded-file-item {
    background-color: #f9f9f9; /* Background color */
    border: 1px solid #ddd; /* Border */
    border-radius: 4px; /* Rounded corners */
    padding: 10px; /* Padding inside each item */
    text-align: center; /* Center text */
    width: max-content;
}

.downloaded-files-grid span.dddownloads_label {
    display: none !important;
}

.downloaded-files-grid .dddownloads_file_title_name {
    display: block !important;
}

/* download table files */


.downloaded-files-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.downloaded-files-table th, .downloaded-files-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.downloaded-files-table th {
    background-color: #000; /* Green background */
    color: white; /* White text */
}

.downloaded-files-table tr:nth-child(even) {
    background-color: #f2f2f2; /* Zebra striping */
}

.downloaded-files-table tr:hover {
    background-color: #464545; /* Highlight on hover */
}
.downloaded-files-table tr:hover td {
    color: #fff;
}

.downloaded-files-table td {
    vertical-align: middle; /* Center align the content vertically */
}

/* Download button style */
.downloaded-files-table a {
    display: inline-block;
    padding: 8px 12px;
    background-color: #007bff; /* Bootstrap primary color */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.downloaded-files-table a:hover {
    background-color: #0056b3; /* Darker blue on hover */
}
