/* ==========================================
   Secure File Manager - Frontend Styles
   ========================================== */

.sfm-front-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.sfm-front-title {
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    color: #1f2937;
}

/* Notice */
.sfm-front-notice {
    padding: 16px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    color: #6b7280;
}

.sfm-front-notice-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.sfm-front-notice a {
    color: #2563eb;
    text-decoration: underline;
}

/* File list */
.sfm-front-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* File item */
.sfm-front-file-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sfm-front-file-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

/* File icon */
.sfm-front-file-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.sfm-front-file-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #2563eb;
}

.sfm-front-file-ext {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    margin-top: 2px;
}

/* File info */
.sfm-front-file-info {
    flex: 1;
    min-width: 0;
}

.sfm-front-file-name {
    display: block;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    word-break: break-word;
    font-size: 0.95em;
}

.sfm-front-file-name:hover {
    color: #2563eb;
}

.sfm-front-file-desc {
    margin: 4px 0 0;
    font-size: 0.85em;
    color: #6b7280;
    line-height: 1.4;
}

/* Meta */
.sfm-front-file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.sfm-front-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.8em;
    color: #9ca3af;
}

.sfm-front-meta-item .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Download button */
.sfm-front-file-action {
    flex-shrink: 0;
}

.sfm-front-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    background: #2563eb;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 0.85em;
    font-weight: 500;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.sfm-front-download-btn:hover {
    background: #1d4ed8;
    color: #fff !important;
}

.sfm-front-download-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Footer */
.sfm-front-footer {
    text-align: right;
    margin-top: 12px;
    color: #9ca3af;
    font-size: 0.8em;
}

/* Responsive */
@media (max-width: 600px) {
    .sfm-front-file-item {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px;
    }

    .sfm-front-file-icon {
        min-width: 40px;
    }

    .sfm-front-file-action {
        width: 100%;
    }

    .sfm-front-download-btn {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}
