/* Custom styles for the app */ :root { --background-color: #f5f8fa; --text-color: #333; --card-bg: #fff; --border-color: #e3e8ee; --sidebar-bg: #f0f2f5; --sidebar-hover-bg: #e0e5ee; --highlight-color: #3b82f6; } [data-bs-theme="dark"] { --background-color: #1a2234; --text-color: #e6e8eb; --card-bg: #24304d; --border-color: #374564; --sidebar-bg: #151a27; --sidebar-hover-bg: #1c2133; --highlight-color: #3f8cff; } body { background-color: var(--background-color); color: var(--text-color); font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; transition: background-color 0.3s ease; } .markdown-body { padding: 1rem; background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 4px; } .markdown-body h1 { font-size: 1.75rem; margin-top: 0; } .markdown-body h2 { font-size: 1.5rem; } .markdown-body h3 { font-size: 1.25rem; } .markdown-body pre { background-color: #f6f8fa; border-radius: 3px; padding: 16px; overflow: auto; } .markdown-body table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; } .markdown-body th, .markdown-body td { padding: 8px; border: 1px solid #ddd; } .markdown-body th { background-color: #f8f9fa; } /* IP Grid for subnet visualization */ .ip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; } .ip-cell { font-size: 0.75rem; padding: 6px; border-radius: 4px; text-align: center; border: 1px solid rgba(0, 0, 0, 0.125); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ip-cell.used { background-color: rgba(234, 88, 12, 0.1); border-color: rgba(234, 88, 12, 0.5); } .ip-cell.available { background-color: rgba(5, 150, 105, 0.1); border-color: rgba(5, 150, 105, 0.5); } /* Stats cards on dashboard */ .stats-card { transition: transform 0.2s; } .stats-card:hover { transform: translateY(-5px); } /* Custom navbar styles */ .navbar-brand { font-weight: 600; } /* Sidebar styles */ .sidebar { background-color: var(--sidebar-bg); color: var(--text-color); height: 100vh; position: fixed; left: 0; width: 250px; z-index: 1000; overflow-y: auto; transition: all 0.3s; } .sidebar-brand { padding: 1.5rem 1rem; font-size: 1.25rem; font-weight: 600; display: flex; align-items: center; color: var(--text-color); } .sidebar-brand-text { margin-left: 0.5rem; } .sidebar-heading { padding: 0.75rem 1rem 0.5rem; font-size: 0.75rem; text-transform: uppercase; font-weight: 600; color: var(--text-color); opacity: 0.6; } .sidebar-item { display: block; padding: 0.5rem 1rem; color: var(--text-color); text-decoration: none; border-radius: 0.25rem; margin: 0.2rem 0.5rem; transition: background-color 0.2s; } .sidebar-item:hover { background-color: var(--sidebar-hover-bg); color: var(--text-color); } .sidebar-item.active { background-color: var(--highlight-color); color: white; } /* Main content */ .main-content { margin-left: 250px; padding: 1rem; min-height: 100vh; } /* Header styles */ .page-header { margin-bottom: 1.5rem; } .page-title { font-weight: 600; } .page-pretitle { color: #6c757d; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; } /* Auth pages */ body.auth-page { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; background-color: var(--background-color); } .auth-form { max-width: 450px; margin: 0 auto; } /* Port visualization */ .port-map { overflow-x: auto; } .port-map-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; } .port-item { padding: 4px; font-size: 10px; text-align: center; border-radius: 3px; cursor: pointer; user-select: none; } .port-item:hover { opacity: 0.8; } /* Responsive tweaks */ @media (max-width: 768px) { .sidebar { transform: translateX(-100%); } .sidebar.show { transform: translateX(0); } .main-content { margin-left: 0; } .main-content.sidebar-open { margin-left: 250px; } } /* Theme switch */ #theme-toggle { width: 38px; height: 38px; position: relative; } .theme-icon-light { display: none; } .theme-icon-dark { display: inline-block; } [data-bs-theme="dark"] .theme-icon-light { display: inline-block; } [data-bs-theme="dark"] .theme-icon-dark { display: none; } /* Notification area */ #notification-area { position: fixed; bottom: 20px; right: 20px; z-index: 9999; width: 300px; }