:root { --primary-color: #2563eb; --primary-hover: #1d4ed8; --success-color: #10b981; --warning-color: #f59e0b; --danger-color: #ef4444; --bg-color: #f8fafc; --card-bg: #ffffff; --border-color: #e2e8f0; --text-primary: #1e293b; --text-secondary: #64748b; --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: var(--bg-color); color: var(--text-primary); line-height: 1.4; font-size: 0.875rem; } .container { max-width: 1600px; margin: 0 auto; padding: 0.75rem; } header { background: var(--card-bg); border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-sm); margin-bottom: 0.75rem; padding: 0.75rem 0; } .header-content { max-width: 1600px; margin: 0 auto; padding: 0 0.75rem; } h1 { color: var(--primary-color); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; } .subtitle { color: var(--text-secondary); font-size: 0.8rem; } .stats-bar { background: var(--card-bg); border-radius: 0.375rem; padding: 0.5rem 0.75rem; margin-bottom: 0.75rem; display: flex; gap: 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); } .stat-item { display: flex; flex-direction: column; } .stat-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; } .stat-value { font-size: 1.1rem; font-weight: 700; color: var(--primary-color); } .search-section { background: var(--card-bg); border-radius: 0.375rem; padding: 0.75rem; margin-bottom: 0.75rem; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); } .search-box { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; } .search-input { flex: 1; padding: 0.5rem 0.75rem; border: 2px solid var(--border-color); border-radius: 0.375rem; font-size: 0.875rem; transition: all 0.2s; } .search-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); } .regex-checkbox { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; background: var(--bg-color); border: 2px solid var(--border-color); border-radius: 0.5rem; cursor: pointer; transition: all 0.2s; user-select: none; } .regex-checkbox:hover { border-color: var(--primary-color); } .regex-checkbox input[type="checkbox"] { width: 1.25rem; height: 1.25rem; cursor: pointer; accent-color: var(--primary-color); } .regex-checkbox span { font-weight: 500; color: var(--text-primary); font-size: 0.95rem; } .filter-buttons { display: flex; gap: 0.5rem; } .filter-btn { padding: 0.75rem 1.5rem; border: 2px solid var(--border-color); background: white; border-radius: 0.5rem; cursor: pointer; font-size: 0.95rem; font-weight: 500; transition: all 0.2s; } .filter-btn:hover { border-color: var(--primary-color); color: var(--primary-color); } .filter-btn.active { background: var(--primary-color); border-color: var(--primary-color); color: white; } .search-results { margin-bottom: 2rem; } .result-item { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 0.5rem; padding: 1rem; margin-bottom: 0.5rem; cursor: pointer; transition: all 0.2s; } .result-item:hover { box-shadow: var(--shadow-md); border-color: var(--primary-color); transform: translateY(-2px); } .result-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; } .result-type-badge { padding: 0.25rem 0.75rem; border-radius: 0.25rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; } .result-type-badge.ec2 { background: #dbeafe; color: #1e40af; } .result-type-badge.sg { background: #d1fae5; color: #065f46; } .result-name { font-weight: 600; font-size: 1.1rem; } .result-meta { color: var(--text-secondary); font-size: 0.875rem; } .details-view { display: none; margin-top: 2rem; } .details-view.active { display: block; } .main-card { background: var(--card-bg); border-radius: 0.75rem; padding: 2rem; box-shadow: var(--shadow-lg); border: 2px solid var(--primary-color); margin-bottom: 2rem; } .card-header { display: flex; align-items: start; justify-content: space-between; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border-color); } .card-title { font-size: 1.75rem; font-weight: 700; color: var(--primary-color); margin-bottom: 0.5rem; } .card-subtitle { color: var(--text-secondary); font-size: 1rem; } .status-badge { padding: 0.5rem 1rem; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 600; } .status-badge.running { background: #d1fae5; color: #065f46; } .status-badge.stopped { background: #fee2e2; color: #991b1b; } .info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; } .info-item { display: flex; flex-direction: column; } .info-label { font-size: 0.875rem; color: var(--text-secondary); font-weight: 500; margin-bottom: 0.25rem; } .info-value { font-size: 1rem; color: var(--text-primary); font-weight: 600; word-break: break-all; } .nested-cards { margin-top: 2rem; } .nested-cards-header { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-primary); } .nested-card { background: linear-gradient(to right, #f8fafc, #ffffff); border: 1px solid var(--border-color); border-left: 4px solid var(--primary-color); border-radius: 0.5rem; padding: 1.5rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); transition: all 0.2s; } .nested-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); } .nested-card[style*="cursor: pointer"]:hover { border-left-color: var(--primary-hover); background: linear-gradient(to right, #f1f5f9, #ffffff); } .nested-card-title { font-size: 1.1rem; font-weight: 600; color: var(--primary-color); margin-bottom: 1rem; } .tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; } .tag { padding: 0.375rem 0.75rem; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 0.375rem; font-size: 0.875rem; } .tag-key { font-weight: 600; color: var(--text-secondary); } .tag-value { color: var(--text-primary); } .back-button { padding: 0.75rem 1.5rem; background: var(--primary-color); color: white; border: none; border-radius: 0.5rem; cursor: pointer; font-size: 1rem; font-weight: 500; transition: all 0.2s; margin-bottom: 1rem; } .back-button:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); } .empty-state { text-align: center; padding: 3rem; color: var(--text-secondary); } .empty-state-icon { font-size: 3rem; margin-bottom: 1rem; } .loading { text-align: center; padding: 2rem; color: var(--text-secondary); } .spinner { border: 3px solid var(--border-color); border-top: 3px solid var(--primary-color); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 0 auto 1rem; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Security Group Rules Styles */ .rules-section { margin-top: 1rem; background: var(--bg-color); border-radius: 0.375rem; padding: 0.75rem; } .rules-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .rules-title { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); } .rules-search { padding: 0.375rem 0.5rem; border: 1px solid var(--border-color); border-radius: 0.25rem; font-size: 0.8rem; width: 200px; } .rules-tabs { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); } .rule-tab { padding: 0.375rem 0.75rem; background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); transition: all 0.2s; } .rule-tab:hover { color: var(--primary-color); } .rule-tab.active { color: var(--primary-color); border-bottom-color: var(--primary-color); } .rules-table-container { overflow-x: auto; max-height: calc(85vh - 250px); overflow-y: auto; } .rules-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; } .rules-table th { background: var(--border-color); padding: 0.375rem 0.5rem; text-align: left; font-weight: 600; font-size: 0.75rem; position: sticky; top: 0; z-index: 1; } .rules-table td { padding: 0.375rem 0.5rem; border-bottom: 1px solid var(--border-color); } .rules-table tr:hover { background: var(--bg-color); } .rule-protocol { font-weight: 600; color: var(--primary-color); } .rule-port { font-family: 'Courier New', monospace; font-size: 0.75rem; } .rule-source { font-family: 'Courier New', monospace; font-size: 0.75rem; } .rule-description { color: var(--text-secondary); font-size: 0.75rem; font-style: italic; } .no-rules { text-align: center; padding: 1.5rem; color: var(--text-secondary); font-size: 0.85rem; } .view-rules-btn { padding: 0.25rem 0.5rem; background: var(--primary-color); color: white; border: none; border-radius: 0.25rem; cursor: pointer; font-size: 0.75rem; margin-top: 0.5rem; transition: all 0.2s; } .view-rules-btn:hover { background: var(--primary-hover); } /* Tag Filters */ .tag-filters { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; } .tag-filter-group { display: flex; flex-direction: column; gap: 0.25rem; } .tag-filter-label { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; } .tag-filter-select { padding: 0.5rem 0.75rem; border: 2px solid var(--border-color); border-radius: 0.375rem; font-size: 0.875rem; background: white; cursor: pointer; transition: all 0.2s; min-width: 200px; } .tag-filter-select:focus { outline: none; border-color: var(--primary-color); } .tag-filter-select:hover { border-color: var(--primary-color); } .clear-filters-btn { padding: 0.5rem 1rem; background: var(--bg-color); border: 2px solid var(--border-color); border-radius: 0.375rem; cursor: pointer; font-size: 0.875rem; font-weight: 500; align-self: flex-end; transition: all 0.2s; } .clear-filters-btn:hover { background: var(--danger-color); border-color: var(--danger-color); color: white; } /* View Toggle */ .view-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .view-toggle { display: flex; gap: 0.25rem; background: var(--bg-color); padding: 0.25rem; border-radius: 0.375rem; border: 1px solid var(--border-color); } .view-toggle-btn { padding: 0.5rem 1rem; border: none; background: transparent; border-radius: 0.25rem; cursor: pointer; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); transition: all 0.2s; } .view-toggle-btn:hover { color: var(--primary-color); } .view-toggle-btn.active { background: var(--card-bg); color: var(--primary-color); box-shadow: var(--shadow-sm); } /* Table View */ .results-table-view { display: none; background: var(--card-bg); border-radius: 0.5rem; overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); } .results-table-view.active { display: block; } .results-table-container { overflow-x: auto; max-height: calc(100vh - 400px); overflow-y: auto; } .results-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; } .results-table thead { background: var(--bg-color); position: sticky; top: 0; z-index: 10; } .results-table th { padding: 0.75rem; text-align: left; font-weight: 600; font-size: 0.875rem; color: var(--text-primary); border-bottom: 2px solid var(--border-color); white-space: nowrap; } .results-table td { padding: 0.75rem; border-bottom: 1px solid var(--border-color); vertical-align: top; } .results-table tbody tr { transition: all 0.15s; cursor: pointer; } .results-table tbody tr:hover { background: var(--bg-color); } .table-type-badge { padding: 0.25rem 0.5rem; border-radius: 0.25rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; display: inline-block; } .table-type-badge.ec2 { background: #dbeafe; color: #1e40af; } .table-type-badge.sg { background: #d1fae5; color: #065f46; } .table-cell-mono { font-family: 'Courier New', monospace; font-size: 0.8rem; } .table-cell-secondary { color: var(--text-secondary); font-size: 0.85rem; } .table-status-badge { padding: 0.25rem 0.5rem; border-radius: 0.25rem; font-size: 0.75rem; font-weight: 600; display: inline-block; } .table-status-badge.running { background: #d1fae5; color: #065f46; } .table-status-badge.stopped { background: #fee2e2; color: #991b1b; } /* Refresh Tooltip */ .refresh-tooltip { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 0.5rem; background: var(--text-primary); color: white; padding: 0.75rem; border-radius: 0.375rem; font-size: 0.75rem; white-space: nowrap; z-index: 1000; box-shadow: var(--shadow-lg); min-width: 200px; } .refresh-tooltip::after { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-bottom-color: var(--text-primary); } .stat-item:hover .refresh-tooltip { display: block; } .refresh-tooltip-item { padding: 0.25rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); } .refresh-tooltip-item:last-child { border-bottom: none; } .refresh-tooltip-account { font-weight: 600; /* Colors now set via hash-based inline styles */ } .refresh-tooltip-time { color: rgba(255, 255, 255, 0.8); font-size: 0.7rem; } /* Account Name Color Coding - Now using hash-based inline styles */