/* ============================================
   DIRECT DROPAQUI - Premium Dark Theme
   Modern, Distinctive Design System
   ============================================ */

:root {
    /* Core Colors - Vibrant Cyan/Teal Theme */
    --primary: #00d4ff;
    --primary-dark: #00a8cc;
    --primary-light: #5de0ff;
    --primary-glow: rgba(0, 212, 255, 0.4);
    
    /* Accent Colors */
    --accent: #ff6b6b;
    --accent-secondary: #feca57;
    --accent-tertiary: #48dbfb;
    
    /* Semantic Colors */
    --success: #00d26a;
    --success-glow: rgba(0, 210, 106, 0.3);
    --warning: #ffc107;
    --danger: #ff4757;
    --info: #3498db;
    
    /* Dark Theme Backgrounds */
    --bg-deep: #050810;
    --bg-primary: #0a0f1a;
    --bg-secondary: #0f1629;
    --bg-tertiary: #151d32;
    --bg-card: rgba(15, 22, 41, 0.85);
    --bg-card-hover: rgba(21, 29, 50, 0.95);
    --bg-elevated: rgba(25, 35, 60, 0.9);
    
    /* Glass Effect */
    --glass-bg: rgba(15, 22, 41, 0.7);
    --glass-border: rgba(0, 212, 255, 0.15);
    --glass-shine: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a8b4c4;
    --text-muted: #6b7a90;
    --text-accent: var(--primary);
    
    /* Borders & Shadows */
    --border: rgba(0, 212, 255, 0.12);
    --border-active: rgba(0, 212, 255, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);
    
    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 107, 107, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 100% 80% at 50% 100%, rgba(0, 168, 204, 0.06) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Subtle Grid Pattern */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

/* ============================================
   Header - Glassmorphism
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-normal);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
}

.logo-svg {
    width: 42px;
    height: 42px;
    transition: var(--transition-normal);
}

.logo:hover .logo-svg {
    transform: scale(1.08) rotate(-3deg);
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-accent {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ============================================
   Buttons - Modern & Interactive
   ============================================ */
.btn {
    position: relative;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: var(--transition-normal);
    overflow: hidden;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-deep);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-active);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #cc3a47 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #00a854 100%);
    color: var(--bg-deep);
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ============================================
   Main Layout
   ============================================ */
.main-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 90px 2rem 2rem;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 50%, var(--text-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s ease infinite;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

@keyframes shimmerText {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* Content Grid - Centralizado (sem sidebars) */
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Layout centralizado */
.content-wrapper.content-centered {
    max-width: 900px;
}

.content-wrapper.content-centered .upload-container {
    width: 100%;
}

/* Upload Container - Centralizado e Responsivo */
.upload-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsividade do Content Wrapper */
@media (max-width: 1024px) {
    .content-wrapper {
        max-width: 100%;
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 0 1rem;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 0 0.75rem;
        gap: 1rem;
    }
}

/* ============================================
   Cards - Glass Effect
   ============================================ */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.card:hover {
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow);
}

/* Upload Card */
.upload-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.upload-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

.upload-card.drag-over {
    border-color: var(--primary);
    box-shadow: 0 0 60px var(--primary-glow), inset 0 0 60px rgba(0, 212, 255, 0.05);
    transform: scale(1.01);
}

/* ============================================
   Usage Info - Stats Cards
   ============================================ */
.usage-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.usage-item {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.usage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition-normal);
}

.usage-item:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--border-active);
    transform: translateY(-4px);
}

.usage-item:hover::before {
    opacity: 1;
}

.usage-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.usage-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.usage-value .unit {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.usage-value.success { color: var(--success); }
.usage-value.warning { color: var(--warning); }
.usage-value.danger { color: var(--danger); }

.usage-description {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   Upload Area - Interactive Drop Zone
   ============================================ */
.upload-area {
    border: 2px dashed var(--border-active);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    background: rgba(0, 212, 255, 0.02);
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-slow);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-area.drag-over {
    border-color: var(--primary);
    border-style: solid;
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 80px var(--primary-glow);
}

.upload-icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px var(--primary-glow));
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    75% { transform: translateY(-5px) rotate(-2deg); }
}

