        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: #fafaf9;
            min-height: 100vh;
            padding: 20px;
            padding-top: 80px; /* Space for fixed navbar */
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        /* Navbar Styles */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: #fafaf9;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
            z-index: 1000;
            height: 60px;
        }
        .navbar-container {
            max-width: 1200px;
            margin: 0 auto;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
        }
        .navbar-brand {
            color: #667eea;
            text-decoration: none;
            font-size: 1.25rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .navbar-brand:hover {
            color: #4f46e5;
        }
        .navbar-nav {
            display: flex;
            align-items: center;
            gap: 30px;
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .nav-item {
            position: relative;
        }
        .nav-link {
            color: #667eea;
            text-decoration: none;
            padding: 8px 12px;
            border-radius: 6px;
            transition: all 0.3s ease;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .nav-link:hover {
            color: white;
            background: #667eea;
        }
        .nav-link.active {
            color: white;
            background: #667eea;
        }
        /* Dropdown styles */
        .dropdown {
            position: relative;
        }
        .dropdown-toggle::after {
            content: '▼';
            font-size: 0.7rem;
            margin-left: 4px;
        }
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: #fafaf9;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            min-width: 200px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            margin-top: 8px;
            border: 1px solid rgba(102, 126, 234, 0.1);
            z-index: 1001;
        }
        .dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .dropdown-item {
            display: block;
            color: #667eea;
            text-decoration: none;
            padding: 12px 16px;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }
        .dropdown-item:hover {
            color: white;
            background: #667eea;
        }
        .dropdown-item:first-child {
            border-radius: 8px 8px 0 0;
        }
        .dropdown-item:last-child {
            border-radius: 0 0 8px 8px;
        }
        /* Legal links section */
        .navbar-legal {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-left: auto;
        }
        .navbar-legal a {
            color: #9ca3af;
            text-decoration: none;
            font-size: 0.85rem;
            transition: all 0.3s ease;
        }
        .navbar-legal a:hover {
            color: #6b7280;
        }
        /* Mobile menu button */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: #667eea;
            font-size: 1.5rem;
            cursor: pointer;
        }
        /* Mobile menu */
        .mobile-menu {
            display: none;
            position: fixed;
            top: 60px;
            left: 0;
            right: 0;
            background: #fafaf9;
            max-height: calc(100vh - 60px);
            overflow-y: auto;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            border-top: 1px solid rgba(102, 126, 234, 0.1);
            z-index: 9999;
        }
        .mobile-menu.open {
            display: block;
        }
        .mobile-nav {
            padding: 20px;
        }
        .mobile-nav-item {
            margin-bottom: 10px;
        }
        .mobile-nav-link {
            display: block;
            color: #667eea;
            text-decoration: none;
            padding: 12px 0;
            font-size: 1rem;
            border-bottom: 1px solid rgba(102, 126, 234, 0.1);
        }
        .mobile-nav-link:hover {
            color: #4f46e5;
        }
        .mobile-nav-link.active {
            color: #4f46e5;
            font-weight: 600;
        }
        .mobile-dropdown-toggle {
            width: 100%;
            background: none;
            border: none;
            color: #667eea;
            text-align: left;
            padding: 12px 0;
            font-size: 1rem;
            cursor: pointer;
            border-bottom: 1px solid rgba(102, 126, 234, 0.1);
        }
        .mobile-dropdown-menu {
            display: none;
            padding-left: 20px;
        }
        .mobile-dropdown-menu.open {
            display: block;
        }
        .mobile-legal {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid rgba(102, 126, 234, 0.1);
        }
        /* Header styles */
        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 40px;
            text-align: center;
            position: relative;
        }
        .header h1 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
        }
        .header p {
            font-size: 1.1rem;
            opacity: 0.9;
        }
        .header .features-highlight {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
            margin-top: 20px;
        }
        .feature-badge {
            background: rgba(255, 255, 255, 0.2);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
            backdrop-filter: blur(10px);
        }
        /* Main content styles */
        .main-content {
            display: grid;
            grid-template-columns: 300px 1fr 300px;
            gap: 0;
            min-height: 600px;
            position: relative;
        }
        .sidebar {
            background: #f8fafc;
            padding: 20px;
            border-right: 1px solid #e2e8f0;
        }
        .sidebar:last-child {
            border-right: none;
            border-left: 1px solid #e2e8f0;
        }
        .content-area {
            padding: 40px;
            background: white;
        }
        /* Word Counter Specific Styles */
        .tool-section {
            background: white;
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        }
        .tool-section h2 {
            color: #1e293b;
            font-size: 1.5rem;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .upload-area {
            border: 3px dashed #667eea;
            border-radius: 12px;
            padding: 60px 30px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #f8fafc;
            margin-bottom: 30px;
        }
        .upload-area:hover {
            border-color: #764ba2;
            background: #f1f5f9;
        }
        .upload-area.has-files {
            border-color: #10b981;
            background: #f0fdf4;
        }
        .upload-icon {
            font-size: 4rem;
            color: #667eea;
            margin-bottom: 20px;
        }
        .upload-text {
            font-size: 1.3rem;
            color: #1e293b;
            font-weight: 600;
            margin-bottom: 10px;
        }
        .upload-subtext {
            color: #64748b;
            font-size: 1rem;
        }
        .file-list {
            display: none;
            margin-top: 20px;
            max-height: 200px;
            overflow-y: auto;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: white;
        }
        .file-list.show {
            display: block;
        }
        .file-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            border-bottom: 1px solid #f1f5f9;
        }
        .file-item:last-child {
            border-bottom: none;
        }
        .file-info {
            flex: 1;
        }
        .file-name {
            font-weight: 500;
            color: #1e293b;
            margin-bottom: 2px;
        }
        .file-size {
            font-size: 0.85rem;
            color: #64748b;
        }
        .remove-file {
            background: #ef4444;
            color: white;
            border: none;
            padding: 4px 8px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.8rem;
        }
        .count-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 15px 40px;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            margin-top: 20px;
        }
        .count-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }
        .count-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        .results-area {
            display: none;
            margin-top: 30px;
        }
        .results-area.show {
            display: block;
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        .stat-card {
            background: white;
            padding: 20px;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: #667eea;
            margin-bottom: 5px;
        }
        .stat-label {
            color: #64748b;
            font-size: 0.9rem;
            font-weight: 500;
        }
        .detailed-results {
            background: white;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
            overflow: hidden;
        }
        .detailed-results h3 {
            background: #f8fafc;
            padding: 15px 20px;
            margin: 0;
            color: #1e293b;
            border-bottom: 1px solid #e2e8f0;
        }
        .file-result {
            padding: 20px;
            border-bottom: 1px solid #f1f5f9;
        }
        .file-result:last-child {
            border-bottom: none;
        }
        .file-result-name {
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 10px;
        }
        .file-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 15px;
        }
        .file-stat {
            text-align: center;
            padding: 10px;
            background: #f8fafc;
            border-radius: 6px;
        }
        .file-stat-number {
            font-size: 1.2rem;
            font-weight: 600;
            color: #667eea;
        }
        .file-stat-label {
            font-size: 0.8rem;
            color: #64748b;
            margin-top: 2px;
        }
        .export-section {
            margin-top: 30px;
            padding: 20px;
            background: #f8fafc;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
        }
        .export-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        .export-btn {
            background: #10b981;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        .export-btn:hover {
            background: #059669;
        }
        .progress-bar {
            width: 100%;
            height: 8px;
            background: #e2e8f0;
            border-radius: 4px;
            overflow: hidden;
            margin: 20px 0;
            display: none;
        }
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #667eea, #764ba2);
            width: 0%;
            transition: width 0.3s ease;
        }
        .file-input {
            display: none;
        }
        .sidebar-section {
            margin-bottom: 30px;
            padding: 20px;
            background: #f8fafc;
            border-radius: 8px;
            border: 1px solid #e2e8f0;
        }
        .sidebar-section h3 {
            color: #1e293b;
            font-size: 1.2rem;
            margin-bottom: 15px;
        }
        .sidebar-section ul {
            list-style: none;
            padding: 0;
        }
        .sidebar-section li {
            margin-bottom: 8px;
            padding-left: 20px;
            position: relative;
        }
        .sidebar-section li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #10b981;
            font-weight: bold;
        }
        /* Responsive styles */
        @media (max-width: 1024px) {
            .navbar-nav {
                gap: 20px;
            }
            .nav-link {
                font-size: 0.9rem;
                padding: 6px 10px;
            }
            .main-content {
                grid-template-columns: 1fr;
            }
            .sidebar {
                display: none;
            }
            .content-area {
                border-radius: 0;
            }
        }
        @media (max-width: 768px) {
            .navbar-nav,
            .navbar-legal {
                display: none;
            }
            .mobile-menu-btn {
                display: block;
            }
            .navbar-brand {
                font-size: 1.1rem;
            }
            body {
                padding: 10px;
                padding-top: 70px;
            }
            .container {
                border-radius: 10px;
            }
            .header {
                padding: 20px 15px;
            }
            .header h1 {
                font-size: 1.5rem;
                line-height: 1.3;
            }
            .header p {
                font-size: 0.9rem;
            }
            .content-area {
                padding: 20px 15px;
            }
            .upload-area {
                padding: 40px 20px;
            }
            .stats-grid {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
                gap: 15px;
            }
            .file-stats {
                grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
                gap: 10px;
            }
            .features-highlight {
                gap: 10px;
            }
            .feature-badge {
                font-size: 0.8rem;
                padding: 6px 12px;
            }
        }
        @media (max-width: 480px) {
            .header h1 {
                font-size: 1.25rem;
            }
            .header p {
                font-size: 0.8rem;
            }
        }
        /* AdSense container styles */
        .ad-container {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 10px;
            margin: 20px 0;
            text-align: center;
        }
        .ad-label {
            font-size: 0.75rem;
            color: #6c757d;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
