@use'../variables' as*;
@use '../../node_modules/bootstrap-fileinput/scss/fileinput.scss';

.file-input-design-one{
    .file-input{
        .file-preview{
            .fileinput-remove {
                top: 10px;
                right: 13px;
            }
            
            .file-drop-zone.clickable {
                .krajee-default {
                    &.file-preview-frame{
                        margin: 15px;
                        border: unset;
                        box-shadow: 0 4px 20px  $shadow-color-lg;
                        padding: 15px;
                        border-radius: 6px;
                        
                        .file-footer-buttons{
                            button{
                                padding: 0px 7px;
                            }
                        }
            
                        &:not(.file-preview-error):hover{
                            border: unset;
                            background-color: $bg-color;
                            box-shadow: 0 4px 20px  $shadow-color-lg;
                        }
                    }
                }
                &:hover{
                    border: 1px dashed $primary;
                }
            }
        }
        .file-caption{
            border: 1px solid $gray-300;
            border-radius: 4px;
            .file-caption-name{
                width: auto;
                padding: 5px 30px;
            }
            .file-caption-icon {
                left: 4px;
                top: 3px;
            }
        }
    }
    .file-loading {
        &:before{
            padding-left: 35px;
            line-height: 30px;
            color: $primary;
        }
    }
}

.file-input-design-two{
    .file-input{
        .file-preview{
            border-radius: unset;
            border: unset;
            padding: 0;
            .fileinput-remove {
                top: -10px;
                right: -10px;
            }
            
            .file-drop-zone.clickable {
                margin: 0;
                padding: 0px;
                min-height: 200px;
                .file-drop-zone-title {
                    font-size: 1.1em;
                }
                .krajee-default {
                    &.file-preview-frame{
                        margin: 0px;
                        border: unset;
                        box-shadow: unset;
                        padding: 15px;
                        border-radius: 6px;
                        width: 100%;
                        .kv-file-content {
                            width: 100%;
                            height: auto;
                            border-radius: 6px 6px 0px 0px;
                            overflow: hidden;
                        }
                        
                        .file-footer-buttons{
                            button{
                                padding: 0px 7px;
                            }
                        }
            
                        &:not(.file-preview-error):hover{
                            border: unset;
                        }
                    }
                }
                &:hover{
                    border: 1px dashed $primary;
                }
            }
        }
        .file-caption{
            border: 1px solid $gray-300;
            border-radius: 4px;
            .file-caption-name{
                width: auto;
                padding: 5px 30px;
            }
            .file-caption-icon {
                left: 4px;
                top: 3px;
            }
        }
    }
    .file-loading {
        &:before{
            padding-left: 35px;
            line-height: 30px;
            color: $primary;
        }
    }
}