/* Outlook Phish — Admin styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Segoe UI", -apple-system, Roboto, Arial, sans-serif; background: #f3f2f1; color: #252423; font-size: 14px; }
.hidden { display: none !important; }
.muted { color: #605e5c; } .small { font-size: 12px; }
.center { text-align: center; padding: 30px; }
code { background: #edebe9; padding: 1px 5px; border-radius: 3px; font-size: 12px; }

/* logo */
.ms-logo span { width: 11px; height: 11px; display: inline-block; margin-right: 2px; vertical-align: middle; }
.ms-logo.small span { width: 9px; height: 9px; }
.r{background:#f25022}.g{background:#7fba00}.b{background:#00a4ef}.y{background:#ffb900}

/* login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f3f2f1 0%, #e8e6e4 100%); }
.login-card { width: 340px; background: #fff; border: 1px solid #d1d1d1; padding: 28px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.login-card h1 { font-size: 22px; margin: 14px 0 4px; }
.login-card form label { display: block; font-size: 13px; color: #3b3a39; margin: 12px 0 4px; }

/* inputs & buttons */
input, select, textarea { width: 100%; padding: 8px 10px; border: 1px solid #c8c6c4; font-size: 14px; font-family: inherit; background: #fff; color: #252423; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #0078d4; box-shadow: 0 0 0 1px #0078d4 inset; }
textarea { resize: vertical; font-family: Consolas, "Courier New", monospace; font-size: 12.5px; line-height: 1.5; }
.btn { padding: 8px 14px; border: 1px solid #c8c6c4; background: #fff; cursor: pointer; font-size: 13.5px; font-family: inherit; color: #252423; }
.btn:hover { background: #f3f2f1; }
.btn.primary { background: #0078d4; border-color: #0078d4; color: #fff; font-weight: 600; }
.btn.primary:hover { background: #106ebe; }
.btn.danger { color: #a4262c; border-color: #e5b3b6; }
.btn.danger:hover { background: #fde7e9; }
.btn.block { width: 100%; margin-top: 18px; }
.error-text { display: none; color: #a4262c; font-size: 13px; margin-top: 8px; }

/* topbar */
.topbar { background: #fff; border-bottom: 1px solid #d1d1d1; padding: 0 20px; display: flex; align-items: center; gap: 24px; height: 52px; position: sticky; top: 0; z-index: 10; }
.brand { font-weight: 600; font-size: 15px; white-space: nowrap; }
.tabs { display: flex; gap: 4px; flex: 1; }
.tab { border: none; background: none; padding: 15px 12px; cursor: pointer; font-size: 14px; color: #605e5c; border-bottom: 2px solid transparent; font-family: inherit; }
.tab.active { color: #0f6cbd; border-bottom-color: #0f6cbd; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.linklike { color: #0067b8; text-decoration: none; cursor: pointer; font-size: 13.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #8a8886; display: inline-block; }
.dot.live { background: #107c10; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* layout */
.tabpane { display: none; padding: 20px; max-width: 1280px; margin: 0 auto; }
.tabpane.active { display: block; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid #d1d1d1; padding: 16px; }
.stat-num { font-size: 26px; font-weight: 700; color: #0f6cbd; }
.stat-num.small-text { font-size: 15px; line-height: 34px; }
.stat-label { color: #605e5c; font-size: 12.5px; margin-top: 2px; }

/* toolbar */
.toolbar { display: flex; gap: 10px; margin-bottom: 12px; align-items: center; }
.toolbar input[type=search] { max-width: 340px; }

/* table */
.table-wrap { background: #fff; border: 1px solid #d1d1d1; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #edebe9; vertical-align: top; }
th { background: #faf9f8; color: #605e5c; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
tbody tr:hover { background: #f8f7f6; }
td.mono, pre.mono { font-family: Consolas, "Courier New", monospace; font-size: 12px; word-break: break-all; }
.pw-cell button { border: none; background: none; cursor: pointer; color: #0067b8; font-size: 13px; padding: 0; font-family: inherit; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge.token { background: #deecf9; color: #0f6cbd; }
.badge.none { background: #edebe9; color: #8a8886; }
.badge.bot { background: #fff4ce; color: #795c00; }
.detail-row td { background: #faf9f8; padding: 12px 16px; }
pre.mono { background: #fff; border: 1px solid #e1dfdd; padding: 10px; max-height: 260px; overflow: auto; white-space: pre-wrap; margin-top: 6px; }
.detail-label { font-size: 12px; color: #605e5c; margin-top: 8px; }

/* email tab */
.email-grid, .settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.panel { background: #fff; border: 1px solid #d1d1d1; padding: 18px; }
.panel h2 { font-size: 15px; margin-bottom: 12px; }
.panel label { display: block; font-size: 13px; color: #3b3a39; margin: 10px 0 4px; }
.row { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.gap > * + * { margin-left: 8px; }
.check { display: flex !important; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px !important; color: #252423 !important; }
.check input { width: 16px; height: 16px; accent-color: #0078d4; }

@media (max-width: 900px) { .stats, .email-grid, .settings-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .stats, .email-grid, .settings-grid { grid-template-columns: 1fr; } .topbar { flex-wrap: wrap; height: auto; padding: 8px 12px; } }
