/* File Upload And List Plugin Styles */

.fual-container {
    max-width: 800px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Messages */
.fual-message {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.fual-message.fual-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fual-message.fual-error,
.fual-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Upload Form */
.fual-upload-form {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.fual-upload-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.fual-upload-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fual-upload-form input[type="file"] {
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.3s;
}

.fual-upload-form input[type="file"]:hover {
    border-color: #0073aa;
}

.fual-submit-btn {
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.fual-submit-btn:hover {
    background-color: #005a87;
}

.fual-info {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* File List */
.fual-file-list {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.fual-file-list h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

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

.fual-file-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    gap: 15px;
}

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

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

.fual-file-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.fual-file-name {
    flex: 1;
    min-width: 0;
}

.fual-file-name a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    word-break: break-word;
}

.fual-file-name a:hover {
    text-decoration: underline;
    color: #005a87;
}

.fual-file-size {
    font-size: 13px;
    color: #666;
    flex-shrink: 0;
    min-width: 60px;
    text-align: right;
}

.fual-file-date {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
    min-width: 140px;
    text-align: right;
}

.fual-no-files {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fual-file-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .fual-file-name {
        flex-basis: 100%;
        order: 1;
    }

    .fual-file-icon {
        order: 0;
    }

    .fual-file-size,
    .fual-file-date {
        font-size: 11px;
        min-width: auto;
        order: 2;
    }

    .fual-file-date {
        text-align: left;
    }
}
