/* Custom File Input Styles */

.custom-file-wrapper {
    width: 100%;
    margin-bottom: 10px;
}

/* Drop Zone */
.file-drop-zone {
    margin-top: 10px;
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #fafafa;
    cursor: pointer;
}

.file-drop-zone:hover {
    border-color: #999;
    background-color: #f5f5f5;
}

.file-drop-zone.active {
    border-color: #0066cc;
    background-color: #f0f7ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.file-drop-zone .file-icon {
    margin-bottom: 16px;
    color: #666;
    display: flex;
    justify-content: center;
}

.file-drop-zone .file-icon svg {
    width: 28px;
    height: 28px;
}

.file-drop-zone.active .file-icon {
    color: #0066cc;
}

.file-text p {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
}

.file-text .drop-text {
    font-weight: 500;
    font-size: 16px;
}

.file-text .or-text {
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* File Button */
.file-button {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.file-button:hover {
    background-color: #0052a3;
}

.file-button:active {
    background-color: #003d7a;
}

/* Errors */
.file-errors {
    margin-top: 12px;
    display: none;
}

.file-errors.has-errors {
    display: block;
}

.error-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.error-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
}

.error-item svg {
    color: #ffc107;
    flex-shrink: 0;
    margin-top: 2px;
}

.error-content {
    flex: 1;
    min-width: 0;
}

.error-content strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.error-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

/* File List */
.file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.file-item:hover {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-icon-small {
    color: #666;
    display: flex;
    align-items: center;
    min-width: 24px;
}

.file-icon-small svg {
    width: 24px;
    height: 24px;
}

.file-details {
    min-width: 0;
}

.file-name {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #999;
}

.remove-file {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.remove-file:hover {
    color: #d32f2f;
}

.remove-file svg {
    width: 20px;
    height: 20px;
}

/* Submit Button States */
[type="submit"].is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #ccc !important;
}

[type="submit"].is-enabled {
    cursor: pointer;
}

/* States */
.custom-file-wrapper.has-files .file-drop-zone {
    display: none;
}

.custom-file-wrapper.empty .file-list {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .file-drop-zone {
        padding: 30px 15px;
    }

    .file-drop-zone .file-icon svg {
        width: 40px;
        height: 40px;
    }

    .file-text .drop-text {
        font-size: 14px;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-info {
        width: 100%;
    }

    .remove-file {
        align-self: flex-end;
        margin-left: 0;
        margin-top: 8px;
    }
}

/* Hint */

/* Add more button */
.file-add-more {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 14px;
    background: none;
    border: 1.5px dashed #d0d0d0;
    border-radius: 6px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.file-add-more:hover {
    border-color: #0066cc;
    color: #0066cc;
    background-color: #f0f7ff;
}