/* Layout Switches and Control Bar */
.sfvlt-pro-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: hsl(210, 20%, 98%);
    border: 1px solid hsl(210, 14%, 90%);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.sfvlt-pro-bulk-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sfvlt-pro-layout-toggles button.sfvlt-toggle-layout {
    cursor: pointer;
    background: #ffffff;
    border: 1px solid hsl(210, 14%, 85%);
    border-radius: 6px;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: hsl(220, 15%, 45%);
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 4px;
    vertical-align: middle;
}

.sfvlt-pro-layout-toggles button.sfvlt-toggle-layout:hover {
    background: hsl(210, 20%, 98%);
    color: hsl(220, 90%, 56%);
    border-color: hsl(220, 90%, 75%);
}

.sfvlt-pro-layout-toggles button.sfvlt-toggle-layout.active {
    background: hsl(220, 90%, 96%);
    color: hsl(220, 90%, 56%);
    border-color: hsl(220, 90%, 56%);
}

.sfvlt-layout-icon {
    width: 18px;
    height: 18px;
    display: block;
}

/* Checkbox Column */
.sfvlt-col-checkbox {
    width: 30px;
    text-align: center !important;
}

/* Grid Layout overrides */
.sfvlt-core-vault.layout-grid .sfvlt-core-table {
    display: block;
}

.sfvlt-core-vault.layout-grid .sfvlt-core-table thead {
    display: none; /* Hide header rows in Grid View */
}

.sfvlt-core-vault.layout-grid .sfvlt-core-table tbody {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.sfvlt-core-vault.layout-grid .sfvlt-core-table tr {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid hsl(210, 14%, 88%);
    border-radius: 8px;
    padding: 16px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    align-items: center;
    text-align: center;
}

.sfvlt-core-vault.layout-grid .sfvlt-core-table td {
    display: block;
    padding: 4px;
    border: none;
    width: 100%;
}

.sfvlt-core-vault.layout-grid .sfvlt-col-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
}

.sfvlt-core-vault.layout-grid .sfvlt-col-name {
    flex-direction: column;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 8px;
    word-break: break-all;
}

.sfvlt-core-vault.layout-grid .sfvlt-icon {
    font-size: 48px;
    margin-bottom: 8px;
    display: block;
}

.sfvlt-core-vault.layout-grid .sfvlt-col-size {
    font-size: 12px;
    color: hsl(220, 10%, 50%);
    margin-bottom: 12px;
}

.sfvlt-core-vault.layout-grid .sfvlt-col-actions {
    text-align: center;
}

.sfvlt-core-vault.layout-grid .sfvlt-col-actions a {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 6px;
}

/* Flex Mobile View Layout */
.sfvlt-core-vault.layout-mobile .sfvlt-core-table thead {
    display: none;
}

.sfvlt-core-vault.layout-mobile .sfvlt-core-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sfvlt-core-vault.layout-mobile .sfvlt-core-table tr {
    display: flex;
    align-items: center;
    background: hsl(210, 20%, 98%);
    border: 1px solid hsl(210, 14%, 90%);
    border-radius: 8px;
    padding: 12px;
    gap: 10px;
    position: relative;
}

.sfvlt-core-vault.layout-mobile .sfvlt-core-table td {
    padding: 0;
    border: none;
}

.sfvlt-core-vault.layout-mobile .sfvlt-col-checkbox {
    order: 1;
}

.sfvlt-core-vault.layout-mobile .sfvlt-col-name {
    order: 2;
    flex-grow: 1;
}

.sfvlt-core-vault.layout-mobile .sfvlt-col-size {
    order: 3;
    font-size: 13px;
    color: hsl(220, 10%, 50%);
    padding-right: 10px;
}

.sfvlt-core-vault.layout-mobile .sfvlt-col-actions {
    order: 4;
    display: flex;
    flex-direction: column;
    gap: 4px;
}



