/**
 * DocuSign V2 CSS - Compact One-Page Layout
 * Sound Genetic's Inc.
 */

/* Import FilePond */
@import url('https://unpkg.com/filepond/dist/filepond.min.css');

/* Main Wrapper */
.docusign-v2-wrapper {
    min-height: 100vh;
    /* background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(26, 26, 46, 0.98) 100%); */
}

/* Header */
.docusign-header {
    background: rgba(16, 22, 39, 0.9);
    border-bottom: 1px solid rgba(125, 80, 244, 0.2);
}

/* Content */
.docusign-content {
    padding: 10px 0;
}

/* Compact Cards */
.docusign-card.compact {
    background: rgba(16, 22, 39, 0.7);
    /* backdrop-filter: blur(20px); */
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(125, 80, 244, 0.2);
    height: calc(100vh - 120px);
    overflow-y: auto;
}

.card-title-sm {
    font-size: 14px;
    font-weight: 600;
    color: #7d50f4;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(125, 80, 244, 0.2);
}

/* Demo Documents List */
.demo-docs-list {
    max-height: 150px;
    overflow-y: auto;
}

.demo-doc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(125, 80, 244, 0.1);
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 13px;
    color: #e0e0e0;
}

.demo-doc-item i {
    font-size: 18px;
}

.demo-doc-item span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-xs {
    padding: 2px 8px;
    font-size: 11px;
}

/* Upload Section */
.upload-section {
    padding: 6px 0;
}

/* FilePond Customization */
.filepond--root {
    margin-bottom: 0;
    font-size: 12px;
}

.filepond--drop-label {
    min-height: 60px;
    background: rgba(125, 80, 244, 0.1);
    border: 2px dashed rgba(125, 80, 244, 0.3);
    border-radius: 8px;
}

.filepond--panel-root {
    background: transparent;
}

/* Document Preview */
.doc-preview {
    margin-top: 8px;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(125, 80, 244, 0.1);
    border-radius: 6px 6px 0 0;
    font-size: 12px;
    color: #e0e0e0;
}

/* User Selection */
.user-selection {
    margin-bottom: 8px;
}

.form-label-sm {
    font-size: 11px;
    color: #b0b0b0;
    margin-bottom: 4px;
}

.form-select-sm {
    padding: 4px 8px;
    font-size: 12px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(125, 80, 244, 0.3);
    color: #e0e0e0;
    border-radius: 6px;
}

.form-select-sm:focus {
    border-color: #7d50f4;
    background: rgba(26, 26, 46, 0.9);
    color: #e0e0e0;
}

/* Phrase Box */
.phrase-box-sm {
    padding: 6px 10px;
    background: rgba(125, 80, 244, 0.1);
    border-left: 3px solid #7d50f4;
    border-radius: 4px;
    font-size: 11px;
    color: #e0e0e0;
}

/* Recording Controls */
.recording-controls-compact {
    text-align: center;
    margin: 8px 0;
}

.btn-record-compact {
    background: linear-gradient(135deg, #7d50f4 0%, #5a3db8 100%);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.btn-record-compact i {
    font-size: 24px;
}

.btn-record-compact span {
    font-size: 10px;
    margin-top: 2px;
}

.btn-record-compact:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(125, 80, 244, 0.6);
}

.btn-record-compact.recording {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

/* Audio Visualizer */
#audioVisualizer {
    background: rgba(125, 80, 244, 0.05);
    border-radius: 6px;
    margin: 8px 0;
}

/* Verification Status */
.verification-status-compact {
    text-align: center;
    padding: 6px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 6px;
    font-size: 12px;
    color: #22c55e;
    margin-top: 8px;
}

.verification-status-compact i {
    font-size: 18px;
    vertical-align: middle;
}

/* Signature Preview */
.signature-preview-sm {
    text-align: center;
    padding: 10px;
    background: rgba(125, 80, 244, 0.05);
    border-radius: 8px;
}

.signature-img-sm {
    max-width: 100%;
    height: 60px;
    object-fit: contain;
}

.signature-verified-sm {
    margin-top: 6px;
    padding: 4px 8px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 4px;
    font-size: 11px;
    color: #22c55e;
    display: inline-block;
}

.signature-verified-sm i {
    font-size: 14px;
    vertical-align: middle;
}

/* Progress Container */
.progress-container {
    margin: 10px 0;
    background: rgba(125, 80, 244, 0.1);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.progress-bar-sm {
    height: 100%;
    background: linear-gradient(90deg, #7d50f4 0%, #22c55e 100%);
    width: 0%;
    transition: width 0.3s ease;
}

/* Success Section */
.success-section {
    text-align: center;
    padding: 12px;
}

.success-icon-sm {
    font-size: 40px;
    color: #22c55e;
    margin-bottom: 8px;
}

.success-title-sm {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 8px;
}

.doc-details-sm {
    background: rgba(125, 80, 244, 0.05);
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 10px;
    font-size: 11px;
    color: #b0b0b0;
    text-align: left;
}

.doc-details-sm div {
    margin-bottom: 4px;
}

.doc-details-sm strong {
    color: #7d50f4;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 48px;
    color: #7d50f4;
}

.loading-spinner p {
    margin-top: 10px;
    font-size: 14px;
}

/* Buttons */
.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

/* Scrollbar Styling */
.docusign-card.compact::-webkit-scrollbar,
.demo-docs-list::-webkit-scrollbar {
    width: 4px;
}

.docusign-card.compact::-webkit-scrollbar-track,
.demo-docs-list::-webkit-scrollbar-track {
    background: rgba(125, 80, 244, 0.1);
    border-radius: 4px;
}

.docusign-card.compact::-webkit-scrollbar-thumb,
.demo-docs-list::-webkit-scrollbar-thumb {
    background: rgba(125, 80, 244, 0.4);
    border-radius: 4px;
}

.docusign-card.compact::-webkit-scrollbar-thumb:hover,
.demo-docs-list::-webkit-scrollbar-thumb:hover {
    background: rgba(125, 80, 244, 0.6);
}

/* Signing Method Selection Card */
.signing-method-card {
    background: rgba(16, 22, 39, 0.7);
    border-radius: 12px;
    padding: 15px 20px;
    border: 1px solid rgba(125, 80, 244, 0.3);
    margin-bottom: 15px;
}

.signing-method-title {
    font-size: 16px;
    font-weight: 600;
    color: #7d50f4;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.signing-method-options {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.signing-method-options .form-check-inline {
    margin-right: 0;
    flex: 1;
    min-width: 250px;
}

.signing-method-options .form-check-label {
    cursor: pointer;
    padding: 12px 15px;
    background: rgba(125, 80, 244, 0.1);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #e5e7eb;
}

.signing-method-options .form-check-label:hover {
    background: rgba(125, 80, 244, 0.2);
    border-color: rgba(125, 80, 244, 0.4);
}

.signing-method-options .form-check-input:checked + .form-check-label {
    background: rgba(125, 80, 244, 0.25);
    border-color: #7d50f4;
    color: #fff;
}

.signing-method-options .form-check-label i {
    font-size: 18px;
    margin-right: 5px;
    vertical-align: middle;
}

.signing-method-options .form-check-label small {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .docusign-card.compact {
        height: auto;
        margin-bottom: 10px;
    }

    .signing-method-options {
        flex-direction: column;
        gap: 10px;
    }

    .signing-method-options .form-check-inline {
        min-width: 100%;
    }
}
