/* Base layout */ :root { --bg-primary: #1a1a1a; --bg-secondary: #2d2d2d; --bg-elevated: #1a1a1a; --text-primary: #ffffff; --text-secondary: #b3b3b3; --accent-primary: #007bff; --accent-hover: #0056b3; --border-color: #404040; --success-color: #28a745; } body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: var(--bg-primary); color: var(--text-primary); min-height: 100vh; display: flex; flex-direction: column; } .container { width: 95%; max-width: 1600px; margin: 20px auto; padding: 30px 40px; background: var(--bg-secondary); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); flex: 1; box-sizing: border-box; border-radius: 8px; text-align: center; /* Ensures content is centered */ } /* Tooltip styles */ .tooltip { position: relative; display: inline-block; } .tooltip .tooltip-text { visibility: hidden; width: 250px; background-color: var(--bg-elevated); color: var(--text-primary); text-align: center; border-radius: 6px; padding: 8px; border: 1px solid var(--border-color); font-size: 14px; /* Position the tooltip */ position: absolute; z-index: 1; bottom: 125%; left: 50%; transform: translateX(-50%); /* Animation */ opacity: 0; transition: opacity 0.3s; } .tooltip:hover .tooltip-text { visibility: visible; opacity: 1; } /* Progress bar styles */ .progress-container { width: 100%; background-color: var(--bg-primary); border-radius: 4px; margin: 10px 0; overflow: hidden; } .progress-bar { height: 20px; background-color: var(--accent-primary); width: 0%; transition: width 0.3s ease; position: relative; } .progress-text { position: absolute; right: 10px; color: var(--text-primary); font-size: 12px; line-height: 20px; } /* Typography */ h1 { font-family: 'Merriweather', serif; /* Applies Merriweather font */ font-weight: 700; /* Ensures the font weight is bold */ font-size: 36px; /* Adjusts the font size as needed */ letter-spacing: 2px; /* Adds spacing between letters for a strong look */ text-align: center; /* Centers the text */ text-transform: uppercase; /* Transforms text to uppercase */ text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adds subtle shadow */ line-height: 1.2; /* Adjusts line height */ margin-top: 10px; /* Adjusts top margin to align with the logo */ margin-bottom: 10px; /* Adjusts bottom margin for spacing */ color: var(--text-primary); /* Maintains existing text color */ } h2 { font-size: 24px; margin-bottom: 20px; color: var(--text-primary); } p { text-align: center; /* This will center the text */ margin-bottom: 30px; font-size: 16px; color: var(--text-secondary); line-height: 1.5; } /* Navigation */ .nav-links { text-align: center; margin-bottom: 40px; padding: 20px 0; border-bottom: 1px solid var(--border-color); } .nav-links a { display: inline-block; margin: 10px 20px; padding: 12px 24px; background-color: var(--bg-elevated); color: var(--text-primary); text-decoration: none; border-radius: 6px; font-size: 18px; transition: all 0.3s ease; border: 1px solid var(--border-color); } .nav-links a:hover { background-color: var(--accent-primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } /* Section handling */ .section { display: none; text-align: center; } .section.active { display: block; } /* Form elements */ form { max-width: 800px; margin: 0 auto; text-align: left; padding: 20px; } label { display: block; margin-top: 20px; font-size: 16px; font-weight: bold; color: var(--text-secondary); } input[type="text"], input[type="datetime-local"], textarea { width: 100%; padding: 12px; margin-top: 8px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 6px; box-sizing: border-box; font-size: 16px; color: var(--text-primary); transition: all 0.3s ease; } input[type="text"]:focus, input[type="datetime-local"]:focus, textarea:focus { border-color: var(--accent-primary); outline: none; box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2); } textarea { min-height: 120px; resize: vertical; } input[type="file"] { display: block; margin: 30px auto; padding: 10px; color: var(--text-secondary); } button { margin-top: 20px; padding: 12px 24px; background: var(--accent-primary); color: var(--text-primary); border: none; border-radius: 6px; cursor: pointer; font-size: 16px; transition: all 0.3s ease; } #downloadBtn { background: var(--accent-primary); display: block; /* Makes the button a block element */ margin: 20px auto; /* Auto margins on left and right will center it */ } button:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } button:disabled { background: var(--bg-elevated); cursor: not-allowed; } /* Advanced Search Styles */ .search-container { margin: 20px 0; padding: 20px; background: var(--bg-elevated); border-radius: 8px; border: 1px solid var(--border-color); } .search-bar { display: flex; gap: 10px; margin-bottom: 15px; } .search-input { flex: 1; padding: 12px 20px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-primary); font-size: 16px; } .search-toggle { padding: 12px 20px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-primary); cursor: pointer; transition: all 0.3s ease; } .advanced-search { padding: 15px; border-top: 1px solid var(--border-color); margin-top: 15px; } .search-options { display: flex; gap: 20px; margin-bottom: 15px; flex-wrap: wrap; } .filter-fields { display: flex; gap: 15px; align-items: center; } .kind-filter { margin: 15px 0; } .kind-filter select { padding: 8px; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-primary); min-width: 200px; } .date-filter { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; } /* Table styles */ table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 30px 0; background: var(--bg-secondary); border-radius: 8px; overflow: hidden; } th, td { padding: 15px; border: 1px solid var(--border-color); text-align: left; vertical-align: top; } th { background: var(--bg-elevated); font-weight: bold; color: var(--text-primary); cursor: pointer; transition: background-color 0.3s ease; } th:hover { background: var(--accent-primary); } td { color: var(--text-secondary); } tr:hover { background: var(--bg-elevated); } .number-column { width: 50px; text-align: right; color: var(--text-secondary); } .content-cell { max-width: 800px; white-space: pre-wrap; word-break: break-word; } /* Sort indicators */ .sort-indicator::after { content: '⬍'; margin-left: 5px; } .sort-asc::after { content: '↑'; } .sort-desc::after { content: '↓'; } /* Stats and messages */ .stats { text-align: center; color: var(--text-secondary); margin-bottom: 20px; font-size: 1.1em; padding: 20px; background: var(--bg-elevated); border-radius: 6px; } .empty-message { text-align: center; color: var(--text-secondary); } #status { margin-top: 20px; white-space: pre-wrap; color: var(--text-secondary); } /* Search highlighting */ .search-highlight { background-color: rgba(0, 123, 255, 0.2); border-radius: 3px; padding: 2px; } .regex-highlight { background-color: rgba(255, 123, 0, 0.2); border-radius: 3px; padding: 2px; } /* Pagination */ .pagination { text-align: center; margin: 20px 0; } .pagination button { margin: 0 5px; padding: 5px 10px; background: var(--accent-primary); color: var(--text-primary); border: none; cursor: pointer; border-radius: 3px; } .pagination button:disabled { background: var(--bg-elevated); cursor: not-allowed; } /* Spinner */ #spinner { display: none; text-align: center; margin-top: 20px; } .loader { border: 8px solid var(--bg-elevated); border-top: 8px solid var(--accent-primary); border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite; margin: 0 auto; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Footer */ footer { background-color: var(--bg-elevated); color: var(--text-secondary); padding: 20px; text-align: center; margin-top: auto; } .footer-content { max-width: 1600px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; } .copyright { color: var(--text-secondary); font-size: 14px; } .footer-link { color: var(--text-primary); text-decoration: none; font-size: 14px; transition: color 0.3s; } .footer-link:hover { color: var(--accent-primary); } /* Responsive adjustments */ @media (max-width: 1200px) { .container { width: 95%; padding: 20px; } .content-cell { max-width: 600px; } } @media (max-width: 768px) { .container { width: 100%; margin: 0; padding: 15px; border-radius: 0; } .nav-links a { display: block; margin: 10px auto; width: 80%; max-width: 300px; } .search-bar { flex-direction: column; } .date-filter { flex-direction: column; align-items: stretch; } /* Broadcast section styles */ .relay-input { max-width: 800px; margin: 20px auto; text-align: left; } .relay-input textarea { width: 100%; margin-top: 10px; } #broadcastStatus { margin: 20px 0; color: var(--text-secondary); } #startBroadcastBtn { display: block; margin: 20px auto; } #broadcast .progress-container { max-width: 800px; margin: 20px auto; } .broadcast-status { margin: 20px 0; padding: 15px; border: 1px solid #ddd; border-radius: 5px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; } .status-section { padding: 10px; background: #f9f9f9; border-radius: 4px; } .status-section h3 { margin: 0 0 10px 0; color: #333; font-size: 1.1em; display: flex; align-items: center; gap: 8px; } .status-section h3 .spinner { width: 16px; height: 16px; border: 2px solid #f3f3f3; border-top: 2px solid #3498db; border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; margin-left: 5px; } .status-section p { margin: 5px 0; color: #666; display: flex; align-items: center; gap: 8px; } .event-id { font-family: monospace; background: #f0f0f0; padding: 2px 6px; border-radius: 3px; display: inline-block; margin-right: 5px; } .copy-button { background: #e0e0e0; border: none; border-radius: 3px; padding: 2px 8px; cursor: pointer; font-size: 0.8em; color: #666; } .copy-button:hover { background: #d0d0d0; } .copy-button.copied { background: #90EE90; color: #006400; } .status-section.error { background: #fff0f0; border-left: 3px solid #ff4444; } .final-summary { margin-top: 20px; padding: 20px; background: #f0f8ff; border: 1px solid #b8daff; border-radius: 5px; } .summary-section { margin: 10px 0; } .summary-section h4 { margin: 10px 0; color: #2c5282; } } /* Responsive Adjustments for Logo */ @media (max-width: 768px) { .logo { width: 60px; height: 60px; margin-bottom: 15px; } } @media (max-width: 480px) { .logo { width: 50px; height: 50px; margin-bottom: 12px; } } /* Logo Styling */ .logo { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 20px auto; display: block; /* Ensures block-level behavior for centering */ }