@import './DesignTokens.css';

/* Theme-Aware Manage Drone Show Styles */
.manage-drone-show-container {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    padding-bottom: var(--spacing-2xl);
    transition: var(--transition-all);
    min-height: 100vh;
}

/* Workflow Guidance Styling */
.workflow-guidance {
    background: linear-gradient(135deg, var(--color-primary), var(--brand-secondary));
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-primary-border);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.workflow-guidance::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
}

.workflow-guidance .workflow-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-base);
    align-items: center;
}

.workflow-guidance .workflow-button {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-base);
    padding: var(--spacing-sm) var(--spacing-base);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    text-transform: none;
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family-primary);
    transition: var(--transition-all);
    font-size: var(--font-size-sm);
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.workflow-guidance .workflow-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.workflow-guidance .workflow-button.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow-base);
}

/* Advanced Features Toggle */
.advanced-features-toggle {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-primary);
    border-radius: var(--border-radius-base);
    transition: var(--transition-all);
}

.advanced-features-toggle:hover {
    background: var(--color-bg-tertiary);
    border-color: var(--color-border-secondary);
    box-shadow: var(--shadow-sm);
}

.advanced-toggle-button {
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    text-transform: none;
    padding: var(--spacing-sm) var(--spacing-base);
    border-radius: var(--border-radius-base);
    transition: var(--transition-all);
    font-family: var(--font-family-primary);
}

.advanced-toggle-button:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-hover);
}

/* Section styling */
.import-section,
.export-section,
.visualization-section {
    margin-bottom: var(--spacing-xl);
    background: var(--color-bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border-primary);
    box-shadow: var(--shadow-base);
    transition: var(--transition-all);
}

.intro-section ul {
    list-style: disc inside;
    margin-left: var(--spacing-xl);
    color: var(--color-text-secondary);
}

.intro-section li {
    margin-bottom: var(--spacing-xs);
    line-height: var(--line-height-normal);
}

/* File Upload Label */
.file-upload {
    display: flex;
    align-items: center;
    gap: var(--spacing-base);
    padding: var(--spacing-base);
    background: var(--color-bg-tertiary);
    border-radius: var(--border-radius-base);
    border: 1px solid var(--color-border-primary);
    transition: var(--transition-all);
}

.file-upload:hover {
    background: var(--color-bg-quaternary);
    border-color: var(--color-primary-border);
}

/* Override MUI container styling */
.MuiContainer-root {
    width: 97% !important;
    background: var(--color-bg-primary) !important;
    color: var(--color-text-primary) !important;
}

/* Modal Overlay and Content */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
    padding: var(--spacing-xl);
    backdrop-filter: blur(8px);
}

.modal-close-button {
    position: absolute;
    top: var(--spacing-base);
    right: var(--spacing-base);
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: var(--font-size-xl);
    cursor: pointer;
    transition: var(--transition-all);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-close-button:hover {
    background: var(--color-danger);
    border-color: var(--color-danger-border);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Navigation buttons inside the modal */
.modal-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--font-size-lg);
    cursor: pointer;
    transition: var(--transition-all);
    backdrop-filter: blur(4px);
}

.nav-button:hover {
    background: var(--color-primary);
    border-color: var(--color-primary-border);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-md);
}

.prev-button {
    left: var(--spacing-xl);
}

.next-button {
    right: var(--spacing-xl);
}

.modal-image-wrapper {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-dark-lg);
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    border-radius: var(--border-radius-base);
}

/* Plots styling */
.plot-full-width {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-base);
    background: var(--color-bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border-primary);
}

.clickable-image {
    cursor: pointer;
    transition: var(--transition-all);
    border-radius: var(--border-radius-base);
    overflow: hidden;
    box-shadow: var(--shadow-base);
}

.clickable-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Plot grid for individual images */
.plot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-base);
    justify-content: center;
    padding: var(--spacing-base);
}

.plot img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-base);
    box-shadow: var(--shadow-base);
    transition: var(--transition-all);
}

.plot img:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Comprehensive Metrics Styling */
.comprehensive-metrics {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--color-border-primary);
}

.metrics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    gap: var(--spacing-base);
}

.metrics-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
}

.metrics-toggle-button {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: var(--color-bg-primary);
    text-transform: none;
    border-radius: var(--border-radius-base);
    padding: var(--spacing-xs) var(--spacing-base);
    transition: var(--transition-all);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-medium);
}

