/* === File Section (compact admin design) === */
#vdocipher-file-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px 14px 14px;
    margin: 0px auto 12px auto;
    max-width: 650px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#vdocipher-file-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin: 0;
}

#file-container {
    margin-top: 10px;
    font-size: 0.95em;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.file-item a {
    color: #0073aa;
    text-decoration: none;
    font-size: 0.95em;
}

.file-item a:hover {
    text-decoration: underline;
}

.file-delete {
    color: #999;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    margin-left: 8px;
    transition: color 0.2s ease;
}

.file-delete:hover {
    color: #dc3545;
}

.file-buttons {
    font-size: 14px;
}
#file-remove-all-btn {
    background: #ffeaea;
    color: #c0392b;
    border: 1px solid #f5b7b1;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    margin-right: 8px;
}
#file-remove-all-btn:hover {
    background: #f8d7da;
    color: #a93226;
}
#file-upload-btn {
    background: #333;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s ease;
}
#file-upload-btn:hover {
    background: #555;
}

/* === Video Header === */
.vdocipher-header {
    margin-bottom: 25px;
    text-align: center;
}

.vdocipher-header .vdocipher-title {
    font-size: 4rem !important;
    font-weight: 500 !important;
    color: #222 !important;
    margin: 20px auto !important;
    text-align: justify !important;
    display: block !important;
    line-height: 1.1;
    padding: 0 40px;
}

.view-info {
    margin: 10px 0;
    font-size: 15px;
    font-weight: 600;
}

.margin-left {
    margin-left: 40px;
}
/* ============================================================
  VDOCIPHER ADMIN ONLY STYLES
  ============================================================ */
#vdocipher-settings-wrapper .lecture-file-btn {
    margin: 0 !important;
}

.lecture-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #f1f5f9;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    align-items: center;
    gap: 8px;
}

.past-exam-btn {
    margin-left: auto;
    margin-right: 10px;
    background: #000;
    color: #fff !important;
    padding: 8px 22px 15px;
    border-radius: 15px;
    font-size: 16px;
    line-height: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    border: 1px solid #000;
    margin: 0;
}
.past-exam-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}

/* drag drop */
.drag-handle {
    font-size: 17px !important;
    line-height: 1 !important;  
    display: inline-block !important;
    width: 10px !important;
    text-align: center;
    padding: 0 !important;
    margin: 0 6px 0 0 !important;
    cursor: grab;
    color: #666;
    margin-top: 25px !important;
}
.drag-handle:active, .admin-lecture.drag-handle:active {
  cursor: grabbing;
}
.video-row {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.5;
}
.video-title {
    margin-left: 4px;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.video-buttons {
    display: flex !important;
    flex: auto;
    justify-content: flex-end;
    position: relative;
    right: 30px;
    top: 10px;
}

.video-row.dragging {
    opacity: 0.4;
    background: #e8e8e8;
    border: 1px solid #ccc;
}

.video-row.drag-over {
    background: #93b2cf !important;
    border: 1px dashed #0470d5;
}
.video-row.placeholder {
    background: #fff !important;
    border: 1px dashed #0470d5;
    border-radius: 8px;
    animation: pulseDrop 1.1s infinite ease-in-out;
}

/* Tuition */
.tuition-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.tuition-field {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tuition-input {
    box-sizing: border-box !important;
    margin-top: -20px;
}

#vdocipher-admin-layout {
    width: 100%;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

#vdocipher-settings-wrapper {
    flex: 1;
    transition: all 0.25s ease;
}

#vdocipher-right-panel {
    flex: 1;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    max-height: 80vh;
    overflow: auto;
    display: none;
    transition: all 0.25s ease;
}

#vdocipher-admin-layout.split #vdocipher-settings-wrapper {
    flex: 1;
}

#vdocipher-admin-layout.split #vdocipher-right-panel {
    display: block;
}

/* ------------------------------------------------------
   MANAGE LECTURE – PROFESSIONAL DASHBOARD STYLE
------------------------------------------------------- */
.manage-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    font-family: "Source Serif Pro", serif !important;
    animation: fadeIn 0.2s ease-out;
}

