/* Reset and Base Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary: #3b82f6; --primary-dark: #2563eb; --secondary: #10b981; --danger: #ef4444; --warning: #f59e0b; --info: #06b6d4; --purple: #8b5cf6; --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb; --gray-300: #d1d5db; --gray-400: #9ca3af; --gray-500: #6b7280; --gray-600: #4b5563; --gray-700: #374151; --gray-800: #1f2937; --gray-900: #111827; --white: #ffffff; --black: #000000; --sidebar-width: 260px; --header-height: 80px; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; --radius-2xl: 20px; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); color: var(--gray-900); line-height: 1.6; overflow-x: hidden; } /* App Layout */ .app { display: flex; min-height: 100vh; } /* Sidebar */ .sidebar { width: var(--sidebar-width); background: var(--white); border-right: 1px solid var(--gray-200); box-shadow: var(--shadow-lg); position: fixed; top: 0; left: 0; height: 100vh; z-index: 100; } .sidebar-header { padding: 24px; border-bottom: 1px solid var(--gray-200); } .logo { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; color: var(--gray-900); } .logo i { color: var(--primary); font-size: 24px; } .nav-menu { list-style: none; padding: 24px 0; } .nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: var(--gray-600); cursor: pointer; transition: all 0.2s ease; font-weight: 500; } .nav-item:hover { background: var(--gray-50); color: var(--gray-900); } .nav-item.active { background: linear-gradient(90deg, var(--primary) 0%, transparent 100%); color: var(--primary); border-right: 3px solid var(--primary); } .nav-item i { font-size: 18px; width: 20px; } /* Main Content */ .main-content { flex: 1; margin-left: var(--sidebar-width); padding: 32px; min-height: 100vh; } /* Page */ .page { display: none; animation: fadeIn 0.3s ease; } .page.active { display: block; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .page-header { margin-bottom: 32px; } .page-header h1 { font-size: 32px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; } .page-header p { color: var(--gray-600); font-size: 16px; } /* Stats Grid */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-bottom: 32px; } .stat-card { background: var(--white); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); transition: all 0.3s ease; display: flex; align-items: center; gap: 16px; } .stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); } .stat-icon { width: 60px; height: 60px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--white); } .stat-icon.clients { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); } .stat-icon.servers { background: linear-gradient(135deg, var(--secondary), #059669); } .stat-icon.categories { background: linear-gradient(135deg, var(--purple), #7c3aed); } .stat-icon.stars { background: linear-gradient(135deg, var(--warning), #d97706); } .stat-number { font-size: 28px; font-weight: 700; color: var(--gray-900); line-height: 1; } .stat-label { color: var(--gray-600); font-weight: 500; margin-top: 4px; } /* Charts */ .charts-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 24px; margin-bottom: 32px; } .chart-card { background: var(--white); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); } .chart-card h3 { margin-bottom: 16px; color: var(--gray-900); font-weight: 600; } .chart-card canvas { max-height: 300px; } /* Top Projects */ .top-projects { background: var(--white); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); } .top-projects h3 { margin-bottom: 8px; color: var(--gray-900); font-weight: 600; } .performance-note { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); border-radius: var(--radius-md); color: var(--primary); font-size: 12px; margin-bottom: 16px; } .performance-note i { font-size: 14px; } .project-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); transition: all 0.2s ease; cursor: pointer; } .project-item:last-child { border-bottom: none; } .project-item:hover { background: var(--gray-50); margin: 0 -16px; padding: 12px 16px; border-radius: var(--radius-md); } .project-rank { font-weight: 700; color: var(--primary); font-size: 14px; min-width: 28px; flex-shrink: 0; } .project-github { flex: 1; min-width: 0; } .project-github a { display: flex; align-items: center; gap: 8px; color: var(--gray-700); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s ease; } .project-github a:hover { color: var(--primary); } .project-github a i { color: var(--gray-500); font-size: 16px; flex-shrink: 0; } .project-stars { color: var(--gray-600); font-size: 14px; display: flex; align-items: center; gap: 4px; font-weight: 600; flex-shrink: 0; min-width: 60px; justify-content: flex-end; } .project-stars i { color: var(--warning); } /* Search Controls */ .search-controls { background: var(--white); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); margin-bottom: 24px; } .search-box { position: relative; margin-bottom: 16px; } .search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray-400); } .search-box input { width: 100%; padding: 12px 16px 12px 48px; border: 2px solid var(--gray-200); border-radius: var(--radius-lg); font-size: 16px; background: var(--white); transition: all 0.2s ease; } .search-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } .filters { display: flex; gap: 16px; flex-wrap: wrap; } .filters select { padding: 10px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius-md); background: var(--white); font-size: 14px; color: var(--gray-700); cursor: pointer; transition: all 0.2s ease; } .filters select:focus { outline: none; border-color: var(--primary); } /* Search Results */ .search-results { background: var(--white); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-md); border: 1px solid var(--gray-200); } .results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); } #results-count { color: var(--gray-600); font-weight: 500; } .view-toggle { display: flex; gap: 8px; } .view-btn { padding: 8px 12px; border: 2px solid var(--gray-200); background: var(--white); border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s ease; color: var(--gray-600); } .view-btn:hover { border-color: var(--primary); color: var(--primary); } .view-btn.active { background: var(--primary); border-color: var(--primary); color: var(--white); } .results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; min-height: 200px; } .results-grid.list-view { grid-template-columns: 1fr; } .results-grid.list-view .project-card { height: auto; flex-direction: row; align-items: flex-start; padding: 16px 20px; } .results-grid.list-view .project-header { flex: 1; margin-right: 20px; } .results-grid.list-view .project-meta { flex-direction: row; align-items: center; gap: 20px; flex: none; min-width: 300px; } .results-grid.list-view .project-tags { margin-top: 0; flex: 1; } /* Pagination */ .pagination-container { margin-top: 32px; padding: 24px 0; border-top: 2px solid var(--gray-100); } .pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 16px; } .page-btn { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 2px solid var(--gray-200); background: var(--white); border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s ease; color: var(--gray-700); font-weight: 500; font-size: 14px; } .page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); } .page-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; } .page-numbers { display: flex; gap: 4px; } .page-number { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 2px solid var(--gray-200); background: var(--white); border-radius: var(--radius-md); cursor: pointer; transition: all 0.2s ease; color: var(--gray-700); font-weight: 500; font-size: 14px; } .page-number:hover { border-color: var(--primary); color: var(--primary); } .page-number.active { background: var(--primary); border-color: var(--primary); color: var(--white); } .page-number.ellipsis { border: none; cursor: default; background: transparent; } .page-number.ellipsis:hover { border: none; color: var(--gray-700); } .pagination-info { text-align: center; color: var(--gray-600); font-size: 14px; font-weight: 500; } /* Project Card */ .project-card { border: 2px solid var(--gray-200); border-radius: var(--radius-lg); padding: 20px; background: var(--white); transition: all 0.3s ease; cursor: pointer; display: flex; flex-direction: column; gap: 16px; height: 200px; } .project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); } .project-header { display: flex; justify-content: space-between; align-items: flex-start; flex-shrink: 0; } .project-info { flex: 1; min-width: 0; } .project-title { font-size: 18px; font-weight: 600; color: var(--gray-900); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .project-author { color: var(--gray-600); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .project-type { padding: 6px 10px; border-radius: var(--radius-md); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; margin-left: 12px; } .project-type.client { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; } .project-type.server { background: linear-gradient(135deg, var(--secondary), #059669); color: white; } /* Smaller project type badges in stats */ .project-stats .project-type { font-size: 10px; padding: 3px 8px; border-radius: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; } .project-meta { display: flex; flex-direction: column; gap: 12px; flex: 1; } .project-stats { display: flex; gap: 20px; font-size: 13px; color: var(--gray-600); } .stat-item { display: flex; align-items: center; gap: 6px; font-weight: 500; } .stat-item i { color: var(--gray-400); font-size: 12px; } .project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; } .tag { background: var(--gray-100); color: var(--gray-700); padding: 4px 8px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 500; border: 1px solid var(--gray-200); } .tag.more { background: var(--gray-200); color: var(--gray-500); font-weight: 600; } .category-badge { background: linear-gradient(135deg, var(--purple), #7c3aed); color: var(--white); padding: 4px 10px; border-radius: var(--radius-md); font-size: 11px; font-weight: 600; text-transform: capitalize; display: inline-block; align-self: flex-start; box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3); } /* Modal */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1000; backdrop-filter: blur(4px); } .modal.active { display: flex; align-items: center; justify-content: center; animation: fadeIn 0.3s ease; } .modal-content { background: var(--white); border-radius: var(--radius-2xl); max-width: 600px; width: 90%; max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow-xl); animation: slideUp 0.3s ease; } @keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--gray-200); } .modal-header h2 { color: var(--gray-900); font-weight: 600; } .modal-close { background: none; border: none; font-size: 20px; color: var(--gray-400); cursor: pointer; padding: 8px; border-radius: var(--radius-md); transition: all 0.2s ease; } .modal-close:hover { background: var(--gray-100); color: var(--gray-600); } .modal-body { padding: 24px; } .modal-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; } @media (min-width: 600px) { .modal-grid { grid-template-columns: 1fr 1fr; } } .modal-info { display: flex; flex-direction: column; gap: 16px; } .info-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--gray-100); } .info-row:last-child { border-bottom: none; } .info-label { font-weight: 600; color: var(--gray-700); font-size: 14px; } .info-value { color: var(--gray-900); font-weight: 500; } .external-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); text-decoration: none; font-weight: 500; font-size: 14px; transition: all 0.2s ease; } .external-link:hover { color: var(--primary-dark); transform: translateX(2px); } .modal-github h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--gray-900); font-weight: 600; font-size: 16px; } .github-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 20px; } .github-stat { text-align: center; padding: 16px 12px; background: linear-gradient(135deg, var(--gray-50), var(--gray-100)); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); transition: all 0.2s ease; } .github-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } .github-stat-value { font-size: 20px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; } .github-stat-label { font-size: 12px; color: var(--gray-600); font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 4px; } .github-stat-label i { font-size: 10px; } .github-link { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); padding: 12px 20px; border-radius: var(--radius-lg); text-decoration: none; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); } .github-link:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); } .modal-section { margin-bottom: 20px; padding-top: 20px; border-top: 1px solid var(--gray-200); } .modal-section:first-child { border-top: none; padding-top: 0; } .modal-section h4 { margin-bottom: 12px; color: var(--gray-900); font-weight: 600; font-size: 16px; } .description-text { line-height: 1.6; color: var(--gray-700); font-size: 15px; } /* Loading States */ .loading { display: flex; justify-content: center; align-items: center; height: 200px; } .spinner { width: 40px; height: 40px; border: 4px solid var(--gray-200); border-top: 4px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Empty States */ .empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); } .empty-state i { font-size: 48px; margin-bottom: 16px; color: var(--gray-300); } .empty-state h3 { margin-bottom: 8px; color: var(--gray-600); } /* Responsive Design */ @media (max-width: 768px) { .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; } .sidebar.open { transform: translateX(0); } .main-content { margin-left: 0; padding: 16px; } .page-header h1 { font-size: 24px; } .stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; } .stat-card { padding: 16px; gap: 12px; } .stat-icon { width: 48px; height: 48px; font-size: 20px; } .stat-number { font-size: 24px; } .charts-container { grid-template-columns: 1fr; gap: 16px; } .filters { flex-direction: column; } .filters select { width: 100%; } .results-grid { grid-template-columns: 1fr; gap: 16px; } .project-card { height: auto; min-height: 160px; } .project-title { font-size: 16px; } .project-stats { gap: 16px; } .modal-grid { grid-template-columns: 1fr; } .github-stats { grid-template-columns: repeat(2, 1fr); } .results-grid.list-view .project-card { flex-direction: column; height: auto; } .results-grid.list-view .project-header { margin-right: 0; margin-bottom: 12px; } .results-grid.list-view .project-meta { flex-direction: column; align-items: flex-start; gap: 12px; min-width: auto; } /* Pagination mobile styles */ .pagination { flex-direction: column; gap: 12px; } .page-numbers { order: -1; flex-wrap: wrap; justify-content: center; max-width: 100%; } .page-btn { padding: 8px 12px; font-size: 12px; } .page-number { width: 36px; height: 36px; font-size: 12px; } .pagination-info { font-size: 12px; } }