/* SheerID Verification Service - Styles */ :root { --primary-color: #6366f1; --primary-hover: #4f46e5; --secondary-color: #64748b; --success-color: #22c55e; --error-color: #ef4444; --warning-color: #f59e0b; --bg-color: #0f172a; --bg-card: #1e293b; --bg-input: #334155; --text-primary: #f1f5f9; --text-secondary: #94a3b8; --border-color: #475569; --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3); --radius: 12px; --radius-sm: 8px; --transition: all 0.2s ease; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: linear-gradient(135deg, var(--bg-color) 0%, #1a1a2e 100%); color: var(--text-primary); min-height: 100vh; line-height: 1.6; } .app-container { max-width: 900px; margin: 0 auto; padding: 24px; } /* Header */ .header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background: var(--bg-card); border-radius: var(--radius); margin-bottom: 24px; box-shadow: var(--shadow); } .logo { display: flex; align-items: center; gap: 12px; } .logo-icon { font-size: 32px; } .logo h1 { font-size: 1.5rem; font-weight: 700; background: linear-gradient(135deg, var(--primary-color), #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .nav-tabs { display: flex; gap: 8px; } .tab-btn { padding: 10px 20px; background: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); } .tab-btn:hover { background: var(--bg-input); color: var(--text-primary); } .tab-btn.active { background: var(--primary-color); border-color: var(--primary-color); color: white; } /* Cards */ .card { background: var(--bg-card); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.05); } /* IP Info Card */ .ip-info-card { padding: 16px 24px; margin-bottom: 20px; } .ip-info-header { display: flex; align-items: center; gap: 16px; } .ip-info-icon { font-size: 2.5rem; } .ip-info-details { flex: 1; } .ip-address { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); } .ip-type { font-size: 0.9rem; color: var(--text-secondary); } .ip-type.residential { color: var(--success-color); } .ip-type.mobile { color: #3b82f6; } .ip-type.datacenter, .ip-type.proxy { color: var(--warning-color); } .ip-location { text-align: right; font-size: 0.9rem; color: var(--text-secondary); } .ip-location .country { font-weight: 500; color: var(--text-primary); } .btn-refresh { background: var(--bg-input); border: 1px solid var(--border-color); border-radius: 50%; width: 36px; height: 36px; font-size: 1.1rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; } .btn-refresh:hover { background: var(--primary-color); border-color: var(--primary-color); transform: rotate(180deg); } .card-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 20px; color: var(--text-primary); } /* Form Elements */ .form-group { margin-bottom: 20px; } .form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 8px; } .input-field, .select-field { width: 100%; padding: 12px 16px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.95rem; transition: var(--transition); } .input-field:focus, .select-field:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); } .input-field::placeholder { color: var(--text-secondary); } .input-field.small { padding: 8px 12px; font-size: 0.85rem; } .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } /* Type Selector */ .type-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; } .type-btn { display: flex; flex-direction: column; align-items: center; padding: 16px 12px; background: var(--bg-input); border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); } .type-btn:hover { background: rgba(99, 102, 241, 0.1); border-color: var(--primary-color); } .type-btn.active { background: rgba(99, 102, 241, 0.15); border-color: var(--primary-color); } .type-icon { font-size: 1.5rem; margin-bottom: 6px; } .type-name { font-size: 0.8rem; font-weight: 500; color: var(--text-primary); } /* Buttons */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; font-size: 0.95rem; font-weight: 600; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); } .btn-primary { background: linear-gradient(135deg, var(--primary-color), #8b5cf6); color: white; box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4); } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5); } .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; } .btn-secondary { background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border-color); } .btn-secondary:hover { background: var(--border-color); } .btn-group { display: flex; gap: 12px; } .btn-danger { background: var(--error-color); color: white; padding: 6px 12px; font-size: 0.8rem; } /* Loader */ .btn-loader { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Advanced Options */ .collapse-toggle { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; } .collapse-toggle .arrow { transition: var(--transition); } .collapse-toggle.open .arrow { transform: rotate(180deg); } .advanced-options { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-color); } /* Result Area */ .result-area { margin-top: 20px; padding: 16px; border-radius: var(--radius-sm); background: var(--bg-input); border-left: 4px solid var(--primary-color); } .result-area.success { border-left-color: var(--success-color); background: rgba(34, 197, 94, 0.1); } .result-area.error { border-left-color: var(--error-color); background: rgba(239, 68, 68, 0.1); } .result-area.pending { border-left-color: var(--warning-color); background: rgba(245, 158, 11, 0.1); } .result-title { font-weight: 600; margin-bottom: 8px; } .result-item { font-size: 0.9rem; margin: 4px 0; color: var(--text-secondary); word-break: break-all; } .result-item strong { color: var(--text-primary); } /* Schools List */ .schools-list { max-height: 300px; overflow-y: auto; margin-bottom: 20px; } .school-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: var(--bg-input); border-radius: var(--radius-sm); margin-bottom: 8px; } .school-info { flex: 1; } .school-name { font-weight: 500; font-size: 0.95rem; } .school-meta { font-size: 0.8rem; color: var(--text-secondary); } .school-default { background: var(--success-color); color: white; padding: 2px 8px; border-radius: 12px; font-size: 0.7rem; margin-left: 8px; } /* Add School Form */ .add-school-form { padding-top: 20px; border-top: 1px solid var(--border-color); } .add-school-form h3 { font-size: 1rem; margin-bottom: 16px; color: var(--text-secondary); } /* UTM Params */ .utm-params { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } /* Tab Content */ .tab-content { display: none; } .tab-content.active { display: block; animation: fadeIn 0.3s ease; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } /* Toast Notifications */ #toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 1000; } .toast { padding: 14px 20px; background: var(--bg-card); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); margin-top: 12px; animation: slideIn 0.3s ease; border-left: 4px solid var(--primary-color); } .toast.success { border-left-color: var(--success-color); } .toast.error { border-left-color: var(--error-color); } @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* Loading Spinner */ .loading-spinner { text-align: center; padding: 20px; color: var(--text-secondary); } /* Utilities */ .hidden { display: none !important; } /* Scrollbar */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: var(--bg-input); border-radius: 4px; } ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); } /* Responsive */ @media (max-width: 768px) { .header { flex-direction: column; gap: 16px; } .form-row { grid-template-columns: 1fr; } .type-selector { grid-template-columns: repeat(2, 1fr); } .utm-params { grid-template-columns: 1fr; } .btn-group { flex-direction: column; } } /* K12 School Search */ .school-search-container { position: relative; } .school-search-results { position: absolute; top: 100%; left: 0; right: 0; max-height: 350px; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); z-index: 100; margin-top: 4px; } .school-result { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border-color); transition: var(--transition); } .school-result:last-child { border-bottom: none; } .school-result:hover { background: var(--bg-input); } .school-result-info { flex: 1; min-width: 0; } .school-result-name { font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .school-result-meta { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; } .school-result-actions { display: flex; gap: 6px; margin-left: 12px; flex-shrink: 0; } .btn-mini { padding: 6px 10px; font-size: 0.75rem; font-weight: 600; border: none; border-radius: 6px; cursor: pointer; transition: var(--transition); } .btn-mini.btn-primary { background: var(--primary-color); color: white; } .btn-mini.btn-primary:hover { background: var(--primary-hover); } .btn-mini.btn-secondary { background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border-color); } .btn-mini.btn-secondary:hover { background: var(--border-color); } .search-loading, .no-results, .search-error { padding: 16px; text-align: center; color: var(--text-secondary); } .search-error { color: var(--error-color); } /* Selected School Badge */ .selected-school-badge { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(99, 102, 241, 0.15); border: 1px solid var(--primary-color); border-radius: var(--radius-sm); margin-top: 12px; } .selected-school-badge .school-icon { font-size: 1.2rem; } .selected-school-badge span { flex: 1; color: var(--text-primary); } .clear-school { background: none; border: none; color: var(--text-secondary); font-size: 1.2rem; cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: var(--transition); } .clear-school:hover { background: var(--error-color); color: white; } /* Document Preview Area */ .preview-area { margin-top: 24px; padding: 20px; background: var(--bg-input); border-radius: var(--radius); border: 1px solid var(--border-color); } .preview-area h3 { margin-bottom: 16px; color: var(--text-primary); } .preview-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .preview-item { background: var(--bg-card); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-color); } .preview-label { padding: 10px; background: var(--primary-color); color: white; font-weight: 600; text-align: center; font-size: 0.9rem; } .preview-item img { width: 100%; height: auto; display: block; cursor: pointer; transition: var(--transition); } .preview-item img:hover { opacity: 0.9; } @media (max-width: 768px) { .preview-images { grid-template-columns: 1fr; } }