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

        :root {
            --bg-primary: #1a1a1a;
            --bg-secondary: #2d2d2d;
            --bg-card: #333333;
            --text-primary: #ffffff;
            --text-secondary: #b3b3b3;
            --accent-orange: #ff6b35;
            --accent-orange-hover: #e55a2b;
            --success: #4ade80;
            --error: #ef4444;
            --border: #404040;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            overflow-x: hidden;
        }

        .dashboard {
            display: flex;
            min-height: 100vh;
        }

        /* Sidebar */
        .sidebar {
            width: 250px;
            background-color: var(--bg-secondary);
            padding: 2rem 0;
            border-right: 1px solid var(--border);
            transition: all 0.3s ease;
            position: relative;
            z-index: 100;
        }

        .sidebar.collapsed {
            width: 0;
            padding: 0;
            overflow: hidden;
        }

        .logo {
            padding: 0 2rem 2rem;
            border-bottom: 1px solid var(--border);
            margin-bottom: 2rem;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo h1 {
            color: var(--accent-orange);
            font-size: 1.5rem;
            font-weight: 700;
        }

        .sidebar-close {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 1.2rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 4px;
            transition: all 0.3s ease;
            display: none;
        }

        .sidebar-close:hover {
            background-color: var(--bg-card);
            color: var(--text-primary);
        }

        .nav-item {
            display: flex;
            align-items: center;
            padding: 1rem 2rem;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .nav-item:hover, .nav-item.active {
            background-color: var(--bg-card);
            color: var(--accent-orange);
            border-right: 3px solid var(--accent-orange);
        }

        .nav-item i {
            margin-right: 1rem;
            font-size: 1.2rem;
        }

        /* Main Content */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        /* Top Bar */
        .top-bar {
            background-color: var(--bg-secondary);
            padding: 1rem 2rem;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .top-bar-left {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .sidebar-toggle {
            background-color: var(--bg-card);
            border: 1px solid var(--border);
            color: var(--text-primary);
            padding: 0.5rem;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1.2rem;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .sidebar-toggle:hover {
            background-color: var(--accent-orange);
        }

        .search-bar {
            background-color: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 0.5rem 1rem;
            color: var(--text-primary);
            width: 300px;
        }

        .user-section {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .theme-toggle {
            background-color: var(--bg-card);
            border: 1px solid var(--border);
            color: var(--text-primary);
            padding: 0.5rem;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .theme-toggle:hover {
            background-color: var(--accent-orange);
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-orange), #ff8c42);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            cursor: pointer;
        }

        /* Content Area */
        .content {
            flex: 1;
            padding: 2rem;
            overflow-y: auto;
        }

        .page-header {
            margin-bottom: 2rem;
        }

        .page-title {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .page-subtitle {
            color: var(--text-secondary);
        }

        /* Upload Section */
        .upload-section {
            background-color: var(--bg-card);
            border-radius: 12px;
            padding: 2rem;
            margin-bottom: 2rem;
            border: 2px dashed var(--border);
            transition: all 0.3s ease;
        }

        .upload-section.drag-over {
            border-color: var(--accent-orange);
            background-color: rgba(255, 107, 53, 0.1);
        }

        .upload-area {
            text-align: center;
            padding: 3rem 2rem;
            cursor: pointer;
        }

        .upload-icon {
            font-size: 4rem;
            color: var(--accent-orange);
            margin-bottom: 1rem;
        }

        .upload-text {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
        }

        .upload-subtext {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .upload-button {
            background-color: var(--accent-orange);
            color: white;
            border: none;
            padding: 0.75rem 2rem;
            border-radius: 8px;
            font-size: 1rem;
            cursor: pointer;
            margin-top: 1rem;
            transition: background-color 0.3s ease;
        }

        .upload-button:hover {
            background-color: var(--accent-orange-hover);
        }

        /* File List */
        .file-list {
            background-color: var(--bg-card);
            border-radius: 12px;
            padding: 1.5rem;
        }

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

        .sort-controls {
            display: flex;
            gap: 1rem;
        }

        .sort-btn {
            background-color: var(--bg-secondary);
            border: 1px solid var(--border);
            color: var(--text-secondary);
            padding: 0.5rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .sort-btn:hover, .sort-btn.active {
            background-color: var(--accent-orange);
            color: white;
            border-color: var(--accent-orange);
        }

        .file-item {
            display: flex;
            align-items: center;
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 0.5rem;
            background-color: var(--bg-secondary);
            transition: all 0.3s ease;
        }

        .file-item:hover {
            background-color: var(--bg-primary);
        }

        .file-preview {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            margin-right: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: var(--bg-card);
            overflow: hidden;
        }

        .file-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 6px;
        }

        .file-icon {
            font-size: 1.5rem;
            color: var(--accent-orange);
        }

        .file-info {
            flex: 1;
            margin-right: 1rem;
        }

        .file-name {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }

        .file-details {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .file-progress {
            width: 200px;
            margin-right: 1rem;
        }

        .progress-bar {
            width: 100%;
            height: 6px;
            background-color: var(--bg-primary);
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 0.5rem;
        }

        .progress-fill {
            height: 100%;
            background-color: var(--accent-orange);
            border-radius: 3px;
            transition: width 0.3s ease;
        }

        .progress-text {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

        .file-status {
            margin-right: 1rem;
        }

        .status-icon {
            font-size: 1.2rem;
        }

        .status-uploading { color: var(--accent-orange); }
        .status-success { color: var(--success); }
        .status-error { color: var(--error); }

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

        .action-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 4px;
            transition: all 0.3s ease;
            font-size: 1rem;
        }

        .action-btn:hover {
            background-color: var(--bg-card);
            color: var(--text-primary);
        }

        .view-btn:hover {
            color: var(--accent-orange);
        }

        .download-btn:hover {
            color: var(--success);
        }

        .remove-btn:hover {
            color: var(--error);
        }

        /* Toast Notifications */
        .toast-container {
            position: fixed;
            top: 2rem;
            right: 2rem;
            z-index: 1000;
        }

        .toast {
            background-color: var(--bg-card);
            border: 1px solid var(--border);
            border-left: 4px solid var(--accent-orange);
            border-radius: 8px;
            padding: 1rem 1.5rem;
            margin-bottom: 1rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            transform: translateX(100%);
            animation: slideIn 0.3s ease forwards;
        }

        .toast.success {
            border-left-color: var(--success);
        }

        .toast.error {
            border-left-color: var(--error);
        }

        @keyframes slideIn {
            to {
                transform: translateX(0);
            }
        }

        /* Light Theme */
        body.light-theme {
            --bg-primary: #ffffff;
            --bg-secondary: #f8f9fa;
            --bg-card: #ffffff;
            --text-primary: #1a1a1a;
            --text-secondary: #6b7280;
            --border: #e5e7eb;
        }

        body.light-theme .file-list,
        body.light-theme .upload-section {
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        /* Responsive Design */
        
        /* Mobile First - Base styles for mobile */
        @media (max-width: 480px) {
            .dashboard {
                flex-direction: column;
            }

            .sidebar {
                transform: translateX(-100%);
                position: fixed;
                height: 100vh;
                z-index: 1000;
                width: 100% !important;
                padding: 1rem 0 !important;
                top: 0;
                left: 0;
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .sidebar.collapsed {
                transform: translateX(-100%);
            }

            .sidebar-close {
                display: block !important;
            }

            .main-content {
                width: 100%;
            }

            .top-bar {
                padding: 0.75rem 1rem;
                flex-wrap: wrap;
                gap: 0.5rem;
            }

            .top-bar-left {
                flex: 1;
                min-width: 200px;
            }

            .search-bar {
                width: 100%;
                max-width: 200px;
                font-size: 14px;
            }

            .user-section {
                gap: 0.5rem;
            }

            .content {
                padding: 1rem;
            }

            .page-header {
                margin-bottom: 1.5rem;
            }

            .page-title {
                font-size: 1.5rem;
            }

            .page-subtitle {
                font-size: 0.9rem;
            }

            .upload-section {
                padding: 1rem;
                margin-bottom: 1.5rem;
            }

            .upload-area {
                padding: 2rem 1rem;
            }

            .upload-icon {
                font-size: 2.5rem;
            }

            .upload-text {
                font-size: 1rem;
            }

            .upload-subtext {
                font-size: 0.8rem;
            }

            .upload-button {
                padding: 0.6rem 1.5rem;
                font-size: 0.9rem;
            }

            .file-list {
                padding: 1rem;
            }

            .file-list-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }

            .file-list-header h2 {
                font-size: 1.2rem;
            }

            .sort-controls {
                width: 100%;
                justify-content: flex-start;
                gap: 0.5rem;
                flex-wrap: wrap;
            }

            .sort-btn {
                padding: 0.4rem 0.8rem;
                font-size: 0.8rem;
                flex: 1;
                min-width: 60px;
            }

            .file-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
                padding: 0.75rem !important;
            }

            .file-preview {
                width: 40px;
                height: 40px;
                align-self: flex-start;
            }

            .file-info {
                width: 100%;
                margin-right: 0;
            }

            .file-name {
                font-size: 0.9rem;
                word-break: break-word;
            }

            .file-details {
                font-size: 0.8rem;
            }

            .file-progress {
                width: 100%;
                margin-right: 0;
            }

            .progress-text {
                font-size: 0.75rem;
            }

            .file-status {
                margin-right: 0;
                align-self: flex-start;
            }

            .file-actions {
                width: 100%;
                justify-content: flex-end;
                gap: 0.25rem;
            }

            .action-btn {
                padding: 0.4rem;
                font-size: 0.9rem;
            }

            .footer {
                padding: 1rem;
            }

            .footer-content {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }

            .footer-right {
                flex-direction: column;
                gap: 0.5rem;
            }

            .github-link {
                padding: 0.4rem 0.8rem;
                font-size: 0.8rem;
            }

            /* Modal adjustments for mobile */
            .profile-modal {
                width: 95%;
                max-width: none;
                margin: 1rem;
                padding: 1.5rem;
                max-height: 90vh;
            }

            .modal-header {
                padding-bottom: 0.75rem;
                margin-bottom: 1.5rem;
            }

            .modal-title {
                font-size: 1.2rem;
            }

            .profile-picture {
                width: 100px;
                height: 100px;
                font-size: 2.5rem;
            }

            .picture-buttons {
                flex-direction: column;
                gap: 0.5rem;
            }

            .picture-btn {
                width: 100%;
                padding: 0.6rem;
                font-size: 0.9rem;
            }

            .form-input {
                padding: 0.6rem 0.8rem;
                font-size: 0.9rem;
            }

            .modal-actions {
                flex-direction: column;
                gap: 0.75rem;
            }

            .btn {
                width: 100%;
                padding: 0.75rem;
                font-size: 0.9rem;
            }

            /* File viewer modal for mobile */
            .file-viewer-modal {
                width: 100%;
                height: 100%;
                max-width: none;
                max-height: none;
                border-radius: 0;
            }

            .file-viewer-header {
                padding: 1rem;
            }

            .file-viewer-title {
                font-size: 1rem;
            }

            .viewer-btn {
                padding: 0.5rem;
                font-size: 0.8rem;
            }

            .text-viewer {
                padding: 1rem;
                font-size: 0.8rem;
            }

            .unsupported-viewer {
                padding: 2rem 1rem;
            }

            .unsupported-icon {
                font-size: 3rem;
            }

            .unsupported-text {
                font-size: 1rem;
            }

            .download-suggestion {
                padding: 0.6rem 1.2rem;
                font-size: 0.9rem;
            }

            /* Toast adjustments */
            .toast-container {
                top: 1rem;
                right: 1rem;
                left: 1rem;
            }

            .toast {
                padding: 0.75rem 1rem;
                font-size: 0.9rem;
            }
        }

        /* Small tablets and large phones */
        @media (min-width: 481px) and (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
                position: fixed;
                height: 100vh;
                z-index: 1000;
                width: 280px !important;
                padding: 2rem 0 !important;
            }

            .sidebar.open {
                transform: translateX(0);
            }

            .sidebar.collapsed {
                transform: translateX(-100%);
            }

            .sidebar-close {
                display: block !important;
            }

            .top-bar {
                padding: 1rem 1.5rem;
            }

            .search-bar {
                width: 200px;
            }

            .content {
                padding: 1.5rem;
            }

            .page-title {
                font-size: 1.75rem;
            }

            .upload-area {
                padding: 2.5rem 1.5rem;
            }

            .upload-icon {
                font-size: 3.5rem;
            }

            .file-item {
                flex-direction: row;
                flex-wrap: wrap;
                align-items: center;
                gap: 1rem;
            }

            .file-info {
                flex: 1;
                min-width: 200px;
            }

            .file-progress {
                width: 180px;
            }

            .sort-controls {
                flex-wrap: wrap;
                gap: 0.75rem;
            }

            .sort-btn {
                flex: 1;
                min-width: 80px;
            }

            .footer-content {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }

            .footer-right {
                flex-direction: row;
                justify-content: center;
                gap: 1rem;
            }

            /* Modal adjustments for tablets */
            .profile-modal {
                width: 90%;
                max-width: 500px;
            }

            .file-viewer-modal {
                width: 95%;
                max-width: 900px;
                max-height: 90vh;
            }
        }

        /* Large tablets and small desktops */
        @media (min-width: 769px) and (max-width: 1024px) {
            .sidebar {
                width: 220px;
            }

            .search-bar {
                width: 250px;
            }

            .content {
                padding: 1.75rem;
            }

            .file-item {
                padding: 0.875rem;
            }

            .file-progress {
                width: 160px;
            }

            .sort-controls {
                gap: 0.75rem;
            }
        }

        /* Desktop and larger screens */
        @media (min-width: 1025px) {
            .sidebar {
                width: 250px;
            }

            .search-bar {
                width: 300px;
            }

            .content {
                padding: 2rem;
            }

            .file-progress {
                width: 200px;
            }
        }

        /* Extra large screens */
        @media (min-width: 1440px) {
            .content {
                max-width: 1400px;
                margin: 0 auto;
                padding: 2rem 3rem;
            }

            .upload-section {
                max-width: 800px;
                margin: 0 auto 2rem;
            }

            .file-list {
                max-width: 1200px;
                margin: 0 auto;
            }
        }

        /* Landscape orientation adjustments for mobile */
        @media (max-width: 768px) and (orientation: landscape) {
            .upload-area {
                padding: 1.5rem 1rem;
            }

            .upload-icon {
                font-size: 2rem;
            }

            .upload-text {
                font-size: 0.9rem;
            }

            .profile-modal {
                max-height: 85vh;
            }

            .file-viewer-modal {
                height: 100vh;
            }
        }

        /* High DPI displays */
        @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
            .file-preview img {
                image-rendering: -webkit-optimize-contrast;
                image-rendering: crisp-edges;
            }

            .profile-picture img {
                image-rendering: -webkit-optimize-contrast;
                image-rendering: crisp-edges;
            }
        }

        /* Responsive Settings */
        @media (max-width: 768px) {
            .settings-container {
                padding: 0;
            }

            .settings-section {
                padding: 1.5rem;
                margin-bottom: 1.5rem;
                border-radius: 8px;
            }

            .settings-title {
                font-size: 1.1rem;
            }

            .setting-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }

            .setting-label {
                min-width: auto;
                font-size: 0.9rem;
            }

            .setting-control {
                width: 100%;
            }

            .slider {
                width: 100%;
                max-width: 300px;
            }

            .setting-select {
                width: 100%;
                max-width: 300px;
                font-size: 0.9rem;
            }

            .checkbox-group,
            .radio-group {
                width: 100%;
                gap: 0.75rem;
            }

            .checkbox-label,
            .radio-label {
                padding: 0.6rem 0.8rem;
                font-size: 0.85rem;
                flex: 1;
                min-width: 120px;
            }

            .setting-description {
                font-size: 0.8rem;
                margin-top: 0.5rem;
            }

            .settings-actions {
                flex-direction: column;
                padding: 1.5rem;
            }

            .danger-btn,
            .export-btn {
                width: 100%;
                margin-bottom: 0.75rem;
                margin-right: 0;
                padding: 0.6rem 1rem;
                font-size: 0.9rem;
            }

            .toggle-switch {
                width: 45px;
                height: 22px;
            }

            .toggle-slider:before {
                height: 16px;
                width: 16px;
                left: 2px;
                bottom: 2px;
            }

            input:checked + .toggle-slider:before {
                transform: translateX(23px);
            }
        }

        /* Print styles */
        @media print {
            .sidebar,
            .top-bar,
            .footer,
            .toast-container,
            .modal-overlay {
                display: none !important;
            }

            .main-content {
                width: 100% !important;
            }

            .content {
                padding: 0 !important;
            }

            .file-item {
                break-inside: avoid;
                page-break-inside: avoid;
            }

            .upload-section {
                display: none !important;
            }
        }

        /* Reduced motion preferences */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }

            .loading-spinner {
                animation: none;
            }

            .toast {
                animation: none;
                transform: translateX(0);
            }
        }

        /* Dark mode preferences */
        @media (prefers-color-scheme: dark) {
            :root {
                --bg-primary: #1a1a1a;
                --bg-secondary: #2d2d2d;
                --bg-card: #333333;
                --text-primary: #ffffff;
                --text-secondary: #b3b3b3;
                --border: #404040;
            }
        }

        /* Light mode preferences */
        @media (prefers-color-scheme: light) {
            body:not(.light-theme) {
                --bg-primary: #ffffff;
                --bg-secondary: #f8f9fa;
                --bg-card: #ffffff;
                --text-primary: #1a1a1a;
                --text-secondary: #6b7280;
                --border: #e5e7eb;
            }
        }

        /* Footer */
        .footer {
            background-color: var(--bg-secondary);
            border-top: 1px solid var(--border);
            padding: 1.5rem 2rem;
            margin-top: auto;
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .created-by {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .created-by strong {
            color: var(--accent-orange);
            font-weight: 700;
        }

        .footer-right {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .open-source-text {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .github-link {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-primary);
            text-decoration: none;
            background-color: var(--bg-card);
            padding: 0.5rem 1rem;
            border-radius: 8px;
            border: 1px solid var(--border);
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .github-link:hover {
            background-color: var(--accent-orange);
            border-color: var(--accent-orange);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
        }

        .github-icon {
            font-size: 1rem;
        }

        /* Hidden file input */
        #fileInput {
            display: none;
        }

        /* Profile Modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

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

        .profile-modal {
            background-color: var(--bg-card);
            border-radius: 16px;
            padding: 2rem;
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
            border: 1px solid var(--border);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            transform: scale(0.9) translateY(20px);
            transition: all 0.3s ease;
        }

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

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

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

        .close-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 6px;
            transition: all 0.3s ease;
        }

        .close-btn:hover {
            background-color: var(--bg-secondary);
            color: var(--text-primary);
        }

        .profile-picture-section {
            text-align: center;
            margin-bottom: 2rem;
        }

        .profile-picture-container {
            position: relative;
            display: inline-block;
            margin-bottom: 1rem;
        }

        .profile-picture {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-orange), #ff8c42);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            font-weight: bold;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            overflow: hidden;
            border: 4px solid var(--border);
        }

        .profile-picture:hover {
            transform: scale(1.05);
            border-color: var(--accent-orange);
        }

        .profile-picture img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

        .picture-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            cursor: pointer;
        }

        .profile-picture-container:hover .picture-overlay {
            opacity: 1;
        }

        .camera-icon {
            color: white;
            font-size: 1.5rem;
        }

        .picture-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-top: 1rem;
        }

        .picture-btn {
            background-color: var(--bg-secondary);
            border: 1px solid var(--border);
            color: var(--text-primary);
            padding: 0.5rem 1rem;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .picture-btn:hover {
            background-color: var(--accent-orange);
            border-color: var(--accent-orange);
            color: white;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .form-input {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 1px solid var(--border);
            border-radius: 8px;
            background-color: var(--bg-secondary);
            color: var(--text-primary);
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--accent-orange);
            box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
        }

        .form-textarea {
            resize: vertical;
            min-height: 80px;
        }

        .modal-actions {
            display: flex;
            gap: 1rem;
            justify-content: flex-end;
            margin-top: 2rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border);
        }

        .btn {
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
        }

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

        .btn-secondary:hover {
            background-color: var(--bg-primary);
        }

        .btn-primary {
            background-color: var(--accent-orange);
            color: white;
        }

        .btn-primary:hover {
            background-color: var(--accent-orange-hover);
        }

        #profilePictureInput {
            display: none;
        }

        /* File Viewer Modal */
        .file-viewer-modal {
            background-color: var(--bg-card);
            border-radius: 16px;
            padding: 0;
            width: 95%;
            max-width: 1200px;
            max-height: 95vh;
            overflow: hidden;
            border: 1px solid var(--border);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            transform: scale(0.9) translateY(20px);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
        }

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

        .file-viewer-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem 2rem;
            border-bottom: 1px solid var(--border);
            background-color: var(--bg-secondary);
        }

        .file-viewer-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
            flex: 1;
            margin-right: 1rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .file-viewer-actions {
            display: flex;
            gap: 0.5rem;
        }

        .viewer-btn {
            background-color: var(--bg-card);
            border: 1px solid var(--border);
            color: var(--text-primary);
            padding: 0.5rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .viewer-btn:hover {
            background-color: var(--accent-orange);
            border-color: var(--accent-orange);
            color: white;
        }

        .file-viewer-content {
            flex: 1;
            overflow: auto;
            background-color: var(--bg-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 400px;
        }

        .image-viewer {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            border-radius: 8px;
        }

        .document-viewer {
            width: 100%;
            height: 100%;
            min-height: 600px;
            border: none;
            background-color: white;
        }

        .text-viewer {
            width: 100%;
            height: 100%;
            padding: 2rem;
            font-family: 'Courier New', monospace;
            font-size: 0.9rem;
            line-height: 1.6;
            color: var(--text-primary);
            background-color: var(--bg-card);
            border: none;
            resize: none;
            overflow: auto;
        }

        .unsupported-viewer {
            text-align: center;
            padding: 3rem;
            color: var(--text-secondary);
        }

        .unsupported-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
            opacity: 0.5;
        }

        .unsupported-text {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
        }

        .unsupported-subtext {
            font-size: 0.9rem;
            margin-bottom: 2rem;
        }

        .download-suggestion {
            background-color: var(--accent-orange);
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1rem;
            transition: background-color 0.3s ease;
        }

        .download-suggestion:hover {
            background-color: var(--accent-orange-hover);
        }

        /* Loading spinner */
        .loading-spinner {
            display: inline-block;
            width: 40px;
            height: 40px;
            border: 4px solid var(--border);
            border-radius: 50%;
            border-top-color: var(--accent-orange);
            animation: spin 1s ease-in-out infinite;
        }

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

        /* Responsive file viewer */
        @media (max-width: 768px) {
            .file-viewer-modal {
                width: 100%;
                height: 100%;
                max-width: none;
                max-height: none;
                border-radius: 0;
            }

            .file-viewer-header {
                padding: 1rem;
            }

            .file-viewer-title {
                font-size: 1rem;
            }

            .viewer-btn {
                padding: 0.5rem;
                font-size: 0.8rem;
            }

            .text-viewer {
                padding: 1rem;
                font-size: 0.8rem;
            }
        }

        /* Settings Styles */
        .settings-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .settings-section {
            background-color: var(--bg-card);
            border-radius: 12px;
            padding: 2rem;
            margin-bottom: 2rem;
            border: 1px solid var(--border);
        }

        .settings-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 1.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border);
        }

        .setting-item {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 1.5rem;
            gap: 2rem;
        }

        .setting-item:last-child {
            margin-bottom: 0;
        }

        .setting-label {
            font-weight: 600;
            color: var(--text-primary);
            min-width: 200px;
            flex-shrink: 0;
        }

        .setting-control {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .setting-value {
            color: var(--accent-orange);
            font-weight: 600;
            min-width: 80px;
        }

        .setting-description {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-top: 0.25rem;
            flex-basis: 100%;
        }

        /* Slider Styles */
        .slider {
            width: 200px;
            height: 6px;
            border-radius: 3px;
            background: var(--bg-secondary);
            outline: none;
            -webkit-appearance: none;
        }

        .slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--accent-orange);
            cursor: pointer;
            border: 2px solid var(--bg-card);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--accent-orange);
            cursor: pointer;
            border: 2px solid var(--bg-card);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        /* Select Styles */
        .setting-select {
            background-color: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 0.5rem 1rem;
            color: var(--text-primary);
            font-size: 0.9rem;
            min-width: 200px;
            cursor: pointer;
        }

        .setting-select:focus {
            outline: none;
            border-color: var(--accent-orange);
            box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
        }

        /* Toggle Switch */
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--bg-secondary);
            border: 1px solid var(--border);
            transition: 0.3s;
            border-radius: 24px;
        }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 2px;
            bottom: 2px;
            background-color: var(--text-secondary);
            transition: 0.3s;
            border-radius: 50%;
        }

        input:checked + .toggle-slider {
            background-color: var(--accent-orange);
            border-color: var(--accent-orange);
        }

        input:checked + .toggle-slider:before {
            transform: translateX(26px);
            background-color: white;
        }

        /* Checkbox Group */
        .checkbox-group {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            background-color: var(--bg-secondary);
            border: 1px solid var(--border);
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .checkbox-label:hover {
            background-color: var(--bg-primary);
        }

        .checkbox-label input[type="checkbox"] {
            display: none;
        }

        .checkbox-label input[type="checkbox"]:checked + .checkmark {
            opacity: 1;
        }

        .checkbox-label input[type="checkbox"]:checked ~ * {
            color: var(--accent-orange);
        }

        .checkbox-label input[type="checkbox"]:checked {
            background-color: rgba(255, 107, 53, 0.1);
            border-color: var(--accent-orange);
        }

        .checkmark {
            opacity: 0.5;
            transition: opacity 0.3s ease;
        }

        /* Radio Group */
        .radio-group {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .radio-label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            background-color: var(--bg-secondary);
            border: 1px solid var(--border);
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .radio-label:hover {
            background-color: var(--bg-primary);
        }

        .radio-label input[type="radio"] {
            display: none;
        }

        .radio-mark {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 2px solid var(--border);
            position: relative;
            transition: all 0.3s ease;
        }

        .radio-label input[type="radio"]:checked + .radio-mark {
            border-color: var(--accent-orange);
            background-color: var(--accent-orange);
        }

        .radio-label input[type="radio"]:checked + .radio-mark:after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background-color: white;
        }

        /* Danger Zone */
        .danger-zone {
            border-top: 1px solid var(--error);
            padding-top: 1.5rem;
            margin-top: 1.5rem;
        }

        .danger-btn {
            background-color: var(--error);
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            margin-right: 1rem;
        }

        .danger-btn:hover {
            background-color: #dc2626;
            transform: translateY(-1px);
        }

        .export-btn {
            background-color: var(--bg-secondary);
            color: var(--text-primary);
            border: 1px solid var(--border);
            padding: 0.5rem 1rem;
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .export-btn:hover {
            background-color: var(--accent-orange);
            border-color: var(--accent-orange);
            color: white;
        }

        /* Settings Actions */
        .settings-actions {
            display: flex;
            justify-content: center;
            gap: 1rem;
            padding: 2rem;
            background-color: var(--bg-card);
            border-radius: 12px;
            border: 1px solid var(--border);
        }

        /* Responsive Settings */
        @media (max-width: 768px) {
            .setting-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }

            .setting-label {
                min-width: auto;
            }

            .setting-control {
                width: 100%;
            }

            .slider {
                width: 100%;
                max-width: 300px;
            }

            .setting-select {
                width: 100%;
                max-width: 300px;
            }

            .checkbox-group,
            .radio-group {
                width: 100%;
            }

            .settings-actions {
                flex-direction: column;
            }
        }
