#gameSlideIntro {
    background: linear-gradient(0deg, rgb(0 0 0 / 30%), rgb(45 107 137 / 30%));
    box-shadow: inset 0 0 0 2000px rgb(0 227 255 / 30%);
    z-index: 3;
    transition: all 0.3s;
    position: absolute;
    height: 100%;
    width: 100%;
    right: 0;
    color: white;
    text-align: center;
    font-weight: bolder;
    backdrop-filter: blur(10px);
}

#gameSlideIntro:not(.active) {
    right: -100%;
}

#gameSlideBtn {
    z-index: 1;
    position: absolute;
    top: 85%;
    left: 97%;
}

#gameSlideBtn:not(.active) {
    left: -3%;
}

/* Slideshow Panel Styles */
#gameSlideShowPanel {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.slide-content-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 20px;
    animation: slideIn 0.5s ease-out;
    overflow-y: auto;
    min-height: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.current-slide-media {
    max-width: 95%;
    max-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.current-slide-media img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.current-slide-media video {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.current-slide-text {
    font-size: 60px;
    line-height: 1;
    color: white;
    text-align: center;
    max-width: 95%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 14px 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.slide-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background: transparent;
}

.slide-nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slide-nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.slide-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slide-nav-btn:disabled:hover {
    transform: scale(1);
}

.slide-nav-btn svg {
    width: 30px;
    height: 30px;
    color: #333;
}

.slide-indicator {
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.no-slides-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    padding: 40px;
}

.no-slides-message svg {
    margin-bottom: 20px;
}

.no-slides-message p {
    font-style: italic;
    line-height: 1.8;
}

/* Slide Creator Modal Styles */
.slide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

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

.slide-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from { 
        transform: translateY(50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-editor-content {
    max-width: 600px;
}

.slide-modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(90deg, #307BEB 0%, #04BF93 100%);
}

.slide-modal-header h3,
.slide-modal-header h4 {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
}

.slide-close-btn {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: white;
    transition: transform 0.2s;
    padding: 0;
    width: 35px;
    height: 35px;
    line-height: 1;
}

.slide-close-btn:hover {
    transform: rotate(90deg);
}

.slide-modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.slide-creator-list {
    margin-bottom: 20px;
}

.slide-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.slide-item:hover {
    border-color: #667eea;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.slide-item-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 18px;
}

.slide-item-content {
    flex: 1;
    text-align: left;
    color: #333;
}

.slide-item-media {
    max-width: 200px;
    max-height: 120px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slide-item-text {
    color: #333;
    font-weight: normal;
    margin: 0;
    word-wrap: break-word;
    font-size: 14px;
}

.slide-item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

.slide-item-actions button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    font-size: 13px;
}

.slide-move-btn {
    background: #17a2b8;
    color: white;
    padding: 8px 10px !important;
}

.slide-move-btn:hover:not(:disabled) {
    background: #138496;
    transform: scale(1.05);
}

.slide-move-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.slide-move-btn:disabled:hover {
    transform: none;
}

.slide-edit-btn {
    background: #ffc107;
    color: #000;
}

.slide-edit-btn:hover {
    background: #e0a800;
    transform: scale(1.05);
}

.slide-delete-btn {
    background: #dc3545;
    color: white;
}

.slide-delete-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

.slide-add-btn {
    background: linear-gradient(90deg, #307BEB 0%, #04BF93 100%);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.slide-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.slide-form-group {
    margin-bottom: 20px;
}

.slide-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
    font-size: 14px;
    text-align: left;
}

.slide-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.slide-form-control:focus {
    outline: none;
    border-color: #667eea;
}

textarea.slide-form-control {
    resize: vertical;
    font-family: inherit;
}

.slide-media-preview {
    margin-top: 15px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 15px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.slide-media-preview img,
.slide-media-preview video {
    max-width: 100%;
    max-height: 300px;
    border-radius: 6px;
}

.slide-media-preview.empty {
    color: #999;
    font-style: italic;
}

.slide-modal-footer {
    padding: 20px 25px;
    border-top: 2px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.slide-cancel-btn {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.slide-cancel-btn:hover {
    background: #5a6268;
    transform: scale(1.05);
}

.slide-save-btn {
    background: linear-gradient(90deg, #307BEB 0%, #04BF93 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.slide-save-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.slide-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

.slide-empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* Ensure SweetAlert appears above slide modals */
.swal-high-zindex {
    z-index: 20000 !important;
}
