/**
 * Snort Frontend Styles
 * Immersive full-screen UI with minimal chrome
 */

/* ============================================================================
 * RESET & BASE
 * ========================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #000;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

/* ============================================================================
 * FEED VIEW
 * ========================================================================= */

.feed-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Text Content */
.content-text {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

.text-content {
    max-width: 800px;
    font-size: 18px;
    line-height: 1.6;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.text-content p {
    text-align: left;
}

/* Loading/empty states centered */
.text-content .loading-spinner {
    margin: 0 auto 16px;
}

.text-content > p {
    text-align: center;
}

/* Image Content */
.content-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Video Content */
.content-video {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-video video {
    max-width: 100%;
    max-height: 100%;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Zoom Hint */
.zoom-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.content-image:hover .zoom-hint,
.content-video:hover .zoom-hint {
    opacity: 1;
}

/* Zoomable */
.zoomable {
    cursor: default;
}

.zoomable:active {
    cursor: default;
}

/* Loading / Error */
.feed-loading,
.feed-empty,
.feed-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #aaa;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================================
 * CONTROL BOX
 * ========================================================================= */

.control-box {
    position: fixed;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    touch-action: none;
    user-select: none;
}

.control-box.dragging {
    cursor: grabbing;
}

.control-handle {
    text-align: center;
    padding: 4px;
    cursor: grab;
    color: rgba(255, 255, 255, 0.3);
    font-size: 18px;
    min-width: 26px;
}

.control-handle:active {
    cursor: grabbing;
}

.control-buttons {
    display: flex;
    flex-flow: column;
    gap: 12px;
    margin-top: 8px;
    transition: opacity 0.2s, transform 0.2s;
    opacity: 1;
    transform: scale(1);
}

.control-buttons.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.control-buttons button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s;
}

.control-buttons button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.control-buttons button:active:not(:disabled) {
    transform: translateY(0);
}

.control-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 24px;
}

.btn-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Like Button States */
.btn-like {
    background: rgba(255, 255, 255, 0.05);
}

/* Heart icon color based on state */
.btn-like.gold .btn-icon {
    color: #ffd700;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
}

.btn-like.red .btn-icon {
    color: #ff3b30;
    filter: drop-shadow(0 0 4px rgba(255, 59, 48, 0.5));
}

.btn-like:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

/* Liked State - red background when toggled */
.btn-like.liked {
    background: #ff3b30 !important;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.6);
}

.btn-like.liked .btn-icon {
    color: #fff !important;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)) !important;
}

.btn-like.liked .btn-label {
    color: #fff !important;
}

/* Investigation Mode Buttons */
.btn-investigation-flag {
    background: rgba(255, 255, 255, 0.05);
}

.btn-investigation-flag .btn-icon {
    color: #ff3b30;
    filter: drop-shadow(0 0 4px rgba(255, 59, 48, 0.5));
}

.btn-investigation-flag:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

/* Flagged State - red background when toggled */
.btn-investigation-flag.flagged {
    background: #ff3b30 !important;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.6);
}

.btn-investigation-flag.flagged .btn-icon {
    color: #fff !important;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)) !important;
}

.btn-investigation-flag.flagged .btn-label {
    color: #fff !important;
}

.btn-investigation-skip {
    background: rgba(255, 255, 255, 0.05);
}

/* Control Feedback */
.control-feedback {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
    animation: feedbackSlide 0.3s ease;
}

.control-feedback.error {
    background: #ff3b30;
}

.control-feedback.success {
    background: #34c759;
}

@keyframes feedbackSlide {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================================================
 * MENU PANEL
 * ========================================================================= */

.menu-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.2s;
    z-index: 2001;
}

.menu-button:hover {
    background: rgba(40, 40, 40, 0.95);
    transform: scale(1.05);
}

.menu-icon {
    font-size: 20px;
    color: #fff;
}

/* The actual visible sliding panel */
.menu-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: rgba(20, 20, 20, 0.98);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: right 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 2002;
}

.menu-panel.open {
    right: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1999;
}

.menu-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.menu-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    font-size: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-content {
    padding: 20px;
}

.menu-balance {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.balance-label {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.balance-amount {
    font-size: 28px;
    font-weight: 600;
    color: #ffd700;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    color: #fff;
    text-align: left;
    transition: all 0.2s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.menu-item.danger {
    color: #ff3b30;
}

.menu-item-icon {
    font-size: 20px;
}

.menu-item-label {
    font-size: 15px;
}

.menu-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
}

.menu-back {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.menu-back:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Settings View */
.setting-group {
    margin-bottom: 24px;
}

.setting-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #fff;
}

.setting-group small {
    display: block;
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
}

.setting-input-group {
    display: flex;
    gap: 8px;
}

.setting-input-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
}

.btn-save {
    background: #007aff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.btn-save:hover {
    background: #0051d5;
}

.btn-danger {
    background: rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.btn-danger:hover {
    background: rgba(255, 59, 48, 0.3);
}

/* Purchase View */
.purchase-note {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 20px;
}

.purchase-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.purchase-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}

.purchase-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #007aff;
    transform: translateY(-2px);
}

.purchase-amount {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.purchase-credits {
    font-size: 14px;
    color: #ffd700;
}

.purchase-custom {
    margin-top: 24px;
}

/* Creator View */
.creator-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #aaa;
}

.creator-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.creator-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-type {
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
}

.item-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #aaa;
}