.metrics-toggle-button:hover {
    background: var(--color-primary);
    color: var(--color-text-primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.metrics-overview-card {
    border: 1px solid var(--color-border-primary);
    background: var(--color-bg-secondary);
    border-radius: var(--border-radius-base);
    transition: var(--transition-all);
    height: 100%;
}

.metrics-overview-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    background: var(--color-bg-tertiary);
}

.metrics-detail-paper {
    border: 1px solid var(--color-border-primary);
    border-radius: var(--border-radius-base);
    background: var(--color-bg-tertiary);
    transition: var(--transition-all);
}

.metrics-detail-paper:hover {
    border-color: var(--color-border-secondary);
    box-shadow: var(--shadow-base);
    background: var(--color-bg-quaternary);
}

.status-chip {
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    font-size: var(--font-size-xs);
    letter-spacing: 0.5px;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    background: var(--color-bg-quaternary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border-primary);
}

.safety-alert {
    border-radius: var(--border-radius-base);
    border: none;
    box-shadow: var(--shadow-base);
    padding: var(--spacing-base);
    margin: var(--spacing-base) 0;
}

.safety-alert.success {
    background: linear-gradient(135deg, var(--color-success-light), var(--color-bg-secondary));
    color: var(--color-success-dark);
    border-left: 4px solid var(--color-success);
}

.safety-alert.warning {
    background: linear-gradient(135deg, var(--color-warning-light), var(--color-bg-secondary));
    color: var(--color-warning-dark);
    border-left: 4px solid var(--color-warning);
}

/* Processing Progress Modal Styling */
.processing-modal {
    backdrop-filter: blur(8px);
}

.processing-modal-content {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-dark-lg);
    border: 1px solid var(--color-border-primary);
    max-width: 500px;
    width: 90%;
}

.processing-progress-bar {
    height: 8px;
    border-radius: var(--border-radius-sm);
    background: linear-gradient(90deg, var(--color-primary), var(--brand-secondary));
    overflow: hidden;
    position: relative;
}

.processing-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.processing-step-item {
    padding: var(--spacing-xs) 0;
    transition: var(--transition-all);
    color: var(--color-text-secondary);
}

.processing-step-completed {
    background: var(--color-success-light);
    color: var(--color-success-dark);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--color-success-border);
}

/* Enhanced Feature Cards */
.feature-card {
    border: 1px solid var(--color-border-primary);
    border-radius: var(--border-radius-base);
    background: var(--color-bg-secondary);
    transition: var(--transition-all);
    height: 100%;
    overflow: hidden;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--brand-secondary));
    opacity: 0;
    transition: var(--transition-base);
}

.feature-card:hover {
    border-color: var(--color-primary-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    background: var(--color-bg-tertiary);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    font-size: var(--font-size-base);
}

.feature-card-description {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

/* Upload Button Enhancement */
.upload-button {
    background: linear-gradient(135deg, var(--color-success), #059669);
    border: none;
    border-radius: var(--border-radius-base);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family-primary);
    text-transform: none;
    min-width: 140px;
    padding: var(--spacing-sm) var(--spacing-lg);
    box-shadow: var(--shadow-base);
    transition: var(--transition-all);
    position: relative;
    overflow: hidden;
}

.upload-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-base);
}

.upload-button:hover::before {
    left: 100%;
}