.upload-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.upload-subtext {
    font-size: 1rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.file-input {
    display: none;
}

/* ============================================
   Progress Bar - Animated
   ============================================ */
.progress-container {
    margin-top: 1.5rem;
    display: none;
}

.progress-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Hide when flowchart active */
.flowchart-wrapper.active ~ .progress-container,
body:has(.flowchart-wrapper[style*="display: block"]) .progress-container {
    display: none !important;
}

.progress-bar {
    height: 10px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent-tertiary), var(--primary));
    background-size: 200% 100%;
    animation: progressShine 2s ease infinite;
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes progressShine {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ============================================
   Metrics Container
   ============================================ */
.metrics-container {
    margin-top: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    animation: fadeIn 0.4s ease;
}

.metrics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.metrics-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metrics-header h3 i {
    color: var(--primary);
}

.metrics-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    transition: var(--transition-fast);
}

.metrics-toggle:hover {
    background: rgba(0, 212, 255, 0.2);
}

.metrics-content.collapsed {
    display: none;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: var(--transition-normal);
}

.metric-card:hover {
    border-color: var(--border-active);
    background: rgba(0, 212, 255, 0.08);
    }

.metric-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.metric-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.metrics-chart {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    height: 250px;
}

/* ============================================
   Share Section
   ============================================ */
.share-section {
    margin-top: 1.5rem;
    display: none;
}

.share-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.share-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-option {
    flex: 1;
    padding: 1.5rem;
    background: rgba(0, 212, 255, 0.05);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
}

.share-option:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-4px);
}

.share-option.active {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 30px var(--primary-glow);
}

.share-option-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.share-option-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.share-option-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.share-form {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.share-link-display {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.share-link {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    color: var(--primary);
    word-break: break-all;
}

.btn-copy {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.btn-copy:hover {
    transform: scale(1.05);
}

.btn-copy.copied {
    background: var(--success);
}

/* ============================================
   History Container
   ============================================ */
.history-container {
    width: 100%;
}

.history-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.history-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-header h2 i {
    color: var(--primary);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 0.5rem;
}

.history-list::-webkit-scrollbar {
    width: 4px;
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.history-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    cursor: pointer;
}

.history-item:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--border-active);
}

.history-item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.history-item-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.history-item-details {
    flex: 1;
    min-width: 0;
}

.history-item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
    max-width: 100%;
}

.history-item-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.history-item-size {
    font-weight: 600;
    color: var(--text-secondary);
}

.history-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.history-item-status {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.history-item-status.completed {
    background: var(--success);
    color: var(--bg-deep);
}

.history-item-status.uploading {
    background: var(--warning);
    color: var(--bg-deep);
}

.history-item-status.expired {
    background: var(--danger);
    color: white;
}

.history-item-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   Upload Info Container (Left Sidebar)
   ============================================ */
.upload-info-container {
    width: 100%;
}

.upload-info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.upload-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.upload-info-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-info-header h2 i {
    color: var(--primary);
}

.upload-info-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.upload-info-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
}

.upload-info-value {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 600;
    word-break: break-word;
}

/* ============================================
   Flowchart - Redesigned Mobile-First
   ============================================ */
.flowchart-wrapper {
    margin-top: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.flowchart-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.flowchart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.flowchart-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flowchart-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flowchart-title i {
    color: var(--primary);
}

.flowchart-progress-badge {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--bg-deep);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    min-width: 50px;
    text-align: center;
}

/* Eventos Secundários */
.flowchart-secondary {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.secondary-event {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.625rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.secondary-event.completed {
    background: rgba(0, 210, 106, 0.1);
    border-color: rgba(0, 210, 106, 0.3);
    color: var(--success);
}

.secondary-event.active {
    background: rgba(255, 193, 7, 0.15);
    border-color: var(--warning);
    color: var(--warning);
    animation: secondaryPulse 1.5s infinite;
}

.secondary-event i {
    font-size: 0.5625rem;
}

@keyframes secondaryPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); }
}

/* Timeline Principal */
.flowchart-main {
    position: relative;
    padding: 1rem 0;
    z-index: 1;
}

