/* IntelX Dashboard - Premium Style */

body {
    animation: none !important;
    background: #0a0a0f;
}

.nav-bar,
.footer {
    opacity: 1 !important;
    animation: none !important;
}

/* Dashboard Main Container */
.dashboard-main {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 120px 20px 80px;
    background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
}

.dashboard-section {
    max-width: 850px;
    width: 100%;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dashboard Header */
.dashboard-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 20px;
    background: transparent;
    border-radius: 20px;
    border: none;
}

.dashboard-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: -2px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-cursor {
    display: inline-block;
    width: 3px;
    height: 3rem;
    background: #ffffff;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.quota-info {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 2px solid rgba(139, 92, 246, 0.3);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

/* Search Modes Grid */
.search-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 35px;
}

@media (max-width: 768px) {
    .search-modes {
        grid-template-columns: 1fr;
    }
}

.mode-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 22px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(196, 181, 253, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mode-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #a855f7, #8b5cf6, #7c3aed);
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.mode-card:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.25);
}

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

.mode-card.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.4), 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

.mode-card.active::before {
    opacity: 1;
}

.mode-card.active::after {
    opacity: 0.5;
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.mode-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a855f7;
    flex-shrink: 0;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.mode-card.active .mode-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(139, 92, 246, 0.2) 100%);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.mode-info h3 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    letter-spacing: 0.3px;
}

.mode-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Search Panels */
.search-panel {
    display: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 28px;
    margin-bottom: 35px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.search-panel.active {
    display: block;
    animation: panelSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.panel-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
}

.panel-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.panel-header h2 svg {
    color: #a855f7;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
}

.panel-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Input Groups */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper svg {
    position: absolute;
    left: 16px;
    color: rgba(139, 92, 246, 0.6);
    pointer-events: none;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    background: rgba(5, 5, 5, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 16px 14px 48px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.input-wrapper input:focus {
    outline: none;
    border-color: #a855f7;
    background: rgba(5, 5, 5, 0.8);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.3), 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.input-hint {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* Select Wrapper */
.select-wrapper select {
    width: 100%;
    background: rgba(5, 5, 5, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(168,85,247,0.7)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    backdrop-filter: blur(5px);
}

.select-wrapper select:focus {
    outline: none;
    border-color: #a855f7;
    background-color: rgba(5, 5, 5, 0.8);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.select-wrapper select option {
    background: #0a0a0f;
    color: #ffffff;
    padding: 10px;
}

/* Search Button */
.search-btn {
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    padding: 16px 30px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.search-btn::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: left 0.5s ease;
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:hover {
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

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

.search-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Results Container */
.results-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px 30px;
    display: none;
    margin: 40px auto 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.results-container.active {
    display: block;
    animation: resultsSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes resultsSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 3px solid rgba(139, 92, 246, 0.25);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.05) 0%, transparent 100%);
    padding: 15px 20px 22px;
    border-radius: 12px 12px 0 0;
    margin: -35px -30px 32px -30px;
}

.results-count {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
}

.results-count svg {
    color: #a855f7;
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
}

.results-count strong {
    color: #ffffff;
    font-weight: 800;
}

/* IntelX Style Results */
.intelx-results {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.result-file {
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
    padding: 28px 15px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.result-file:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(139, 92, 246, 0.02) 100%);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.result-file:first-child {
    padding-top: 15px;
}

.result-file:last-child {
    border-bottom: none;
    padding-bottom: 15px;
}

.result-file-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 0;
}

.result-file-info-block {
    flex: 1;
}

.result-file-name {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    word-break: break-word;
    line-height: 1.4;
    margin-bottom: 6px;
}

.result-file-metadata {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.result-file-size,
.result-file-date {
    color: rgba(255, 255, 255, 0.5);
}

.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.result-file-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.result-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.result-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    white-space: nowrap;
    font-weight: 600;
}

/* Data Preview */
.result-preview {
    margin-bottom: 18px;
    background: rgba(5, 5, 5, 0.5);
    border-radius: 12px;
    padding: 16px 18px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.preview-line {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 7px 0;
    line-height: 1.8;
    word-break: break-all;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.preview-line:first-child {
    padding-top: 0;
}

.preview-line:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Action Buttons */
.result-actions {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    margin-top: 18px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

.visualize-btn {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 2px solid rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
}

.visualize-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-color: rgba(139, 92, 246, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.download-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.15) 100%);
    border: 2px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
}

.download-btn:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.35) 0%, rgba(34, 197, 94, 0.25) 100%);
    border-color: rgba(34, 197, 94, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

/* White style buttons */
.visualize-btn-white,
.download-btn-white {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.visualize-btn-white:hover,
.download-btn-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

/* Full Data Link */
.full-data-link {
    display: inline-block;
    margin-top: 12px;
    color: #a855f7;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.full-data-link:hover {
    color: #c4b5fd;
    text-decoration: underline;
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

/* File Modal */
.file-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

.file-modal.closing {
    animation: modalFadeOut 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.file-modal-content {
    background: linear-gradient(180deg, #0a0a0f 0%, #050505 100%);
    border: 3px solid rgba(139, 92, 246, 0.5);
    border-radius: 20px;
    width: 100%;
    max-width: 1000px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(139, 92, 246, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.file-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 25px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    flex-wrap: wrap;
    gap: 18px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, transparent 100%);
}

.file-modal-info h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.file-modal-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

.file-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.modal-action-btn.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.close-modal-btn {
    background: transparent;
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: rgba(239, 68, 68, 0.7);
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.file-modal-body {
    flex: 1;
    overflow: auto;
    padding: 25px;
    background: rgba(5, 5, 5, 0.5);
}

.file-modal-body pre {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 70px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

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

.loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    font-weight: 500;
}

/* Error & No Results */
.error-state,
.no-results-state {
    text-align: center;
    padding: 60px 25px;
}

.error-state svg,
.no-results-state svg {
    width: 60px;
    height: 60px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

.error-state h4,
.no-results-state h4 {
    color: #ffffff;
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.error-state p,
.no-results-state p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin: 0;
}

/* User Menu */
.user-menu {
    position: relative;
    z-index: 1000;
}

.user-bubble {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-bubble:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.user-icon {
    color: #a855f7;
    flex-shrink: 0;
}

.username-text {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    filter: blur(4px);
    transition: filter 0.3s ease;
}

.user-bubble:hover .username-text {
    filter: blur(0);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    min-width: 200px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.dropdown-item svg {
    color: #a855f7;
}

.dropdown-item.logout-item {
    color: rgba(239, 68, 68, 0.9);
}

.dropdown-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.dropdown-item.logout-item svg {
    color: rgba(239, 68, 68, 0.9);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 15, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 rgba(10, 10, 15, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-main {
        padding-top: 100px;
    }

    .dashboard-section {
        max-width: 100%;
    }

    .dashboard-title {
        font-size: 2rem;
    }

    .result-file {
        padding: 22px 10px;
    }

    .result-file-header {
        flex-direction: column;
        gap: 14px;
    }

    .result-file-meta {
        width: 100%;
        justify-content: flex-start;
    }

    .result-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .action-btn {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }

    .username-text {
        display: none;
    }

    .file-modal-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-modal-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .results-container {
        padding: 25px 18px;
    }

    .results-header {
        margin: -25px -18px 25px;
        padding: 15px 18px 20px;
    }

    .preview-line {
        font-size: 0.85rem;
    }
}