.upload-button:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.upload-button:disabled {
    background: var(--color-text-tertiary);
    box-shadow: none;
    transform: none;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Typography overrides for theme consistency */
.MuiTypography-h4 {
    color: var(--color-primary) !important;
    font-family: var(--font-family-primary) !important;
    font-weight: var(--font-weight-bold) !important;
    margin-bottom: var(--spacing-base) !important;
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.MuiTypography-h6 {
    color: var(--color-text-primary) !important;
    font-family: var(--font-family-primary) !important;
    font-weight: var(--font-weight-semibold) !important;
    margin-bottom: var(--spacing-sm) !important;
    line-height: var(--line-height-tight) !important;
}

.MuiTypography-body1 {
    color: var(--color-text-primary) !important;
    font-family: var(--font-family-primary) !important;
    font-size: var(--font-size-base) !important;
    line-height: var(--line-height-normal) !important;
    margin-bottom: var(--spacing-sm) !important;
}

.MuiTypography-body2 {
    color: var(--color-text-secondary) !important;
    font-family: var(--font-family-primary) !important;
    font-size: var(--font-size-sm) !important;
    line-height: var(--line-height-normal) !important;
    font-weight: var(--font-weight-medium) !important;
}

.MuiTypography-subtitle1,
.MuiTypography-subtitle2 {
    color: var(--color-text-primary) !important;
    font-family: var(--font-family-primary) !important;
    font-weight: var(--font-weight-semibold) !important;
    line-height: var(--line-height-tight) !important;
}

.MuiPaper-root {
    background: var(--color-bg-secondary) !important;
    color: var(--color-text-primary) !important;
    border: 1px solid var(--color-border-primary) !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .plot-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    .manage-drone-show-container {
        padding-bottom: var(--spacing-xl);
    }

    .plot-full-width img {
        width: 100%;
        max-width: 100%;
    }

    .plot-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: var(--spacing-xs);
        padding: var(--spacing-sm);
    }

    .workflow-guidance {
        padding: var(--spacing-base);
    }

    .workflow-guidance .workflow-buttons {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .workflow-guidance .workflow-button {
        width: 100%;
        text-align: center;
        padding: var(--spacing-sm);
    }

    .metrics-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: stretch;
    }

    .feature-card-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .nav-button {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-base);
    }

    .prev-button {
        left: var(--spacing-base);
    }

    .next-button {
        right: var(--spacing-base);
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: var(--spacing-base);
    }

    .workflow-guidance {
        padding: var(--spacing-sm);
    }

    .upload-button {
        width: 100%;
        min-width: auto;
    }

    .feature-card {
        margin-bottom: var(--spacing-sm);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .workflow-guidance,
    .workflow-guidance .workflow-button,
    .feature-card,
    .upload-button,
    .clickable-image,
    .nav-button,
    .modal-close-button,
    .processing-progress-bar::after {
        transition: none;
        animation: none;
    }

    .workflow-guidance .workflow-button:hover,
    .feature-card:hover,
    .upload-button:hover,
    .clickable-image:hover,
    .nav-button:hover {
        transform: none;
    }
}

/* Focus states for accessibility */
.workflow-guidance .workflow-button:focus-visible,
.upload-button:focus-visible,
.nav-button:focus-visible,
.modal-close-button:focus-visible,
.metrics-toggle-button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Current Show Information Box - Theme Override */
.manage-drone-show-container .MuiBox-root[style*="bgcolor: rgb(248, 249, 250)"] {
    background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg-tertiary)) !important;
    border: 1px solid var(--color-border-primary) !important;
    border-radius: var(--border-radius-lg) !important;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-base) !important;
    position: relative;
    transition: var(--transition-all);
    padding: var(--spacing-lg) !important;
    margin-bottom: var(--spacing-base) !important;
}

.manage-drone-show-container .MuiBox-root[style*="bgcolor: rgb(248, 249, 250)"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--brand-secondary));
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

/* Professional Left Column Layout Improvements */
.manage-drone-show-container .MuiBox-root {
    margin-bottom: var(--spacing-base) !important;
}

/* Feature Cards Grid Layout */
.manage-drone-show-container .MuiBox-root:has(.MuiPaper-root[style*="bgcolor: #f8f9fa"]) {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: var(--spacing-base) !important;
    margin-bottom: var(--spacing-lg) !important;
}

/* Individual Feature Cards */
.manage-drone-show-container .MuiPaper-root[style*="bgcolor: #f8f9fa"] {
    background: linear-gradient(135deg, var(--color-bg-tertiary), var(--color-bg-quaternary)) !important;
    border: 1px solid var(--color-border-primary) !important;
    border-radius: var(--border-radius-base) !important;
    padding: var(--spacing-base) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: var(--transition-all) !important;
    position: relative;
    height: auto !important;
    min-height: 100px !important;
}

.manage-drone-show-container .MuiPaper-root[style*="bgcolor: #f8f9fa"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
    border-color: var(--color-primary-border) !important;
}

.manage-drone-show-container .MuiPaper-root[style*="bgcolor: #f8f9fa"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--brand-secondary));
    border-radius: var(--border-radius-base) var(--border-radius-base) 0 0;
    opacity: 0;
    transition: var(--transition-base);
}

.manage-drone-show-container .MuiPaper-root[style*="bgcolor: #f8f9fa"]:hover::before {
    opacity: 1;
}

/* Feature Card Content Spacing */
.manage-drone-show-container .MuiPaper-root[style*="bgcolor: #f8f9fa"] .MuiBox-root {
    margin-bottom: var(--spacing-xs) !important;
    display: flex !important;
    align-items: center !important;
    gap: var(--spacing-sm) !important;
}

.manage-drone-show-container .MuiPaper-root[style*="bgcolor: #f8f9fa"] .MuiTypography-subtitle2 {
    color: var(--color-text-primary) !important;
    font-weight: var(--font-weight-bold) !important;
    font-size: var(--font-size-base) !important;
    margin: 0 !important;
    line-height: var(--line-height-tight) !important;
}