/* ============================================================================
 * INVESTIGATION VIEW
 * ========================================================================= */

/* Minimal top banner for investigation mode */
.investigation-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(20, 20, 20, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    color: #aaa;
    z-index: 1500;
}

.investigation-icon {
    font-size: 16px;
    color: #ff3b30;
}

.investigation-exit-btn {
    position: absolute;
    right: 16px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.investigation-exit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.investigation-status {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    max-width: 90vw;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1500;
    display: none; /* Hidden by default, use banner instead */
}

.investigation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.investigation-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #ff3b30;
}

.investigation-icon {
    font-size: 20px;
}

.investigation-exit {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.investigation-exit:hover {
    background: rgba(255, 255, 255, 0.1);
}

.investigation-progress {
    margin-bottom: 16px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #aaa;
}

.progress-value {
    font-weight: 600;
    color: #fff;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff3b30 0%, #ff6b59 100%);
    transition: width 0.5s ease;
}

.progress-fill.complete {
    background: linear-gradient(90deg, #34c759 0%, #5dd776 100%);
}

.investigation-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.investigation-stats .stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
}

.investigation-stats .stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.investigation-stats .stat-label {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

.investigation-instructions {
    font-size: 13px;
    line-height: 1.5;
    color: #aaa;
}

.investigation-instructions p {
    margin-bottom: 8px;
}

.investigation-complete {
    text-align: center;
    padding: 16px 0;
}

.complete-icon {
    font-size: 48px;
    color: #34c759;
    margin-bottom: 12px;
}

.complete-message {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.complete-details {
    font-size: 14px;
    color: #aaa;
}

/* ============================================================================
 * ALERT BOX
 * ========================================================================= */

.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.alert-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.alert-box {
    background: rgba(30, 30, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    min-width: 300px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    animation: alertSlideIn 0.2s ease;
}

@keyframes alertSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.alert-content {
    padding: 24px;
}

.alert-message {
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    margin: 0;
}

.alert-actions {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px;
    justify-content: center;
}

.alert-button {
    flex: 1;
    min-width: 100px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.alert-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.alert-button:active {
    transform: scale(0.98);
}

.alert-button-confirm {
    background: rgba(52, 199, 89, 0.2);
    border-color: rgba(52, 199, 89, 0.4);
}

.alert-button-confirm:hover {
    background: rgba(52, 199, 89, 0.3);
}

.alert-button-cancel {
    background: rgba(255, 59, 48, 0.2);
    border-color: rgba(255, 59, 48, 0.4);
}

.alert-button-cancel:hover {
    background: rgba(255, 59, 48, 0.3);
}

/* ============================================================================
 * UPLOAD DIALOG
 * ========================================================================= */

.upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.upload-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

.upload-dialog {
    background: rgba(30, 30, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 600px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    animation: uploadSlideIn 0.2s ease;
}

@keyframes uploadSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-title {
    font-size: 20px;
    font-weight: 600;
}

.upload-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    font-size: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.upload-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.upload-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px;
    background: transparent;
    border-bottom: 2px solid transparent;
    color: #aaa;
    transition: all 0.2s;
}

.upload-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.upload-tab.active {
    color: #007aff;
    border-bottom-color: #007aff;
}

.tab-icon {
    font-size: 24px;
}

.tab-label {
    font-size: 14px;
    font-weight: 500;
}

.upload-content {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.upload-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.upload-notice {
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #007aff;
    line-height: 1.5;
}

.upload-label {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.upload-textarea {
    width: 100%;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
}

.upload-textarea:focus {
    outline: none;
    border-color: #007aff;
}

.upload-textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upload-char-count {
    text-align: right;
    font-size: 12px;
    color: #aaa;
}

.upload-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-dropzone:hover {
    border-color: #007aff;
    background: rgba(0, 122, 255, 0.05);
}

.upload-dropzone.dragover {
    border-color: #007aff;
    background: rgba(0, 122, 255, 0.1);
}

.dropzone-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.dropzone-text {
    font-size: 16px;
    color: #fff;
    margin-bottom: 8px;
}

.dropzone-hint {
    font-size: 13px;
    color: #aaa;
}

.upload-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.upload-preview img,
.upload-preview video {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.upload-preview-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 59, 48, 0.9);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.upload-preview-remove:hover {
    background: #ff3b30;
    transform: scale(1.1);
}

.upload-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: #007aff;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
}

.upload-button:hover {
    background: #0051d5;
}

.upload-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upload-progress-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007aff 0%, #0051d5 100%);
    transition: width 0.3s ease;
}

.upload-progress-text {
    text-align: center;
    font-size: 14px;
    color: #007aff;
}

/* ============================================================================
 * RESPONSIVE
 * ========================================================================= */

@media (max-width: 768px) {
    .menu-panel {
        width: 100vw;
        right: -100vw; /* Hide off-screen using full width */
    }

    .menu-panel.open {
        right: 0; /* Slide in from right */
    }

    .control-box {
        max-width: 90vw;
    }

    .control-buttons {
        flex-direction: column;
    }

    .text-content {
        font-size: 16px;
        padding: 20px;
    }

    .investigation-status {
        width: 90vw;
    }

    .purchase-options {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
 * UTILITIES
 * ========================================================================= */

.hidden {
    display: none !important;
}

.no-transition {
    transition: none !important;
}

.error {
    color: #ff3b30;
}

.success {
    color: #34c759;
}
