/* assets/css/style_upload.css */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@400;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Urbanist', sans-serif; }

body { 
    background: #121212 !important; 
    color: #fff !important; 
    min-height: 100vh; 
    padding-bottom: 80px; 
}

/* Header Styling */
.header {
    padding: 15px 20px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-bottom: 1px solid #333; 
    background: #121212;
    position: sticky; 
    top: 0; 
    z-index: 50;
}
.header h3 { font-size: 17px; font-weight: 700; color: white; margin: 0; }
.header i { font-size: 20px; color: #fff; cursor: pointer; }

/* Main Container */
.post-container { padding: 20px; }

/* Flex Row for Video + Caption */
.content-row { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 20px; 
    align-items: flex-start;
}

/* Video Preview Box */
.video-preview-box {
    width: 110px; 
    height: 150px;
    background: #1f1f1f; 
    border-radius: 8px;
    overflow: hidden; 
    flex-shrink: 0; 
    position: relative;
    display: flex; 
    align-items: center; 
    justify-content: center;
    border: 1px solid #333;
    cursor: pointer;
}
.video-preview-box video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: none; /* JS will show this */
}
.video-preview-box i { font-size: 24px; color: #555; }

/* Caption Area */
.caption-box { flex-grow: 1; }
.caption-box textarea {
    width: 100%; 
    height: 150px;
    background: transparent; 
    border: none;
    color: white; 
    font-size: 15px; 
    resize: none;
    outline: none; 
    padding: 5px 0;
    line-height: 1.4;
}

/* Options List */
.options-list { border-top: 1px solid #222; border-bottom: 1px solid #222; }
.option-item {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 18px 0; 
    border-bottom: 1px solid #222; 
    font-size: 15px;
    color: white;
}
.option-item:last-child { border-bottom: none; }
.option-item i.icon-left { 
    margin-right: 12px; 
    width: 20px; 
    text-align: center; 
    color: #aaa; 
}
.option-right { 
    color: #888; 
    font-size: 13px; 
    display: flex; 
    align-items: center; 
}

/* Upload Overlay (Popup) */
.upload-overlay {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #1f1f1f; padding: 25px 20px;
    border-top-left-radius: 20px; border-top-right-radius: 20px;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.8);
    transform: translateY(110%); 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    z-index: 100;
}
.upload-overlay.active { transform: translateY(0); }

.progress-bar-bg {
    width: 100%; height: 8px; background: #333; border-radius: 10px;
    overflow: hidden; margin: 15px 0;
}
.progress-fill {
    height: 100%; width: 0%; background: #fe2c55; /* TikTok Red */
    transition: width 0.2s;
}
.status-text { text-align: center; font-size: 13px; color: #aaa; font-weight: 600; }

/* Bottom Action Bar */
.action-bar {
    position: fixed; bottom: 0; left: 0; width: 100%;
    padding: 15px 20px; background: #121212;
    border-top: 1px solid #222; 
    display: flex; gap: 10px;
    z-index: 40;
}
.btn-draft {
    flex: 1; padding: 14px; background: #2f2f2f; color: white;
    border: none; border-radius: 4px; font-weight: 700; font-size: 14px;
}
.btn-post {
    flex: 1; padding: 14px; background: #fe2c55; color: white;
    border: none; border-radius: 4px; font-weight: 700; font-size: 14px;
    cursor: pointer;
}
.btn-post:disabled { opacity: 0.5; cursor: not-allowed; }

/* Hide default file input */
#fileInput { display: none !important; }