:root {
    --bg-color: #0f172a;
    --sidebar-bg: rgba(30, 41, 59, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

.app-container {
    display: flex;
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: all 0.3s ease;
}

.logo-area {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area i {
    color: var(--accent-color);
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    margin-bottom: 20px;
    font-size: 13px;
    /* Explicit size */
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.menu-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
}

.menu-item {
    padding: 6px 16px;
    margin-bottom: 1px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    /* Match button */
}

/* Tree View Styles */
.menu-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 500;
    transition: background 0.2s;
    border-radius: 8px;
    margin-bottom: 1px;
    font-size: 13px;
    /* Match button */
}

.menu-group-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.menu-group-items {
    padding-left: 20px;
    /* Indentation */
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.menu-group-items.collapsed {
    display: none;
}

.group-icon {
    transition: transform 0.2s;
}

.group-icon.rotated {
    transform: rotate(90deg);
}

/* ... existing code ... */

/* Context Menu */
.context-menu {
    display: none;
    position: absolute;
    z-index: 2000;
    width: 200px;
    padding: 0;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.context-menu ul {
    list-style: none;
}

.context-menu li {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    transition: background 0.2s;
}

.context-menu li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.context-menu li i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.text-danger {
    color: #ef4444 !important;
}

.text-danger:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}


.menu-item:hover,
.menu-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.menu-item i {
    font-size: 0.9em;
}

/* Main Content */
.main-content {
    flex: 1;
    position: relative;
    background: black;
}

#presentation-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    /* Default iframe bg */
    display: none;
}

#presentation-frame.show {
    display: block;
}

.placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.placeholder.show {
    opacity: 1;
    pointer-events: auto;
}

.placeholder .content {
    text-align: center;
    color: var(--text-secondary);
}

.placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.1);
}

.placeholder h2 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.glass-panel {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 16px;
    width: 400px;
    box-shadow: var(--glass-shadow);
    color: var(--text-primary);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-modal:hover {
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input[type="text"],
.select-wrapper select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-family: inherit;
    outline: none;
}

.form-group input[type="text"]:focus,
.select-wrapper select:focus {
    border-color: var(--accent-color);
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    font-size: 0.8rem;
}

.select-wrapper select {
    appearance: none;
    cursor: pointer;
}

.select-wrapper select option {
    background: #1e293b;
    color: var(--text-primary);
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
}

.file-drop-area {
    border: 2px dashed var(--glass-border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.file-drop-area:hover {
    border-color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
}

.file-drop-area input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-drop-area i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--accent-hover);
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    font-size: 0.9rem;
}

.radio-option input {
    display: none;
}

.custom-radio {
    width: 16px;
    height: 16px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.radio-option input:checked+.custom-radio {
    border-color: var(--accent-color);
}

.radio-option input:checked+.custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* Drag and Drop Styles */
.dragging {
    opacity: 0.5;
    background: rgba(59, 130, 246, 0.2) !important;
}

.drag-over-top {
    border-top: 2px solid var(--accent-color) !important;
}

.drag-over-bottom {
    border-bottom: 2px solid var(--accent-color) !important;
}

.drag-into {
    background: rgba(59, 130, 246, 0.1) !important;
    border: 1px dashed var(--accent-color);
}
