body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #0e0e1f;
    color: #e0f7fa;
}

img, video, iframe {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.image-item img, .image-item video, .image-item iframe {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.image-item {
    border: 1px solid #00c4b2;
    padding: 10px;
    margin-bottom: 10px;
    cursor: move;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a1a2f;
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.1);
}

button, .icon-button {
    background-color: #00ffe0;
    color: #0e0e1f;
    border: none;
    padding: 10px 16px;
    margin: 4px 0;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover, .icon-button:hover {
    background-color: #00c4b2;
}

input[type="text"], input[type="number"], input[type="file"] {
    background-color: #1a1a2f;
    color: #e0f7fa;
    border: 1px solid #00c4b2;
    padding: 8px 10px;
    border-radius: 6px;
    margin: 4px 0;
}

input:focus {
    outline: none;
    border-color: #00ffe0;
}

.header {
    height: 60px;
    background: #1a1a2f;
    color: #00ffe0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.1);
}

.footer {
    height: 30px;
    background: #1a1a2f;
    color: #00ffe0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 -2px 10px rgba(0, 255, 255, 0.1);
}

.main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.sidebar {
    width: 260px;
    background: #151526;
    padding: 20px;
    overflow-y: auto;
    color: #e0f7fa;
    box-shadow: inset -1px 0 0 #00c4b2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
}


.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: #0e0e1f;
}

#modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#modal.show {
    display: flex !important;
}

#modal-content {
    background: #1a1a2f;
    color: #e0f7fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2);
}

.slideshow-item {
    background: #1a1a2f;
    padding: 10px;
    border: 1px solid #00c4b2;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 1px 5px rgba(0, 255, 255, 0.1);
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.slideshow-item:hover {
    background: #252545;
    border-color: #00ffe0;
}

.slideshow-item.active {
    background: #2a2a4a;
    border-color: #00ffe0;
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.2);
}

.slideshow-controls {
    display: flex;
    gap: 6px;
}

.slideshow-name {
    font-weight: bold;
    color: #00ffe0;
    width: 100%;
    word-break: break-word;
}


.canvas-item { position: absolute; }

.canvas-delete {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e33;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    z-index: 9999; /* bump up to top */
    position: relative;
    overflow: visible;
}

.canvas-image.selected {
    outline: 2px dashed #00ffe0;
}

.ui-resizable-se {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: #e0f7fa;
    border: 2px solid #00c4b2;
    cursor: se-resize;
    z-index: 11;
}

.form-option {
    margin: 10px 0;
}

.neon-header {
    background-color: #1a1a2f;
    padding: 12px 30px;
    box-shadow: 0 2px 10px rgba(0, 255, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    height: 60px;
    max-width: 120px;
}

.header-title {
    flex: 1;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #00ffe0;
    margin: 0;
}

.header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.header-username {
    font-size: 14px;
    color: #e0f7fa;
}

.header-logout {
    color: #00ffe0;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.3s;
}

.header-logout:hover {
    color: #00c4b2;
}

.icon-button {
    background: #444;
    color: #eee;
    border: none;
    padding: 4px 6px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.icon-button:hover {
    background: #666;
}

#welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #e0f7fa;
}

#welcome-screen h2 {
    color: #00ffe0;
    margin-bottom: 20px;
    font-size: 2.5em;
}

#welcome-screen p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 15px;
    max-width: 600px;
}

.screen-item .screen-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.screen-assignment {
    font-size: 0.85em;
    color: #00c4b2;
    display: block;
}

.canvas-preview {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a4a;
    border: 2px solid #00c4b2;
    border-radius: 5px;
    font-size: 12px;
    text-align: center;
    color: #00ffe0;
    padding: 5px;
    overflow: hidden;
}
