:root{
    --muted: #6b7280;
    --success: #10b981;
}

.dl-downloads-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.dl-category-section {
    width: 100%;
}

.dl-category-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--color);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.dl-file-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.dl-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--postmetaicons);
    border-radius: 12px;
    transition: all 0.2s ease;
    text-align: left;
}

.dl-file-item-info {
    flex: 1;
    min-width: 0;
}

.dl-file-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--beige-dual);
    margin-bottom: 2px;
}

.dl-file-item-size {
    font-size: 12px;
    color: var(--muted);
}

.dl-download-btn {
    border: none;
    background: var(--primary-color);
    color: var(--beige);
    min-width: 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow: hidden;
    margin-left: 12px;
}

.dl-download-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.dl-download-btn:active {
    transform: translateY(0);
}

.dl-download-btn.dl-downloading {
    pointer-events: none;
    background: linear-gradient(135deg, var(--primary) 0%, #ff6b6b 100%);
}

.dl-download-btn.dl-completed {
    background: var(--success);
    pointer-events: none;
}

/* Loading State */
.dl-loading-state {
    text-align: left;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 28px;
    color: #666;
    font-size: 15px;
    font-weight: 500;
}

.dl-error-state {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 20px;
    color: #ef4444;
    font-size: 14px;
    background: #fff;
    border: 1px solid #fee2e2;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
}

.dl-error-state i {
    font-size: 20px;
    flex-shrink: 0;
}

.dl-ring-loader {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,122,0,.2);
    border-top-color: #ff7a00;
    border-radius: 50%;
    animation: dl-spin .8s linear infinite;
}

@keyframes dl-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mini Loader */
.dl-mini-loader {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.dl-mini-loader .dl-car {
    fill: none;
    stroke: white;
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: dl-stretch 1.125s ease-in-out infinite;
}

.dl-mini-loader .dl-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
}

@keyframes dl-stretch {
    0% {
        stroke-dasharray: 0, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 75, 150;
        stroke-dashoffset: -25;
    }
    100% {
        stroke-dashoffset: -100;
    }
}

/* Mini Tick */
.dl-mini-tick {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.dl-mini-tick .dl-tick-circle {
    fill: none;
    stroke: white;
    stroke-width: 2.5;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    animation: dl-tickCircleDraw 0.5s ease-out forwards;
}

.dl-mini-tick .dl-tick-check {
    fill: none;
    stroke: white;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: dl-tickCheckDraw 0.3s 0.35s ease-out forwards;
}

@keyframes dl-tickCircleDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes dl-tickCheckDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 1200px) {
    .dl-file-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .dl-file-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dl-file-list {
        grid-template-columns: 1fr;
    }
    
    .dl-category-heading {
        font-size: 16px;
    }
    
    .dl-file-item {
        padding: 10px 12px;
    }
    
    .dl-file-item-name {
        font-size: 13px;
    }
}