/* strict modern CSS boundaries for image/PDF thumbnails */
.sfvlt-thumbnail-img {
    aspect-ratio: 1/1 !important;
    object-fit: cover !important;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid hsl(210, 14%, 88%);
    display: inline-block;
    vertical-align: middle;
}

.layout-grid .sfvlt-thumbnail-img {
    width: 80px;
    height: 80px;
}

/* Drag and Drop Zone overrides */
.sfvlt-core-upload-form {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 24px !important;
    display: block !important;
}

.sfvlt-pro-dropzone {
    border: 1px solid hsl(210, 14%, 90%);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.sfvlt-pro-dropzone:hover {
    border-color: hsl(220, 90%, 56%);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.sfvlt-pro-dropzone.sfvlt-dragover {
    border-color: hsl(220, 90%, 56%);
    background-color: hsl(210, 40%, 98%);
}

.sfvlt-dropzone-icon-container {
    background-color: hsl(210, 100%, 96%);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: hsl(213, 94%, 68%);
}

.sfvlt-dropzone-icon-svg {
    width: 32px;
    height: 32px;
    display: block;
}

.sfvlt-dropzone-text {
    font-size: 14px;
    color: hsl(220, 10%, 45%);
    margin: 0 0 12px 0;
    font-weight: 400;
}

.sfvlt-select-files-btn {
    background-color: hsl(220, 90%, 56%);
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 12px;
    display: inline-block;
}

.sfvlt-select-files-btn:hover {
    background-color: hsl(220, 90%, 46%);
}

.sfvlt-dropzone-subtext {
    font-size: 12px;
    color: hsl(220, 10%, 65%);
    margin: 0;
}

/* Multi-file Queue and Progress Bars */
.sfvlt-pro-queue-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.sfvlt-queue-item {
    background: #ffffff;
    border: 1px solid hsl(210, 14%, 90%);
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.sfvlt-queue-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

.sfvlt-queue-filename {
    color: hsl(210, 14%, 20%);
    word-break: break-all;
    padding-right: 10px;
}

.sfvlt-queue-status {
    font-size: 12px;
    color: hsl(220, 10%, 50%);
    white-space: nowrap;
}

.sfvlt-queue-status.success {
    color: hsl(150, 80%, 35%);
}

.sfvlt-queue-status.error {
    color: hsl(350, 80%, 50%);
}

.sfvlt-queue-progress-bg {
    background: hsl(210, 14%, 92%);
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
    width: 100%;
}

.sfvlt-queue-progress-bar {
    background: hsl(150, 80%, 42%);
    height: 100%;
    width: 0%;
    transition: width 0.1s ease;
}

/* Share AJAX Email Modal */
.sfvlt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
}

.sfvlt-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sfvlt-modal-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    position: relative;
    width: 440px;
    max-width: 90%;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

.sfvlt-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid hsl(210, 14%, 92%);
    padding-bottom: 12px;
}

.sfvlt-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: hsl(210, 14%, 15%);
}

.sfvlt-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: hsl(210, 14%, 60%);
    line-height: 1;
    padding: 0;
}

.sfvlt-modal-close:hover {
    color: hsl(210, 14%, 20%);
}

.sfvlt-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sfvlt-modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sfvlt-modal-field label {
    font-size: 13px;
    font-weight: 500;
    color: hsl(210, 14%, 30%);
}

.sfvlt-modal-field input[type="text"],
.sfvlt-modal-field input[type="email"],
.sfvlt-modal-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid hsl(210, 14%, 85%);
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
    font-family: inherit;
}

.sfvlt-modal-field input:focus,
.sfvlt-modal-field textarea:focus {
    border-color: hsl(220, 90%, 56%);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.sfvlt-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid hsl(210, 14%, 92%);
    padding-top: 16px;
}

.sfvlt-modal-status {
    font-size: 13px;
    margin-top: 4px;
}

.sfvlt-modal-status.success {
    color: hsl(150, 80%, 35%);
}

.sfvlt-modal-status.error {
    color: hsl(350, 80%, 50%);
}

