/**
 * ShareFiles2 Frontend Styles
 * Clean and elegant file list display
 */

.sharefiles2-container {
    max-width: 1200px;
    margin: 20px 0;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.sharefiles2-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sharefiles2-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f2f4;
    transition: background-color 0.2s ease;
}

.sharefiles2-item:last-child {
    border-bottom: none;
}

.sharefiles2-item:hover {
    background-color: #f8f9fa;
}

.sharefiles2-file-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.sharefiles2-file-icon {
    margin-right: 12px;
    font-size: 18px;
    color: #6c757d;
    flex-shrink: 0;
}

.sharefiles2-file-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.sharefiles2-file-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    word-break: break-word;
    line-height: 1.4;
}

.sharefiles2-file-type {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
    font-weight: normal;
}

.sharefiles2-file-actions {
    flex-shrink: 0;
    margin-left: 16px;
}

.sharefiles2-download-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.sharefiles2-download-btn:hover {
    background-color: #005a87;
    color: #fff;
    text-decoration: none;
}

.sharefiles2-download-btn:active {
    transform: translateY(1px);
}

.sharefiles2-footer {
    padding: 12px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e1e5e9;
    text-align: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.sharefiles2-footer small {
    color: #6c757d;
    font-size: 12px;
}

.sharefiles2-error {
    padding: 16px;
    background-color: #fef6f6;
    border: 1px solid #fcf0f0;
    border-radius: 4px;
    color: #d63638;
    font-size: 14px;
    text-align: center;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .sharefiles2-container {
        margin: 10px 0;
        border-radius: 6px;
    }

    .sharefiles2-item {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sharefiles2-file-info {
        width: 100%;
    }

    .sharefiles2-file-actions {
        width: 100%;
        margin-left: 0;
    }

    .sharefiles2-download-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }

    .sharefiles2-file-name {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .sharefiles2-container {
        margin: 5px 0;
        border-radius: 4px;
    }

    .sharefiles2-item {
        padding: 12px;
    }

    .sharefiles2-file-icon {
        font-size: 16px;
        margin-right: 10px;
    }

    .sharefiles2-footer {
        padding: 10px 16px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .sharefiles2-container {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .sharefiles2-item {
        border-bottom-color: #4a5568;
    }

    .sharefiles2-item:hover {
        background-color: #4a5568;
    }

    .sharefiles2-file-name {
        color: #e2e8f0;
    }

    .sharefiles2-file-type {
        color: #a0aec0;
    }

    .sharefiles2-footer {
        background-color: #4a5568;
        border-top-color: #4a5568;
    }

    .sharefiles2-footer small {
        color: #a0aec0;
    }

    .sharefiles2-error {
        background-color: #742a2a;
        border-color: #9b2c2c;
        color: #feb2b2;
    }
}

/* Print styles */
@media print {
    .sharefiles2-container {
        border: 1px solid #000;
        box-shadow: none;
    }

    .sharefiles2-download-btn {
        display: none;
    }

    .sharefiles2-footer {
        background-color: transparent;
        border-top: 1px solid #000;
    }
}