.flowchart-timeline {
    position: absolute;
    top: calc(28px + 1rem);
    left: 40px;
    right: 40px;
    height: 3px;
    background: rgba(0, 212, 255, 0.15);
    border-radius: 2px;
    z-index: 0;
}

.timeline-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--primary));
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--success-glow);
}

.flowchart-steps {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.flowchart-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 100px;
    position: relative;
    opacity: 0.5;
    transition: var(--transition-normal);
}

.flowchart-step.active,
.flowchart-step.completed {
    opacity: 1;
}

.flowchart-step-node {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    transition: var(--transition-normal);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.flowchart-step.active .flowchart-step-node {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: var(--bg-deep);
    box-shadow: 0 0 25px var(--primary-glow);
    animation: pulseGlow 2s infinite;
    transform: scale(1.1);
}

.flowchart-step.completed .flowchart-step-node {
    background: var(--success);
    border-color: var(--success);
    color: var(--bg-deep);
    box-shadow: 0 0 15px var(--success-glow);
}

.flowchart-step.failed .flowchart-step-node {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
    50% { box-shadow: 0 0 35px var(--primary-glow); }
}

.flowchart-step-content {
    text-align: center;
    width: 100%;
}

.flowchart-step-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
    line-height: 1.2;
}

.flowchart-step-description {
    font-size: 0.625rem;
    color: var(--text-muted);
    line-height: 1.2;
}

/* Share Section */
.flowchart-share {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.share-ready {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 210, 106, 0.1);
    border: 1px solid rgba(0, 210, 106, 0.3);
    border-radius: var(--radius-md);
}

.share-ready-icon {
    width: 44px;
    height: 44px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-deep);
    font-size: 1.125rem;
    flex-shrink: 0;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.share-ready-content {
    flex: 1;
    min-width: 0;
}

.share-ready-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 0.25rem;
}

.share-ready-content p {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Password Protection */
.password-protection {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
}

.password-protection-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.password-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 0.5rem;
    transition: border-color 0.2s;
}

.password-input-wrapper:focus-within {
    border-color: var(--warning);
}

.password-input-wrapper i.fa-lock {
    color: var(--warning);
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

.password-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.5rem 0;
    color: var(--text-primary);
    font-size: 0.75rem;
    outline: none;
}

.password-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.toggle-password {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--text-primary);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    white-space: nowrap;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.password-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-sm);
    color: var(--success);
    font-size: 0.75rem;
}

.password-status i {
    color: var(--success);
}

.password-status .btn-ghost {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.6875rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.password-status .btn-ghost:hover {
    color: var(--danger);
}

.password-protection.protected {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.password-protection.protected .password-protection-input {
    display: none;
}

.password-protection.protected .password-status {
    display: flex;
}

.share-link-box {
    display: flex;
    gap: 0.5rem;
}

.share-link-box input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.625rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 0.6875rem;
    font-family: 'JetBrains Mono', monospace;
}

.share-link-box .btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.6875rem;
}

/* Summary */
.flowchart-summary {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(0, 210, 106, 0.05);
    border: 1px solid rgba(0, 210, 106, 0.2);
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
    z-index: 1;
}

.summary-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--bg-deep);
}

.flowchart-summary h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 1rem;
}

.summary-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.summary-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    text-align: center;
}

.summary-item-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.summary-item-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

/* ============================================
   Flowchart - Mobile Responsive
   ============================================ */
