.reel-creator-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.reel-creator-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000;
    border-bottom: 1px solid #2f2f2f;
    z-index: 10;
}

.reel-creator-header h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.back-to-reels-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

.share-reel-btn {
    background: #1877F2;
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
}

.share-reel-btn:disabled {
    background: #3a3b3c;
    color: #b0b3b8;
    cursor: not-allowed;
}

.reel-creator-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.media-upload-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.direct-upload-btn {
    background: #1877F2;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 20px 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    transition: transform 0.2s, background-color 0.2s;
}

.direct-upload-btn:hover {
    background: #166fe5;
    transform: scale(1.05);
}

.direct-upload-btn i {
    font-size: 32px;
}

.reel-preview-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-preview-container {
    flex: 1;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.text-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.text-overlay {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    pointer-events: auto;
    cursor: move;
    padding: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    max-width: 80%;
    word-wrap: break-word;
}

.preview-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 5;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.reel-editor {
    padding: 16px;
    background-color: #000;
    border-top: 1px solid #2f2f2f;
}

.caption-editor {
    margin-bottom: 16px;
}

.reel-caption-input {
    width: 100%;
    min-height: 100px;
    background-color: transparent;
    border: 1px solid #3a3b3c;
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    resize: none;
    font-family: inherit;
    font-size: 16px;
}

.reel-caption-input:focus {
    outline: none;
    border-color: #1877F2;
}

.character-count {
    text-align: right;
    font-size: 12px;
    color: #65676B;
    margin-top: 4px;
}

.text-editor-panel {
    background: #1c1c1c;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.text-overlay-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #3a3b3c;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    margin-bottom: 12px;
}

.text-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.text-color-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

.text-color-btn.active {
    outline: 2px solid #1877F2;
    outline-offset: 2px;
}

.add-text-confirm {
    background: #1877F2;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 500;
}

.upload-progress-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.progress-container {
    width: 100%;
    max-width: 400px;
    background-color: #1c1c1c;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.progress-info {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.progress-info i {
    font-size: 24px;
    color: #1877F2;
    margin-right: 12px;
}

.progress-details {
    flex: 1;
}

.progress-details h3 {
    margin: 0 0 4px 0;
    color: #fff;
    font-size: 16px;
}

.progress-details p {
    margin: 0;
    color: #b0b3b8;
    font-size: 14px;
}

.progress-percentage {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.progress-bar {
    height: 6px;
    background-color: #3a3b3c;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #1877F2;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.upload-success-notification,
.music-placeholder-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #1877F2;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1200;
    opacity: 0;
    transition: all 0.3s ease;
}

.music-placeholder-notification {
    background-color: #e4405f;
}

.upload-success-notification.show,
.music-placeholder-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-content i {
    font-size: 18px;
}

.hidden {
    display: none !important;
}