.manage-drone-show-container .MuiPaper-root[style*="bgcolor: #f8f9fa"] .MuiTypography-body2 {
    color: var(--color-text-secondary) !important;
    font-size: var(--font-size-sm) !important;
    line-height: var(--line-height-normal) !important;
    margin: var(--spacing-xs) 0 0 0 !important;
    font-weight: var(--font-weight-medium) !important;
}

/* Icon Styling in Feature Cards */
.manage-drone-show-container .MuiPaper-root[style*="bgcolor: #f8f9fa"] .MuiSvgIcon-root {
    font-size: var(--font-size-xl) !important;
    flex-shrink: 0;
    opacity: 0.8;
}

/* Pro Tip Section */
.manage-drone-show-container .MuiTypography-body2:has(.MuiLink-root) {
    background: linear-gradient(135deg, var(--color-info-light), var(--color-bg-secondary)) !important;
    border: 1px solid var(--color-info-border) !important;
    border-left: 4px solid var(--color-info) !important;
    border-radius: var(--border-radius-base) !important;
    padding: var(--spacing-base) !important;
    margin: var(--spacing-lg) 0 !important;
    font-size: var(--font-size-base) !important;
    line-height: var(--line-height-normal) !important;
    color: var(--color-text-primary) !important;
}

.manage-drone-show-container .MuiTypography-body2:has(.MuiLink-root) strong {
    color: var(--color-info) !important;
    font-weight: var(--font-weight-bold) !important;
}

/* Divider Styling */
.manage-drone-show-container .MuiDivider-root {
    border-color: var(--color-border-primary) !important;
    margin: var(--spacing-base) 0 !important;
    opacity: 0.6;
}

/* Link Styling */
.manage-drone-show-container .MuiLink-root {
    color: var(--color-primary) !important;
    font-weight: var(--font-weight-semibold) !important;
    text-decoration: none !important;
    border-bottom: 1px solid transparent !important;
    transition: var(--transition-base) !important;
}

.manage-drone-show-container .MuiLink-root:hover {
    color: var(--color-primary-hover) !important;
    border-bottom-color: var(--color-primary) !important;
}

.manage-drone-show-container .MuiTypography-root[style*="color: rgb(0, 86, 179)"] {
    color: var(--color-text-primary) !important;
    font-weight: var(--font-weight-bold) !important;
    background: linear-gradient(135deg, var(--color-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs) !important;
}

/* Override Material-UI Components Theme */
.manage-drone-show-container .MuiPaper-root {
    background: linear-gradient(135deg, var(--color-bg-secondary), var(--color-bg-tertiary)) !important;
    border: 1px solid var(--color-border-primary) !important;
    border-radius: var(--border-radius-lg) !important;
    box-shadow: var(--shadow-base) !important;
    color: var(--color-text-primary) !important;
    backdrop-filter: blur(8px);
    padding: var(--spacing-lg) !important;
    margin-bottom: var(--spacing-lg) !important;
    position: relative;
}

.manage-drone-show-container .MuiPaper-root::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--brand-secondary));
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.manage-drone-show-container .MuiCard-root {
    background: var(--color-bg-tertiary) !important;
    border: 1px solid var(--color-border-primary) !important;
    border-radius: var(--border-radius-base) !important;
    color: var(--color-text-primary) !important;
}

.manage-drone-show-container .MuiChip-root {
    background: var(--color-primary-light) !important;
    color: var(--color-text-primary) !important;
    border: 1px solid var(--color-primary-border) !important;
}

.manage-drone-show-container .MuiButton-root {
    background: linear-gradient(135deg, var(--color-primary), var(--brand-secondary)) !important;
    color: var(--color-text-primary) !important;
    border: none !important;
    border-radius: var(--border-radius-base) !important;
    font-weight: var(--font-weight-semibold) !important;
    transition: var(--transition-all) !important;
    text-transform: none !important;
}

.manage-drone-show-container .MuiButton-root:hover {
    background: linear-gradient(135deg, var(--brand-secondary), var(--color-primary)) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
}

.manage-drone-show-container .MuiButton-outlined {
    background: transparent !important;
    border: 1px solid var(--color-border-primary) !important;
    color: var(--color-text-primary) !important;
}

.manage-drone-show-container .MuiButton-outlined:hover {
    background: var(--color-bg-tertiary) !important;
    border-color: var(--color-primary-border) !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .metrics-overview-card,
    .safety-alert,
    .manage-drone-show-container .MuiPaper-root,
    .manage-drone-show-container .MuiCard-root {
        border-width: 2px !important;
    }

    .upload-button,
    .workflow-guidance .workflow-button {
        border: 2px solid var(--color-primary);
    }
}