@media (max-width: 640px) {
    .flowchart-wrapper {
        padding: 1rem;
    }
    
    .flowchart-header {
        margin-bottom: 0.75rem;
    }
    
    .flowchart-title {
        font-size: 0.8125rem;
    }
    
    .flowchart-title span {
        display: none;
    }
    
    .flowchart-progress-badge {
        font-size: 0.875rem;
        padding: 0.25rem 0.625rem;
    }
    
    /* Eventos secundários em mobile - compactos */
    .flowchart-secondary {
        gap: 0.375rem;
        margin-bottom: 0.75rem;
    }
    
    .secondary-event {
        padding: 0.1875rem 0.5rem;
        font-size: 0.5625rem;
    }
    
    .secondary-event span {
        display: none;
    }
    
    /* Timeline escondida em mobile */
    .flowchart-timeline {
        display: none;
    }
    
    /* Mostrar apenas o step ativo/atual em mobile */
    .flowchart-main {
        padding: 0.5rem 0;
    }
    
    .flowchart-steps {
        justify-content: center;
        gap: 0;
    }
    
    .flowchart-step {
        display: none;
        max-width: 180px;
        animation: fadeInStep 0.3s ease;
    }
    
    .flowchart-step.active {
        display: flex;
}

    /* Se não há step ativo, mostrar o último completado */
    .flowchart-steps:not(:has(.active)) .flowchart-step.completed:last-of-type {
        display: flex;
    }
    
    /* Fallback: mostrar primeiro step se nenhum está ativo ou completo */
    .flowchart-steps:not(:has(.active)):not(:has(.completed)) .flowchart-step:first-child {
        display: flex;
    }
    
    @keyframes fadeInStep {
        from { opacity: 0; transform: scale(0.9); }
        to { opacity: 1; transform: scale(1); }
    }
    
    .flowchart-step-node {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
        margin-bottom: 0.625rem;
    }
    
    .flowchart-step-title {
        font-size: 0.9375rem;
    }
    
    .flowchart-step-description {
        font-size: 0.75rem;
    }
    
    /* Indicador de progresso mobile */
    .flowchart-main::after {
        content: '';
        display: block;
        margin-top: 1rem;
        height: 4px;
        background: linear-gradient(90deg, var(--success) var(--mobile-progress, 0%), rgba(0, 212, 255, 0.1) var(--mobile-progress, 0%));
        border-radius: 2px;
    }
    
    /* Share section mobile */
    .flowchart-share {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .share-ready {
        flex-direction: column;
        text-align: center;
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .share-ready-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
}

    .share-link-box {
        flex-direction: column;
        width: 100%;
    }
    
    .share-link-box input {
        text-align: center;
    }
    
    /* Summary mobile */
    .flowchart-summary {
        padding: 1rem;
    }
    
    .summary-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .flowchart-summary h3 {
        font-size: 1rem;
    }
    
    .summary-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .summary-item {
        padding: 0.5rem;
    }
    
    .summary-item-value {
        font-size: 0.75rem;
    }
}

/* Tablet - mostrar todos os steps mas compactos */
@media (min-width: 641px) and (max-width: 900px) {
    .flowchart-step {
        max-width: 90px;
    }
    
    .flowchart-step-node {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
    
    .flowchart-step-title {
        font-size: 0.6875rem;
    }
    
    .flowchart-step-description {
        display: none;
    }
    
    .flowchart-timeline {
        top: calc(24px + 1rem);
    }
}

/* Desktop large - mais espaço */
@media (min-width: 1200px) {
    .flowchart-step {
        max-width: 120px;
    }
    
    .flowchart-step-node {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }
}

/* ============================================
   Legacy Support (remover depois)
   ============================================ */
.flowchart-step-status,
.flowchart-legend,
.flowchart-legend-item,
.flowchart-legend-color,
.flowchart-step-details {
    display: none;
}

/* ============================================
   Modal
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 16, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.modal-footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.modal-footer a {
    color: var(--primary);
    text-decoration: none;
    margin-left: 0.5rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.modal-footer a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Colleagues Modal Styles */
.colleague-checkbox {
    transition: background 0.2s ease;
}

.colleague-checkbox:hover {
    background: rgba(0, 212, 255, 0.1);
}

.colleague-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.colleague-section {
    animation: fadeIn 0.3s ease;
}

.colleagues-sections {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#colleaguesModal .modal-content {
    max-width: 600px;
}

#colleaguesModal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

#colleaguesModal textarea {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    color: var(--text-primary);
    resize: vertical;
}

#colleaguesModal .btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

/* ============================================
   Google Sign In Button
   ============================================ */
.google-signin-container {
    margin-bottom: 1rem;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: white;
    border: 1px solid #dadce0;
    border-radius: var(--radius-md);
    color: #3c4043;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.btn-google:active {
    background: #f1f3f4;
}

.google-icon {
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Campos de registro ocultos por padrão */
.register-only {
    display: none;
}

.modal.register-mode .register-only {
    display: block;
}

/* ============================================
   User Panel Card (Header)
   ============================================ */
.user-panel-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
}

.user-panel-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-plan {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-plan.free {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.user-plan.pro {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.user-plan.business {
    background: rgba(168, 85, 247, 0.2);
    color: #a78bfa;
}

.user-plan.enterprise {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.3), rgba(249, 115, 22, 0.3));
    color: #fbbf24;
}

.user-panel-card .fa-chevron-right {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.user-panel-card:hover .fa-chevron-right {
    color: var(--primary);
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .user-panel-card {
        padding: 0.375rem 0.75rem;
    }
    
    .user-info {
        display: none;
    }
    
    .user-panel-card .fa-chevron-right {
        display: none;
    }
}

.close-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.close-btn:hover {
    background: rgba(255, 71, 87, 0.2);
    color: var(--danger);
    transform: rotate(90deg);
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions .btn {
    flex: 1;
}

/* ============================================
   Alerts / Toast
   ============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    border: 1px solid;
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.alert-error {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
    color: var(--danger);
}

.alert-success {
    background: rgba(0, 210, 106, 0.1);
    border-color: rgba(0, 210, 106, 0.3);
    color: var(--success);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: var(--warning);
}

.alert-info {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--primary);
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.4s ease;
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.toast-out {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    to { transform: translateX(100%); opacity: 0; }
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: rgba(0, 210, 106, 0.15);
    color: var(--success);
}

.toast-error .toast-icon {
    background: rgba(255, 71, 87, 0.15);
    color: var(--danger);
}

.toast-warning .toast-icon {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning);
}

.toast-info .toast-icon {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.toast-message {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ============================================
   Loading States
   ============================================ */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-elevated) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   Utilities
   ============================================ */
.hidden {
    display: none !important;
}

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ============================================
   Responsive
   ============================================ */

/* Desktop Grande */
@media (max-width: 1400px) {
    .content-wrapper {
        grid-template-columns: 1fr 320px;
        gap: 1.5rem;
}

    .sidebar-left {
        display: none;
    }
    
    .sidebar-left:has(.upload-info-container[style*="display: block"]),
    .sidebar-left:has(.upload-info-container[style*="display:block"]) {
        display: block;
        position: fixed;
        left: 1rem;
        top: 90px;
        width: 280px;
        z-index: 100;
    }
}

/* Tablet */
@media (max-width: 1100px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 700px;
        margin: 0 auto;
}

    .sidebar-left,
    .sidebar-right {
        position: relative;
    top: 0;
        max-height: none;
    }
    
    .sidebar-left {
        display: none;
        order: 2;
    }
    
    .sidebar-left:has(.upload-info-container[style*="display: block"]),
    .sidebar-left:has(.upload-info-container[style*="display:block"]) {
        display: block;
        position: relative;
        width: 100%;
}

    .upload-container {
        order: 1;
}

    .sidebar-right {
        order: 3;
    }
    
    .history-card {
        max-height: 400px;
}

    .history-list {
        max-height: 300px;
    }
}

/* Mobile Grande */
@media (max-width: 768px) {
    .main-container {
        padding: 80px 1rem 1.5rem;
}

    .header {
        padding: 0 1rem;
        height: 60px;
    }
    
    .hero {
        margin-bottom: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
    font-size: 0.9375rem;
    }
    
    .upload-card {
        padding: 1.25rem;
        border-radius: var(--radius-lg);
    }
    
    .upload-area {
        padding: 2rem 1.25rem;
        min-height: 240px;
        border-radius: var(--radius-lg);
}

    .upload-icon {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }
    
    .upload-text {
        font-size: 1.25rem;
    }
    
    .upload-subtext {
        font-size: 0.875rem;
    }
    
    .usage-info {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.75rem;
        padding: 0;
        background: transparent;
        border: none;
    }
    
    .usage-item {
        padding: 0.875rem 0.75rem;
    }
    
    .usage-label {
        font-size: 0.5625rem;
    }
    
    .usage-value {
        font-size: 1.375rem;
    }
    
    .usage-value .unit {
    font-size: 0.75rem;
    }
    
    .usage-description {
        font-size: 0.625rem;
}

    .share-options {
        flex-direction: column;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
}

    .metric-card {
        padding: 1rem;
    }
    
    .metric-value {
        font-size: 1.25rem;
    }
    
    .flowchart-wrapper {
        padding: 1rem;
}

    .flowchart-step {
        width: 100px;
}

    .flowchart-step-node {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
}

    .flowchart-step::after {
        top: 24px;
    }
    
    .flowchart-step-title {
        font-size: 0.625rem;
}

    .flowchart-step-description {
        font-size: 0.5rem;
        display: none;
    }
    
    .flowchart-legend {
    gap: 0.75rem;
}

    .flowchart-legend-item {
        font-size: 0.5625rem;
    }
    
    .history-card {
        padding: 1.25rem;
}

    .history-item {
        padding: 0.875rem;
    }
    
    .history-item-icon {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .history-item-name {
        font-size: 0.8125rem;
}

    .history-item-status {
        font-size: 0.5625rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Mobile Pequeno */
@media (max-width: 480px) {
    .main-container {
        padding: 70px 0.75rem 1rem;
    }
    
    .header {
        height: 56px;
    }
    
    .header-actions .btn span {
        display: none;
    }
    
    .header-actions .btn {
        padding: 0.625rem;
    }
    
    .logo span {
        font-size: 1.125rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.875rem;
    }

    .upload-card {
        padding: 1rem;
    }

    .upload-area {
        padding: 1.5rem 1rem;
        min-height: 200px;
    }

    .upload-icon {
        font-size: 3rem;
    }
    
    .upload-text {
        font-size: 1.125rem;
    }

    .usage-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .usage-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
    }
    
    .usage-label {
        margin-bottom: 0;
    }
    
    .usage-value {
        font-size: 1.25rem;
        margin-bottom: 0;
    }
    
    .usage-description {
        display: none;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
    }
    
    .history-item-info {
        gap: 0.75rem;
    }
    
    .history-item-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .toast {
        min-width: auto;
        max-width: calc(100vw - 40px);
        margin-right: 10px;
    }
}

/* Colleagues selector styles */
.colleagues-selector {
    display: none;
}

.colleagues-selector.active {
    display: block;
}

.department-selector {
    margin-bottom: 1rem;
}

.colleagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.colleague-card {
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.colleague-card:hover {
    border-color: var(--border-active);
    background: rgba(0, 212, 255, 0.1);
}

.colleague-card.selected {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.15);
}

.colleague-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.colleague-email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.selected-emails {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.email-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-active);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.email-tag-remove {
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.email-tag-remove:hover {
    color: var(--danger);
}

.retention-selector {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.retention-option {
    flex: 1;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-normal);
}

.retention-option:hover {
    border-color: var(--border-active);
}

.retention-option.active {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

/* ============================================
   Modal de Planos / Upgrade
   ============================================ */
.plans-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.plans-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.plans-modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.plans-modal-overlay.active .plans-modal {
    transform: scale(1) translateY(0);
}

.plans-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(99, 91, 255, 0.1));
}

.plans-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plans-modal-header h2 i {
    color: var(--primary);
}

.plans-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.plans-modal-close:hover {
    color: var(--text-primary);
}

.plans-modal-body {
    padding: 2rem;
}

.plans-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.plan-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
}

.plan-card.pro::before {
    background: linear-gradient(90deg, var(--primary), #00d26a);
}

.plan-card.business::before {
    background: linear-gradient(90deg, #635bff, var(--primary));
}

.plan-card.enterprise::before {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.plan-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.plan-price .currency {
    font-size: 1rem;
    color: var(--text-muted);
}

.plan-price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.plan-price .period {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.plan-features li i {
    color: var(--success);
    font-size: 0.875rem;
}

.plan-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: var(--radius-md);
    color: var(--bg-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.plan-btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.plan-btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

/* Seção Free no Modal */
.plans-free-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.plans-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plans-section-title i {
    color: var(--primary);
}

.plans-section-title i.fa-crown {
    color: #f59e0b;
}

.free-plans-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* Card Free específicos */
.plan-card.free-guest,
.plan-card.free-logged {
    background: var(--bg-secondary);
}

.plan-card.free-guest::before {
    background: var(--text-muted);
}

.plan-card.free-logged::before {
    background: linear-gradient(90deg, var(--success), var(--primary));
}

.plan-card.highlighted {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.plan-card.current {
    position: relative;
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    white-space: nowrap;
}

.plan-badge.recommended {
    background: linear-gradient(135deg, var(--primary), var(--success));
    color: var(--bg-primary);
    border: none;
    font-weight: 600;
}

.plan-price .amount.free {
    font-size: 1.75rem;
    color: var(--success);
}

.feature-highlight {
    color: var(--primary) !important;
    font-weight: 500;
}

.feature-disabled {
    color: var(--text-muted) !important;
    opacity: 0.6;
}

.feature-disabled i {
    color: var(--danger) !important;
}

/* Responsivo */
@media (max-width: 768px) {
    .free-plans-comparison {
        grid-template-columns: 1fr;
    }
    
    .plan-badge {
        font-size: 0.6875rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Seção de upgrade discreto */
.upgrade-section {
    text-align: center;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
}

.upgrade-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    text-decoration: none;
    opacity: 0.7;
}

.upgrade-hint:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    opacity: 1;
    text-decoration: none;
}

.upgrade-hint i {
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .plans-modal {
        width: 98%;
        max-height: 95vh;
}

    .plans-modal-header {
        padding: 1rem 1.25rem;
}

    .plans-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .plans-modal-body {
        padding: 1.25rem;
}

    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .plan-card {
        padding: 1.5rem 1.25rem;
    }
    
    .plan-price .amount {
        font-size: 2rem;
}
}

/* ============================================
   Seção de Compartilhamento Rápido (durante upload)
   ============================================ */
.quick-share-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    animation: fadeIn 0.4s ease;
}

.quick-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.quick-share-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.quick-share-title i {
    color: var(--primary);
}

.quick-share-invites {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 212, 255, 0.2);
    white-space: nowrap;
}

.quick-share-invites i {
    font-size: 0.875rem;
}

.quick-share-invites strong {
    font-weight: 700;
    color: #00ffff;
}

.quick-share-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    background: var(--bg-tertiary);
    border-radius: 11px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-muted);
    top: 2px;
    left: 2px;
    transition: var(--transition-fast);
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-switch.active::after {
    background: white;
    transform: translateX(18px);
}

.toggle-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Opções de compartilhamento rápido */
.quick-share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.quick-share-option {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.quick-share-option:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
}

.quick-share-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quick-share-option.disabled:hover {
    border-color: var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.quick-share-option-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.quick-share-option-icon.sectors {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.quick-share-option-icon.email {
    background: linear-gradient(135deg, #10b981, #059669);
}

.quick-share-option-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.quick-share-option-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.premium-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Seletor de setores inline */
.sectors-inline-selector {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    animation: fadeIn 0.3s ease;
}

.sectors-inline-selector h4 {
    font-size: 0.8125rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sectors-inline-selector h4 i {
    color: #8b5cf6;
}

.sectors-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sector-chip {
    padding: 0.375rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.sector-chip:hover {
    border-color: #8b5cf6;
    color: var(--text-primary);
}

.sector-chip.selected {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-color: #8b5cf6;
    color: white;
}

.sector-chip-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Email input inline */
.email-inline-input {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    animation: fadeIn 0.3s ease;
}

.email-inline-input h4 {
    font-size: 0.8125rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-inline-input h4 i {
    color: #10b981;
}

.email-input-row {
    display: flex;
    gap: 0.5rem;
}

.email-input-row input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.email-input-row input::placeholder {
    color: var(--text-muted);
}

.email-input-row input:focus {
    outline: none;
    border-color: #10b981;
}

.email-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.75rem;
}

.email-tag {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 4px;
    font-size: 0.75rem;
    color: #10b981;
}

.email-tag-remove {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.email-tag-remove:hover {
    opacity: 1;
}

/* Aviso de recurso premium */
.premium-feature-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.premium-feature-notice i {
    color: #fbbf24;
    font-size: 1rem;
}

.premium-feature-notice span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.premium-feature-notice a {
    color: var(--primary);
    text-decoration: underline;
    margin-left: 0.25rem;
}

/* Estilos adicionais já definidos acima */