.manage-close {
    font-size: 28px;
    cursor: pointer;
    opacity: 0.6;
}
.manage-close:hover { opacity: 1; }

/* ---------- FORM ELEMENTS ---------- */
.manage-panel label {
    margin: 20px 0 -20px;
    display: block;
    color: #333;
}

.manage-panel input,
.manage-panel select {
    width: 95%;
    padding: 10px 14px !important;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fafafa;
    transition: all 0.25s;
    font-family: 'Source Serif Pro', sans-serif !important;
}
.manage-panel select {
    width: 100%;
}

.manage-panel input:focus,
.manage-panel select:focus {
    border-color: #6366f1;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* ---------- VIDEO LIST ---------- */
.video-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow: auto;
    padding: 10px 0 0;
}

.video-item {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.video-remove {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
}
.video-remove:hover { color: #b91c1c; }

/* ---------- VIEWERS ---------- */
.viewer-list {
    padding: 12px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    max-height: 200px;
    overflow-y: auto;
}

.viewer-list ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.viewer-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 6px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.viewer-remove {
    font-weight: bold;
    cursor: pointer;
}
.viewer-remove:hover { color: #b91c1c; }

.viewer-section {
    margin-top: 25px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 10px;
    max-height: 300px;
    overflow: auto;
}

.viewer-header {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.viewer-header label {
    white-space: nowrap;
    margin-top: 0px;
}

.viewer-header input {
    flex: 1;
    margin-top: 20px;
}

.viewer-header button {
    white-space: nowrap;
}

.viewer-list-ul,
.temp-viewer-list-ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
    padding-left: 0px;
}

.viewer-list-ul li,
.temp-viewer-list-ul li {
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.viewer-list-ul li span,
.temp-viewer-list-ul li span {
    cursor: pointer;
    font-weight: 700;
}

/* Tuition row */
.tuition-row {
    display: flex;
    gap: 18px;
}

.tuition-field { flex: 1; }
.tuition-field label {
    margin-bottom: 0 !important;
}

/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

#vdocipher-settings-wrapper label,
.manage-panel label {
    font-weight: 600;
    font-size: 15px;
    display: block;
}

#lecture-list ul li:hover {
    background: #aac4de;
    border-color: #d1d5db;
}
.manage-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    animation: fadeIn .2s ease-out;
}

.manage-panel .header {
    display:flex;
    justify-content: space-between;
    align-items:center;
}
.video-list li {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.video-list li span {
    cursor: pointer;
    margin-left: 8px;
    font-weight: 700;
}

/* GLOBAL BUTTON RESET */
#vdocipher-settings-wrapper button,
.manage-panel button,
#lecture-list button,
.video-buttons button {
    padding: 8px 14px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    border: 1px solid #ccc !important;
    background: #fff;
    font-size: 13px !important;
    color: #000;
    transition: 0.15s ease;
}

#vdocipher-settings-wrapper button:hover,
.manage-panel button:hover,
#lecture-list button:hover {
    background: #e4e4e4 !important;
    color: #000;
}
#lecture-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 15px;
    border: 1px solid #d3e4f5 !important;
    border-radius: 8px;
    padding: 10px;
    background: #f1f5f9;
}

#lecture-list li span {
    flex-grow: 1;
}

#vdocipher-settings-wrapper label {
    margin-bottom: 4px !important;
}

#vdocipher-settings-wrapper input,
#vdocipher-settings-wrapper select,
.manage-panel input,
.manage-panel select {
    padding: 8px 12px;
}
.manage-panel {
    padding: 18px !important;
    border-radius: 10px !important;
}
.video-list li,
.viewer-list-ul li {
    padding: 6px 10px !important;
    border-radius: 6px !important;
}
/* FORM INLINE ROW */
.row-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.row-form label {
    margin-bottom: 0 !important;
    white-space: nowrap;
}

.row-form input {
    flex: 1;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fafafa;
}

.row-form button {
    white-space: nowrap;
}
.manage-buttons {
    display: flex !important;
    justify-content: center !important;
    gap: 6px;
    margin-top: 20px !important;
}

