/* ==========================================================================
   CEPHOS NEXUS - Video Recording Cloud Sharing Modal & Panels
   Design: Dark Glassmorphic Modern UI with Neon Accents & Responsive Layout
   ========================================================================== */

.cephos-vs-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 15, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: cephosVsFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #f1f5f9;
}

@keyframes cephosVsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cephosVsScaleUp {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.cephos-vs-modal {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(11, 15, 25, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 70px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(56, 189, 248, 0.12);
    border-radius: 20px;
    width: 620px;
    max-width: 96vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: cephosVsScaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.cephos-vs-modal.modal-large {
    width: 820px;
}

/* Header */
.cephos-vs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    user-select: none;
}

.cephos-vs-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cephos-vs-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(59, 130, 246, 0.25) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 18px;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.cephos-vs-header-title {
    font-size: 15.5px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.2px;
}

.cephos-vs-header-sub {
    font-size: 11.5px;
    color: #94a3b8;
    margin-top: 2px;
}

.cephos-vs-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.15s ease;
}

.cephos-vs-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

/* Nav Tabs */
.cephos-vs-tabs {
    display: flex;
    gap: 6px;
    padding: 10px 24px 0 24px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cephos-vs-tab {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 7px;
}

.cephos-vs-tab:hover {
    color: #e2e8f0;
}

.cephos-vs-tab.active {
    color: #38bdf8;
    border-bottom-color: #38bdf8;
}

/* Body / Content */
.cephos-vs-body {
    padding: 22px 24px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cephos-vs-body::-webkit-scrollbar {
    width: 6px;
}
.cephos-vs-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Recipient Type Selector (Cards) */
.cephos-vs-type-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cephos-vs-type-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.cephos-vs-type-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(56, 189, 248, 0.4);
}

.cephos-vs-type-card.active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(30, 58, 138, 0.25) 100%);
    border-color: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.cephos-vs-type-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #94a3b8;
    transition: all 0.2s;
}

.cephos-vs-type-card.active .cephos-vs-type-icon {
    background: #38bdf8;
    color: #0b1120;
}

.cephos-vs-type-info {
    display: flex;
    flex-direction: column;
}

.cephos-vs-type-name {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
}

.cephos-vs-type-desc {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
}

/* Form Controls */
.cephos-vs-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cephos-vs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cephos-vs-label {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cephos-vs-label-tag {
    font-size: 10.5px;
    font-weight: 500;
    color: #64748b;
}

.cephos-vs-input {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    padding: 10px 14px;
    font-size: 13px;
    color: #f8fafc;
    outline: none;
    transition: all 0.15s ease;
    font-family: inherit;
}

.cephos-vs-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
    background: rgba(15, 23, 42, 0.85);
}

.cephos-vs-input::placeholder {
    color: #64748b;
}

.cephos-vs-hint {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

/* Information & Security Banners */
.cephos-vs-alert-box {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 11.5px;
    line-height: 1.45;
    color: #bae6fd;
}

.cephos-vs-alert-box i {
    font-size: 16px;
    color: #38bdf8;
    margin-top: 1px;
    flex-shrink: 0;
}

.cephos-vs-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fde68a;
}

.cephos-vs-alert-warning i {
    color: #fbbf24;
}

.cephos-vs-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.cephos-vs-alert-error i {
    color: #f87171;
}

/* Confirmation Summary Card */
.cephos-vs-summary-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cephos-vs-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 8px;
}

.cephos-vs-summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cephos-vs-summary-label {
    color: #94a3b8;
    font-weight: 500;
}

.cephos-vs-summary-value {
    color: #f8fafc;
    font-weight: 600;
    text-align: right;
}

/* Progress Section */
.cephos-vs-progress-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
    text-align: center;
    gap: 16px;
}

.cephos-vs-progress-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.cephos-vs-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, #4ade80 100%);
    border-radius: 10px;
    transition: width 0.2s ease;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.cephos-vs-status-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cephos-vs-status-detail {
    font-size: 12px;
    color: #94a3b8;
}

/* Footer / Actions */
.cephos-vs-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cephos-vs-btn {
    padding: 10px 20px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    transition: all 0.15s ease;
    user-select: none;
}

.cephos-vs-btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cephos-vs-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.cephos-vs-btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.cephos-vs-btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.cephos-vs-btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.cephos-vs-btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.cephos-vs-btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.cephos-vs-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* Shares List Table */
.cephos-vs-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.4);
}

.cephos-vs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

.cephos-vs-table th {
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 14px;
    color: #94a3b8;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cephos-vs-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
}

.cephos-vs-table tr:last-child td {
    border-bottom: none;
}

.cephos-vs-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.cephos-vs-badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cephos-vs-badge-doctor {
    background: rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.cephos-vs-badge-patient {
    background: rgba(14, 165, 233, 0.18);
    color: #7dd3fc;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.cephos-vs-badge-success {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.cephos-vs-badge-failed {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.cephos-vs-action-icons {
    display: flex;
    gap: 6px;
}

.cephos-vs-mini-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cephos-vs-mini-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.cephos-vs-mini-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
}
