/* My Account Styles for WooCommerce Project Files Delivery */

.woocommerce-account .woocommerce-project-files {
    background: #fff;
    /* My Account Project Files Styles */
}
.woocommerce-project-files {
    margin: 20px 0;
}

.project-files-order {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    background: #f9f9f9;
}

.project-files-order h4 {
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.order-date {
    color: #666;
    font-weight: normal;
    font-size: 14px;
    margin-right: 10px;
}

.project-files-list {
    display: grid;
    gap: 15px;
}

.project-file-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    background: white;
    transition: box-shadow 0.3s ease;
}

.project-file-item.downloaded {
    background: #f0f9f0;
    border-color: #c3e6c3;
}

.project-file-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.file-preview {
    margin-left: 15px;
    flex-shrink: 0;
}

.file-icon {
    font-size: 24px;
    color: #666;
}

.file-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.file-thumbnail img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.thumbnail-image:hover {
    transform: scale(1.05);
}

.file-info {
    flex: 1;
    margin-right: 15px;
}

.file-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.file-meta {
    font-size: 12px;
    color: #666;
}

.file-meta span {
    margin-left: 15px;
}

.file-actions {
    margin-right: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Download button */
.download-btn {
    background: var(--wpf-primary-color, #A8977B);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background: var(--wpf-secondary-color, #8B7355);
    color: white;
    text-decoration: none;
}

.preview-btn {
    background: #7c7c7c;
}

.preview-btn:hover {
    background: #5a5062;
}

.download-btn.downloading {
    background: #666;
    cursor: not-allowed;
}

.project-files-info {
    margin-top: 30px;
    padding: 20px;
    border-radius: 5px;
    border-right: 4px solid var(--wpf-primary-color, #A8977B);
}

.project-files-info h4 {
    margin: 0 0 10px 0;
}

.project-files-info ul {
    margin: 0;
    padding-right: 20px;
}

.project-files-info li {
    margin-bottom: 5px;
    color: #333;
}

/* Image Preview Modal */
.wpf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.wpf-modal {
    background: white;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
}

.wpf-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.wpf-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.wpf-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpf-modal-close:hover {
    color: #333;
}

.wpf-modal-body {
    padding: 20px;
    text-align: center;
}

.wpf-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* File Type Icons */
.file-icon {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 10px;
    color: white;
    text-transform: uppercase;
}

.file-preview {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.file-icon-container {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.default-file-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.default-file-icon svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.file-type-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    border: 1px solid white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Adobe Files */
.wpf-icon-psd {
    background: linear-gradient(135deg, #001e36 0%, #31c5f0 100%);
}
.wpf-icon-psd::after { content: "PSD"; }

.wpf-icon-ai {
    background: linear-gradient(135deg, #330000 0%, #ff9a00 100%);
}
.wpf-icon-ai::after { content: "AI"; }

.wpf-icon-eps {
    background: linear-gradient(135deg, #330000 0%, #ff9a00 100%);
}
.wpf-icon-eps::after { content: "EPS"; }

.wpf-icon-indd {
    background: linear-gradient(135deg, #49021f 0%, #ff408c 100%);
}
.wpf-icon-indd::after { content: "ID"; }

/* Images */
.wpf-icon-jpg {
    background: linear-gradient(135deg, #A8977B 0%, #8f7e68 100%);
}
.wpf-icon-jpg::after { content: "JPG"; }

.wpf-icon-png {
    background: linear-gradient(135deg, #7c7c7c 0%, #5a5062 100%);
}
.wpf-icon-png::after { content: "PNG"; }

.wpf-icon-gif {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}
.wpf-icon-gif::after { content: "GIF"; }

.wpf-icon-svg {
    background: linear-gradient(135deg, #ffb347 0%, #ff9500 100%);
}
.wpf-icon-svg::after { content: "SVG"; }

.wpf-icon-image {
    background: linear-gradient(135deg, #A8977B 0%, #8f7e68 100%);
}
.wpf-icon-image::after { content: "IMG"; }

/* Documents */
.wpf-icon-pdf {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}
.wpf-icon-pdf::after { content: "PDF"; }

.wpf-icon-doc {
    background: linear-gradient(135deg, #2b579a 0%, #1e3f73 100%);
}
.wpf-icon-doc::after { content: "DOC"; }

.wpf-icon-txt {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}
.wpf-icon-txt::after { content: "TXT"; }

/* Spreadsheets */
.wpf-icon-xls {
    background: linear-gradient(135deg, #217346 0%, #0f5132 100%);
}
.wpf-icon-xls::after { content: "XLS"; }

.wpf-icon-csv {
    background: linear-gradient(135deg, #217346 0%, #0f5132 100%);
}
.wpf-icon-csv::after { content: "CSV"; }

/* Presentations */
.wpf-icon-ppt {
    background: linear-gradient(135deg, #d63384 0%, #b02a5b 100%);
}
.wpf-icon-ppt::after { content: "PPT"; }

/* Archives */
.wpf-icon-zip {
    background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
}
.wpf-icon-zip::after { content: "ZIP"; }

.wpf-icon-rar {
    background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
}
.wpf-icon-rar::after { content: "RAR"; }

.wpf-icon-archive {
    background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
}
.wpf-icon-archive::after { content: "ARC"; }

/* Media */
.wpf-icon-video {
    background: linear-gradient(135deg, #6f42c1 0%, #59359a 100%);
}
.wpf-icon-video::after { content: "VID"; }

.wpf-icon-audio {
    background: linear-gradient(135deg, #20c997 0%, #0f5132 100%);
}
.wpf-icon-audio::after { content: "AUD"; }

/* Code */
.wpf-icon-code {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
}
.wpf-icon-code::after { content: "CODE"; font-size: 8px; }

/* 3D/CAD */
.wpf-icon-cad {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
}
.wpf-icon-cad::after { content: "CAD"; }

.wpf-icon-3d {
    background: linear-gradient(135deg, #6f42c1 0%, #59359a 100%);
}
.wpf-icon-3d::after { content: "3D"; }

/* Additional file type icons */
.wpf-icon-bmp {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}
.wpf-icon-bmp::after { content: "BMP"; }

.wpf-icon-webp {
    background: linear-gradient(135deg, #20c997 0%, #1e7e34 100%);
}
.wpf-icon-webp::after { content: "WEBP"; }

.wpf-icon-tiff {
    background: linear-gradient(135deg, #6f42c1 0%, #59359a 100%);
}
.wpf-icon-tiff::after { content: "TIFF"; }

.wpf-icon-ico {
    background: linear-gradient(135deg, #fd7e14 0%, #e55100 100%);
}
.wpf-icon-ico::after { content: "ICO"; }

.wpf-icon-raw {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
}
.wpf-icon-raw::after { content: "RAW"; }

.wpf-icon-xd {
    background: linear-gradient(135deg, #ff61f6 0%, #e91e63 100%);
}
.wpf-icon-xd::after { content: "XD"; }

.wpf-icon-ae {
    background: linear-gradient(135deg, #9999ff 0%, #6666cc 100%);
}
.wpf-icon-ae::after { content: "AE"; }

.wpf-icon-pr {
    background: linear-gradient(135deg, #ea77ff 0%, #cc44cc 100%);
}
.wpf-icon-pr::after { content: "PR"; }

.wpf-icon-flash {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
}
.wpf-icon-flash::after { content: "FLA"; }

.wpf-icon-rtf {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
}
.wpf-icon-rtf::after { content: "RTF"; }

.wpf-icon-odt {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
}
.wpf-icon-odt::after { content: "ODT"; }

.wpf-icon-pages {
    background: linear-gradient(135deg, #ff9500 0%, #cc7700 100%);
}
.wpf-icon-pages::after { content: "PAGES"; font-size: 7px; }

.wpf-icon-ods {
    background: linear-gradient(135deg, #00cc66 0%, #009944 100%);
}
.wpf-icon-ods::after { content: "ODS"; }

.wpf-icon-numbers {
    background: linear-gradient(135deg, #00cc66 0%, #009944 100%);
}
.wpf-icon-numbers::after { content: "NUM"; }

.wpf-icon-odp {
    background: linear-gradient(135deg, #ff6600 0%, #cc4400 100%);
}
.wpf-icon-odp::after { content: "ODP"; }

.wpf-icon-keynote {
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
}
.wpf-icon-keynote::after { content: "KEY"; }

.wpf-icon-rar {
    background: linear-gradient(135deg, #ffcc00 0%, #cc9900 100%);
}
.wpf-icon-rar::after { content: "RAR"; }

.wpf-icon-7z {
    background: linear-gradient(135deg, #666666 0%, #444444 100%);
}
.wpf-icon-7z::after { content: "7Z"; }

.wpf-icon-tar {
    background: linear-gradient(135deg, #996633 0%, #663311 100%);
}
.wpf-icon-tar::after { content: "TAR"; }

.wpf-icon-gz {
    background: linear-gradient(135deg, #cc6600 0%, #994400 100%);
}
.wpf-icon-gz::after { content: "GZ"; }

.wpf-icon-bz2 {
    background: linear-gradient(135deg, #cc3300 0%, #990000 100%);
}
.wpf-icon-bz2::after { content: "BZ2"; }

.wpf-icon-xz {
    background: linear-gradient(135deg, #0099cc 0%, #006699 100%);
}
.wpf-icon-xz::after { content: "XZ"; }

.wpf-icon-flv {
    background: linear-gradient(135deg, #cc0066 0%, #990044 100%);
}
.wpf-icon-flv::after { content: "FLV"; }

.wpf-icon-webm {
    background: linear-gradient(135deg, #00cc99 0%, #009966 100%);
}
.wpf-icon-webm::after { content: "WEBM"; font-size: 8px; }

.wpf-icon-mkv {
    background: linear-gradient(135deg, #6600cc 0%, #440099 100%);
}
.wpf-icon-mkv::after { content: "MKV"; }

.wpf-icon-m4v {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
}
.wpf-icon-m4v::after { content: "M4V"; }

.wpf-icon-3gp {
    background: linear-gradient(135deg, #cc6600 0%, #994400 100%);
}
.wpf-icon-3gp::after { content: "3GP"; }

.wpf-icon-ogv {
    background: linear-gradient(135deg, #009900 0%, #006600 100%);
}
.wpf-icon-ogv::after { content: "OGV"; }

.wpf-icon-flac {
    background: linear-gradient(135deg, #0099ff 0%, #0066cc 100%);
}
.wpf-icon-flac::after { content: "FLAC"; font-size: 8px; }

.wpf-icon-aac {
    background: linear-gradient(135deg, #ff9900 0%, #cc6600 100%);
}
.wpf-icon-aac::after { content: "AAC"; }

.wpf-icon-m4a {
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
}
.wpf-icon-m4a::after { content: "M4A"; }

.wpf-icon-wma {
    background: linear-gradient(135deg, #0099cc 0%, #006699 100%);
}
.wpf-icon-wma::after { content: "WMA"; }

.wpf-icon-aiff {
    background: linear-gradient(135deg, #cc9900 0%, #996600 100%);
}
.wpf-icon-aiff::after { content: "AIFF"; font-size: 8px; }

.wpf-icon-blender {
    background: linear-gradient(135deg, #ff6600 0%, #cc4400 100%);
}
.wpf-icon-blender::after { content: "BLEND"; font-size: 7px; }

.wpf-icon-3dsmax {
    background: linear-gradient(135deg, #0099cc 0%, #006699 100%);
}
.wpf-icon-3dsmax::after { content: "MAX"; }

.wpf-icon-maya {
    background: linear-gradient(135deg, #00cc99 0%, #009966 100%);
}
.wpf-icon-maya::after { content: "MAYA"; font-size: 8px; }

.wpf-icon-c4d {
    background: linear-gradient(135deg, #0066ff 0%, #0044cc 100%);
}
.wpf-icon-c4d::after { content: "C4D"; }

.wpf-icon-sketchup {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
}
.wpf-icon-sketchup::after { content: "SKP"; }

.wpf-icon-autocad {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
}
.wpf-icon-autocad::after { content: "DWG"; }

.wpf-icon-cad {
    background: linear-gradient(135deg, #666666 0%, #444444 100%);
}
.wpf-icon-cad::after { content: "CAD"; }

.wpf-icon-3dprint {
    background: linear-gradient(135deg, #ff6600 0%, #cc4400 100%);
}
.wpf-icon-3dprint::after { content: "STL"; }

.wpf-icon-html {
    background: linear-gradient(135deg, #e34c26 0%, #cc3300 100%);
}
.wpf-icon-html::after { content: "HTML"; font-size: 8px; }

.wpf-icon-css {
    background: linear-gradient(135deg, #1572b6 0%, #0066cc 100%);
}
.wpf-icon-css::after { content: "CSS"; }

.wpf-icon-js {
    background: linear-gradient(135deg, #f7df1e 0%, #ccaa00 100%);
}
.wpf-icon-js::after { content: "JS"; }

.wpf-icon-json {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}
.wpf-icon-json::after { content: "JSON"; font-size: 8px; }

.wpf-icon-xml {
    background: linear-gradient(135deg, #ff6600 0%, #cc4400 100%);
}
.wpf-icon-xml::after { content: "XML"; }

.wpf-icon-sql {
    background: linear-gradient(135deg, #336699 0%, #224466 100%);
}
.wpf-icon-sql::after { content: "SQL"; }

.wpf-icon-python {
    background: linear-gradient(135deg, #3776ab 0%, #2d5d8a 100%);
}
.wpf-icon-python::after { content: "PY"; }

.wpf-icon-java {
    background: linear-gradient(135deg, #ed8b00 0%, #cc6600 100%);
}
.wpf-icon-java::after { content: "JAVA"; font-size: 8px; }

.wpf-icon-cpp {
    background: linear-gradient(135deg, #00599c 0%, #004477 100%);
}
.wpf-icon-cpp::after { content: "C++"; }

.wpf-icon-c {
    background: linear-gradient(135deg, #a8b9cc 0%, #7788aa 100%);
}
.wpf-icon-c::after { content: "C"; }

.wpf-icon-csharp {
    background: linear-gradient(135deg, #239120 0%, #1a6b17 100%);
}
.wpf-icon-csharp::after { content: "C#"; }

.wpf-icon-php {
    background: linear-gradient(135deg, #777bb4 0%, #5d5f8a 100%);
}
.wpf-icon-php::after { content: "PHP"; }

.wpf-icon-ruby {
    background: linear-gradient(135deg, #cc342d 0%, #a02622 100%);
}
.wpf-icon-ruby::after { content: "RB"; }

.wpf-icon-go {
    background: linear-gradient(135deg, #00add8 0%, #0088aa 100%);
}
.wpf-icon-go::after { content: "GO"; }

.wpf-icon-swift {
    background: linear-gradient(135deg, #fa7343 0%, #cc5533 100%);
}
.wpf-icon-swift::after { content: "SWIFT"; font-size: 7px; }

.wpf-icon-kotlin {
    background: linear-gradient(135deg, #7f52ff 0%, #5533cc 100%);
}
.wpf-icon-kotlin::after { content: "KT"; }

.wpf-icon-typescript {
    background: linear-gradient(135deg, #3178c6 0%, #2255aa 100%);
}
.wpf-icon-typescript::after { content: "TS"; }

.wpf-icon-sass {
    background: linear-gradient(135deg, #cc6699 0%, #aa4477 100%);
}
.wpf-icon-sass::after { content: "SASS"; font-size: 8px; }

.wpf-icon-less {
    background: linear-gradient(135deg, #1d365d 0%, #112244 100%);
}
.wpf-icon-less::after { content: "LESS"; font-size: 8px; }

.wpf-icon-font {
    background: linear-gradient(135deg, #333333 0%, #111111 100%);
}
.wpf-icon-font::after { content: "FONT"; font-size: 8px; }

.wpf-icon-sketch {
    background: linear-gradient(135deg, #fdad00 0%, #cc8800 100%);
}
.wpf-icon-sketch::after { content: "SKETCH"; font-size: 6px; }

.wpf-icon-figma {
    background: linear-gradient(135deg, #f24e1e 0%, #cc3300 100%);
}
.wpf-icon-figma::after { content: "FIG"; }

.wpf-icon-affinity {
    background: linear-gradient(135deg, #1b72be 0%, #0d5599 100%);
}
.wpf-icon-affinity::after { content: "AF"; }

/* Default */
.wpf-icon-default {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}
.wpf-icon-default::after { content: "FILE"; font-size: 8px; }


/* Notification badge */
.wpf-notification-badge {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
    display: inline-block;
    min-width: 16px;
    text-align: center;
    animation: pulse 2s infinite;
    position: relative;
    top: -2px;
}

.wpf-notification-badge:empty {
    display: none !important;
}

/* Ensure badge is visible on menu item */
.woocommerce-MyAccount-navigation-link--project-files .wpf-notification-badge {
    display: inline-block !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 50, 50, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 50, 50, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 50, 50, 0);
    }
}


/* Alternative icon options */
/* 
\f481 - dashicons-portfolio (recommended)
\f322 - dashicons-media-archive
\f123 - dashicons-admin-page
\f318 - dashicons-media-document
\f321 - dashicons-media-default
\f322 - dashicons-media-archive
\f481 - dashicons-portfolio
*/

/* Download Button States */
.file-actions .download-btn.disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none;
}

.unavailable-reason {
    color: #d63638;
    font-style: italic;
    display: block;
    margin-top: 5px;
    font-size: 11px;
}

.project-file-item.download-limit-reached {
    opacity: 0.7;
    border-left: 3px solid #d63638;
}

.project-file-item.expired {
    opacity: 0.6;
    border-left: 3px solid #ff9800;
}

/* Expiry Information Styles */
.file-meta .expiry-info {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 5px;
}

.file-meta .expiry-info.valid {
    background-color: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.file-meta .expiry-info.expired {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

/* Download count with limit display */
.file-meta .download-count {
    font-weight: 500;
}

.file-meta .download-count:has-text("/") {
    color: #ff9800;
}

/* Order Collapsible Functionality */
.order-files-section {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.order-header {
    background: #f8f9fa;
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

.order-header:hover {
    background: #e9ecef;
}

.order-title {
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.toggle-icon {
    margin-left: 10px;
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #666;
}

.order-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.files-count {
    margin-right: 10px;
    font-size: 14px;
    font-weight: normal;
    color: #666;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
}

.project-files-list {
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-files-list.collapsed {
    max-height: 0;
    padding: 0;
}

.project-files-list.expanded {
    max-height: none;
    padding: 15px;
}

/* Bulk Actions Section */
.bulk-actions-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.bulk-selection-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.bulk-select-all {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    cursor: pointer;
}

.bulk-select-all input[type="checkbox"] {
    margin: 0;
}

.bulk-download-btn {
    background: var(--wpf-primary-color, #A8977B);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.bulk-download-btn:hover:not(:disabled) {
    background: var(--wpf-secondary-color, #8B7355);
}

.bulk-download-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.selected-count {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* File Selection */
.file-selection {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.file-checkbox {
    margin: 0;
    transform: scale(1.2);
}

.project-file-item {
    position: relative;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.project-file-item.selected {
    border-color: var(--wpf-primary-color, #A8977B);
    background: color-mix(in srgb, var(--wpf-primary-color, #A8977B) 5%, transparent);
}

/* Order Files Section */
.order-files-section {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.order-files-section h4 {
    background: #f5f5f5;
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    color: #7c7c7c;
    font-size: 16px;
}

.project-files-list {
    padding: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-file-item {
        flex-direction: column;
        text-align: center;
    }
    
    .file-preview {
        margin: 0 0 10px 0;
    }
    
    .file-info {
        margin: 0 0 10px 0;
    }
    
    .file-actions {
        margin: 10px 0 0 0;
        justify-content: center;
    }
    
    .file-meta span {
        display: block;
        margin: 5px 0;
    }
    
    .wpf-modal {
        margin: 20px;
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
    }
}