.remove-all-viewers,
.remove-all-temp-viewers {
    position: relative;
    margin-top: 20px
}

.admin-lecture.drag-handle {
    flex: 0 0 5%;
    margin: 0 !important;
}

.admin-lecture.lecture-name {
    flex: 0 0 85%;
}
.admin-lecture.edit-delete {
    display: flex;
    flex: 5;
    cursor: pointer;
}
.move-video, .delete-video, .edit-lecture, .delete-lecture{
    color: #666;
    font-size: 17px !important;
}
.lecture-row {
    padding-right: 20px !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.lecture-row.dragging {
    background: #a0c3e5 !important;
    opacity: 0.9;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
    transform: scale(1.04);
    z-index: 10;
}

.lecture-row.drag-over {
    background: #e0edff !important;
    border: 1px dashed #a0c3e5 !important;
}

#lecture-list li.lecture-row.placeholder {
    background: #fff !important;
    border: 1px dashed #0470d5 !important;
    border-radius: 8px;
    animation: pulseDrop 1.1s infinite ease-in-out;
}

@keyframes pulseDrop {
    0% {
        box-shadow: 0 0 0 0 rgba(37,99,235,0.45);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(37,99,235,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37,99,235,0);
    }
}

.material-icons {
    font-family: 'Material Icons' !important;
}
/* ===============================
   MOBILE MODE: MANAGE LECTURE POPUP
   =============================== */
@media (max-width: 900px) {
    #vdocipher-admin-layout.split {
        flex-direction: column;
    }

    #vdocipher-right-panel {
        display: none !important;
    }

    .vdocipher-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 99998;
    }

    .vdocipher-modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: calc(100% - 32px);
        max-width: 520px;
        max-height: 90vh;
        overflow-y: auto;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.35);
        z-index: 99999;
        animation: modalPop 0.18s ease-out;
    }

    @keyframes modalPop {
        from {
            opacity: 0;
            transform: translate(-50%, -55%) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }
}
.lecture-file-upload-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
.btn-main {
    background-color: #000 !important;
    color: #fff !important;
}
.lectures-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 30px;
}

#lecture-filter {
    padding: 8px 12px;
    font-size: 14px;
    width: 40%;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* NOTIFICATION */
.noti-header{
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 7px;
    padding-bottom: 20px;
}

.noti-header label {
    font-size: x-large !important;
    font-weight: 700 !important;
}

/* NOTIFICATION BELL */
.noti-icon {
    cursor: pointer;
    color: #d4b200;
    position: relative;
    top: -10px;
    transition: transform 0.2s ease;
}

.noti-icon:hover {
    animation: bellShake 0.6s ease-in-out;
    color: #e59544;
}

@keyframes bellShake {
    0% { transform: rotate(0); }
    15% { transform: rotate(-15deg); }
    30% { transform: rotate(15deg); }
    45% { transform: rotate(-10deg); }
    60% { transform: rotate(10deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0); }
}
.noti-icon::after {
    font-family: 'Source Serif Pro', sans-serif !important;
    content: "Manage Notification Setting";
    position: absolute;
    padding: 6px 10px;
    margin-top: 5px !important;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    border: 1px solid #ededed;
    background: #ededed;
    border-radius: 8px;
}

.noti-icon:hover::after {
    opacity: 1;
}

/* NOTIFICATION PANEL */
.noti-panel .noti-create-box {
    border: 1px solid #e5e7eb;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #fafafa;
}

.noti-date-row {
    display: flex;
    gap: 12px;
}

.noti-date-row > div {
    flex: 1;
}

.noti-selected-lectures {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.noti-selected-lectures .tag {
    background: #f1f5f9;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.noti-selected-lectures .tag span {
    cursor: pointer;
    font-weight: 700;
}

.noti-item {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fafafa;
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 14px;
}
.noti-item .noti-x {
    position: absolute;
    top: 6px;
    right: 8px;
    cursor: pointer;
    font-size: 16px;
}
.noti-actions {
    margin-top: 6px;
}
.noti-edit-btn {
    font-size: 12px;
    padding: 2px 8px;
}
