/* DIGIPROMAIL — style.css | v5: Smart Login + 3 Tab Settings (Backup & Migrasi) + Folders + Spam + Attachments | White #FFFFFF + Red #E11D23 */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root{ --bg:#FFFFFF; --border:#F1F1F1; --shadow: 0 4px 20px rgba(0,0,0,0.05); --red:#E11D23; --red-hover:#B91C1C; --text:#222222; --muted:#666666; --muted-light:#999999; --unread-bg:#FFF7F7; --hover-bg:#FFF1F1; --radius:14px; }
html,body{ height:100%; }
body{ font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background:var(--bg); color:var(--text); overflow:hidden; -webkit-font-smoothing:antialiased; }
button{ font-family:inherit; cursor:pointer; border:none; background:transparent; color:inherit; }
input,textarea,select{ font-family:inherit; color:var(--text); }
.hidden{ display:none !important; }

/* ---------- AUTH ---------- */
.auth-overlay{ position:fixed; inset:0; z-index:1000; background:#FFFFFF; display:flex; align-items:center; justify-content:center; padding:20px; overflow-y:auto; }
.auth-overlay.hidden{ display:none !important; }
.auth-card{ width:min(520px,100%); background:#FFFFFF; border:1px solid var(--border); border-radius:18px; box-shadow:0 10px 35px rgba(0,0,0,0.07); padding:32px 28px 24px; text-align:center; margin:auto; }
.auth-logo{ font-size:32px; font-weight:900; letter-spacing:-.5px; color:var(--red); text-shadow:0 3px 8px rgba(225,29,35,0.25); }
.auth-logo span{ color:var(--text); }
.auth-logo-sub{ font-size:10px; font-weight:800; letter-spacing:3.5px; color:var(--muted); margin-top:6px; }
.auth-title{ font-size:18px; font-weight:900; letter-spacing:.4px; margin-top:22px; }
.auth-subtitle{ font-size:13px; color:var(--muted); line-height:1.6; margin-top:6px; }
.auth-form{ text-align:left; margin-top:18px; display:flex; flex-direction:column; gap:10px; }
.auth-error{ font-size:12px; line-height:1.5; color:#fff; background:#DC2626; border-radius:8px; padding:9px 11px; }
.auth-offline{ font-size:12px; line-height:1.6; color:#92400E; background:#FFFBEB; border:1px solid #FDE68A; border-radius:10px; padding:10px 12px; }
.btn-auth{ background:var(--red); color:#fff; font-weight:900; letter-spacing:.6px; font-size:14px; padding:13px; border-radius:999px; box-shadow:0 6px 18px rgba(225,29,35,.25); margin-top:6px; }
.btn-auth:hover{ background:var(--red-hover); }
.btn-auth:disabled{ opacity:.6; cursor:not-allowed; }
.auth-slogan{ font-size:11px; font-weight:800; letter-spacing:1.2px; color:var(--muted); margin-top:20px; padding-top:16px; border-top:1px solid var(--border); }
.auth-footer{ font-size:11px; line-height:1.6; color:var(--muted-light); margin-top:8px; }
.password-wrap{ position:relative; }
.field-input.with-eye{ padding-right:44px; }
.eye-btn{ position:absolute; right:8px; top:50%; transform:translateY(-50%); width:30px; height:30px; border-radius:50%; font-size:15px; background:#fff; border:1px solid var(--border); box-shadow:var(--shadow); display:flex; align-items:center; justify-content:center; }
.accordion-toggle{ margin-top:8px; width:100%; text-align:center; font-size:12px; font-weight:800; color:var(--red); background:#FFF7F7; border:1px solid var(--border); border-radius:999px; padding:10px; }
.accordion-toggle:hover{ background:var(--hover-bg); }
.accordion-panel{ border:1px solid var(--border); border-radius:14px; padding:14px; box-shadow:var(--shadow); background:#fff; display:flex; flex-direction:column; gap:10px; }
.accordion-panel.hidden{ display:none !important; }
.section-title{ font-size:13px; font-weight:900; margin-top:8px; padding-top:12px; border-top:1px solid var(--border); }
.grid-3{ display:grid; grid-template-columns:1.6fr .7fr 1fr; gap:10px; }
.preset-row{ display:flex; gap:8px; flex-wrap:wrap; }
.preset-btn{ background:#fff; border:1px solid var(--border); box-shadow:var(--shadow); font-size:12px; font-weight:800; padding:9px 12px; border-radius:999px; }
.preset-btn:hover{ background:var(--hover-bg); }
.preset-btn.active{ background:var(--red); color:#fff; border-color:var(--red); }

/* ---------- TOPBAR ---------- */
.topbar{ height:68px; display:flex; align-items:center; gap:18px; padding:0 18px; background:#fff; border-bottom:1px solid var(--border); box-shadow:var(--shadow); position:relative; z-index:20; }
.topbar-left{ display:flex; align-items:center; gap:12px; min-width:235px; }
.icon-btn{ width:38px; height:38px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:18px; background:#fff; box-shadow:var(--shadow); border:1px solid var(--border); transition:.15s; flex-shrink:0; }
.icon-btn:hover{ background:var(--hover-bg); transform:translateY(-1px); }
.icon-btn.small{ width:30px; height:30px; font-size:13px; }
.icon-btn.with-label{ width:auto; padding:0 14px; border-radius:999px; gap:8px; font-size:13px; font-weight:600; }
.logo-wrap{ line-height:1; }
.logo{ font-size:22px; font-weight:900; letter-spacing:-.5px; color:var(--red); text-shadow:0 3px 8px rgba(225,29,35,0.25); }
.logo span{ color:var(--text); }
.logo-sub{ font-size:9px; font-weight:800; letter-spacing:3.2px; color:var(--muted); margin-top:4px; }
.topbar-center{ flex:1; display:flex; justify-content:center; }
.search-box{ width:min(640px,100%); height:46px; display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--border); border-radius:999px; padding:0 16px; box-shadow:var(--shadow); }
.search-box:focus-within{ border-color:#FECACA; box-shadow:0 4px 20px rgba(225,29,35,0.10); }
.search-box input{ flex:1; border:none; outline:none; font-size:14px; background:transparent; }
.topbar-right{ display:flex; align-items:center; gap:12px; }
.net-status{ display:flex; align-items:center; gap:7px; font-size:12px; font-weight:700; padding:8px 12px; border-radius:999px; border:1px solid var(--border); box-shadow:var(--shadow); background:#fff; }
.net-status .dot{ width:9px; height:9px; border-radius:50%; background:#22C55E; box-shadow:0 0 0 4px rgba(34,197,94,.15); }
.net-status.offline .dot{ background:#F59E0B; box-shadow:0 0 0 4px rgba(245,158,11,.15); }
.lang-toggle{ display:flex; background:#fff; border:1px solid var(--border); border-radius:8px; overflow:hidden; box-shadow:var(--shadow); }
.lang-btn{ padding:8px 13px; font-size:12px; font-weight:800; background:#fff; color:var(--text); }
.lang-btn.active{ background:var(--red); color:#fff; }
.avatar{ width:38px; height:38px; border-radius:50%; background:var(--red); color:#fff; font-weight:900; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow); font-size:16px; }

/* ---------- LAYOUT ---------- */
.layout{ display:flex; height:calc(100vh - 68px); background:#fff; }
.sidebar{ width:270px; flex-shrink:0; padding:18px 14px; border-right:1px solid var(--border); background:#fff; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:14px; overflow-y:auto; transition:.2s; }
.sidebar.collapsed{ width:72px; padding:18px 10px; }
.sidebar.collapsed .folder-label, .sidebar.collapsed .sidebar-card, .sidebar.collapsed .sidebar-footer, .sidebar.collapsed .badge, .sidebar.collapsed .my-folders, .sidebar.collapsed .account-chip{ display:none; }
.sidebar.collapsed .btn-compose{ font-size:20px; padding:12px 0; }
.sidebar.collapsed .folder-item{ justify-content:center; padding:11px 0; }
.btn-compose{ background:var(--red); color:#fff; font-weight:800; font-size:13px; letter-spacing:.3px; padding:14px 16px; border-radius:999px; box-shadow:0 6px 18px rgba(225,29,35,.25); transition:.15s; text-align:center; }
.btn-compose:hover{ background:var(--red-hover); transform:translateY(-1px); }
.account-chip{ display:flex; gap:10px; align-items:center; background:#FFF7F7; border:1px solid var(--border); border-radius:12px; padding:10px 12px; box-shadow:var(--shadow); }
.account-dot{ width:10px; height:10px; border-radius:50%; background:#22C55E; flex-shrink:0; }
.account-info{ min-width:0; display:flex; flex-direction:column; gap:1px; }
.account-info strong{ font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.account-info span{ font-size:11px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.folder-nav{ display:flex; flex-direction:column; gap:4px; }
.folder-item{ display:flex; align-items:center; gap:11px; padding:11px 12px; border-radius:10px; font-size:13px; font-weight:600; color:var(--text); text-align:left; }
.folder-item:hover{ background:var(--hover-bg); }
.folder-item.active{ background:var(--red); color:#fff; box-shadow:0 4px 14px rgba(225,29,35,.22); }
.folder-icon{ font-size:16px; width:22px; text-align:center; }
.folder-label{ flex:1; }
.badge{ background:#fff; color:var(--red); font-size:11px; font-weight:900; min-width:22px; height:22px; border-radius:999px; display:flex; align-items:center; justify-content:center; padding:0 6px; }
.badge.outline{ background:#FFF1F1; color:var(--red); border:1px solid #FECACA; }
.my-folders{ border:1px solid var(--border); border-radius:14px; padding:12px; box-shadow:var(--shadow); background:#fff; }
.my-folders-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.my-folders-title{ font-size:11px; font-weight:900; letter-spacing:1.2px; color:var(--red); }
.btn-mini{ background:#fff; border:1px solid var(--border); box-shadow:var(--shadow); font-size:11px; font-weight:800; color:var(--red); padding:6px 9px; border-radius:999px; }
.btn-mini:hover{ background:var(--hover-bg); }
.custom-folders-list{ display:flex; flex-direction:column; gap:3px; }
.custom-folder-item{ display:flex; align-items:center; gap:8px; padding:9px 10px; border-radius:9px; font-size:13px; font-weight:600; width:100%; text-align:left; }
.custom-folder-item:hover{ background:var(--hover-bg); }
.custom-folder-item.active{ background:var(--red); color:#fff; }
.custom-folder-name{ flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.custom-badge{ background:#FFF1F1; color:var(--red); font-size:11px; font-weight:900; min-width:22px; height:22px; border-radius:999px; display:flex; align-items:center; justify-content:center; padding:0 6px; border:1px solid #FECACA; }
.custom-folder-item.active .custom-badge{ background:#fff; }
.btn-delete-folder{ width:22px; height:22px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:11px; background:#fff; border:1px solid var(--border); color:#666; }
.custom-folder-item.active .btn-delete-folder{ background:rgba(255,255,255,.22); color:#fff; border-color:rgba(255,255,255,.4); }
.custom-empty{ font-size:12px; line-height:1.6; color:var(--muted); }
.sidebar-card{ background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:14px; box-shadow:var(--shadow); }
.sidebar-card-title{ font-size:11px; font-weight:900; letter-spacing:1px; color:var(--red); margin-bottom:6px; }
.sidebar-card-text{ font-size:12px; line-height:1.6; color:var(--muted); }
.storage-row{ display:flex; justify-content:space-between; gap:8px; font-size:12px; margin-top:10px; padding-top:10px; border-top:1px solid var(--border); }
.storage-row span{ color:var(--muted); }
.sidebar-footer{ margin-top:auto; font-size:11px; font-weight:900; letter-spacing:1px; color:var(--text); line-height:1.6; }
.sidebar-footer span{ font-weight:500; color:var(--muted); letter-spacing:.2px; }

/* ---------- MAIN ---------- */
.main{ flex:1; display:flex; flex-direction:column; min-width:0; background:#fff; }
.list-toolbar{ display:flex; align-items:center; gap:8px; padding:14px 18px; border-bottom:1px solid var(--border); background:#fff; flex-wrap:wrap; }
.check-wrap{ display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; }
.check-wrap input, .row-check input{ width:17px; height:17px; accent-color:var(--red); }
.text-btn{ font-size:13px; font-weight:700; color:var(--red); padding:8px 10px; border-radius:8px; }
.text-btn:hover{ background:var(--hover-bg); }
.toolbar-spacer{ flex:1; }
.folder-title{ font-size:15px; font-weight:900; letter-spacing:.4px; }
.email-count{ font-size:12px; color:var(--muted); background:#fff; border:1px solid var(--border); padding:5px 10px; border-radius:999px; box-shadow:var(--shadow); }
.dropdown-wrap{ position:relative; }
.dropdown{ position:absolute; top:calc(100% + 8px); left:0; min-width:230px; background:#fff; border:1px solid var(--border); border-radius:12px; box-shadow:0 14px 40px rgba(0,0,0,.14); padding:6px; z-index:60; max-height:320px; overflow-y:auto; }
.dropdown-item{ display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:10px 10px; border-radius:8px; font-size:13px; font-weight:600; }
.dropdown-item:hover{ background:var(--hover-bg); }
.dropdown-item.active{ background:#FFF1F1; color:var(--red); }
.dropdown-sep{ height:1px; background:var(--border); margin:6px 4px; }
.dropdown-label{ font-size:11px; font-weight:900; letter-spacing:1px; color:var(--muted); padding:8px 10px 4px; }
.email-list{ flex:1; overflow-y:auto; padding:8px 8px 90px; }
.email-row{ display:flex; align-items:center; gap:12px; padding:13px 14px; border-bottom:1px solid var(--border); border-radius:10px; cursor:pointer; background:#fff; transition:.12s; }
.email-row:hover{ box-shadow:var(--shadow); transform:translateY(-1px); }
.email-row.unread{ background:var(--unread-bg); }
.email-row.selected{ background:#FFF1F1; border-color:#FECACA; }
.row-check{ flex-shrink:0; }
.star-btn{ font-size:18px; line-height:1; color:#D1D5DB; padding:2px; }
.star-btn.active{ color:#F59E0B; }
.row-sender{ width:190px; flex-shrink:0; font-size:13px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.email-row.unread .row-sender, .email-row.unread .row-subject{ font-weight:900; }
.row-content{ flex:1; min-width:0; display:flex; gap:8px; align-items:baseline; overflow:hidden; }
.row-subject{ font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row-snippet{ font-size:13px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row-time{ font-size:12px; color:var(--muted); white-space:nowrap; flex-shrink:0; }
.row-folder{ font-size:10px; font-weight:800; letter-spacing:.5px; color:var(--red); background:#FFF1F1; padding:4px 7px; border-radius:999px; flex-shrink:0; }
.row-attach{ font-size:14px; flex-shrink:0; }
.empty-state{ text-align:center; padding:70px 20px; color:var(--muted); }
.empty-icon{ font-size:52px; margin-bottom:12px; }
.empty-state h3{ color:var(--text); font-size:17px; margin-bottom:6px; }
.empty-state p{ font-size:13px; line-height:1.6; }
.email-detail{ flex:1; overflow-y:auto; padding:18px; background:#fff; }
.detail-actions{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:14px; }
.detail-spacer{ flex:1; }
.btn-primary{ background:var(--red); color:#fff; font-weight:800; font-size:13px; padding:10px 18px; border-radius:999px; box-shadow:0 4px 14px rgba(225,29,35,.22); }
.btn-primary:hover{ background:var(--red-hover); }
.btn-primary:disabled{ opacity:.6; cursor:not-allowed; }
.btn-secondary{ background:#fff; border:1px solid var(--border); box-shadow:var(--shadow); font-weight:700; font-size:13px; padding:10px 14px; border-radius:999px; }
.btn-secondary:hover{ background:var(--hover-bg); }
.detail-card{ background:#fff; border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow); padding:24px; }
.detail-subject{ font-size:22px; line-height:1.3; margin-bottom:18px; }
.detail-meta{ display:flex; gap:12px; align-items:flex-start; padding-bottom:16px; border-bottom:1px solid var(--border); margin-bottom:18px; }
.detail-avatar{ width:44px; height:44px; border-radius:50%; background:var(--red); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:900; flex-shrink:0; }
.detail-sender{ flex:1; display:flex; flex-direction:column; gap:2px; font-size:13px; }
.detail-sender span{ color:var(--muted); }
.detail-date{ font-size:12px; color:var(--muted); white-space:nowrap; }
.detail-body{ font-size:14px; line-height:1.85; white-space:pre-wrap; word-break:break-word; min-height:140px; }
.detail-footer{ margin-top:22px; padding-top:14px; border-top:1px solid var(--border); display:flex; gap:10px; align-items:center; }
.pill{ font-size:11px; font-weight:800; background:#FFF1F1; color:var(--red); padding:6px 10px; border-radius:999px; }
.detail-attachments{ margin-top:22px; padding-top:16px; border-top:1px solid var(--border); }
.attachments-title{ font-size:13px; font-weight:900; margin-bottom:10px; }
.attachments-list{ display:flex; flex-direction:column; gap:10px; }
.attachment-card{ display:flex; align-items:center; gap:12px; border:1px solid var(--border); border-radius:12px; padding:12px; box-shadow:var(--shadow); background:#fff; }
.attachment-icon{ width:40px; height:40px; border-radius:10px; background:#FFF1F1; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.attachment-info{ flex:1; min-width:0; }
.attachment-name{ font-size:13px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.attachment-meta{ font-size:12px; color:var(--muted); margin-top:2px; }
.btn-download{ background:var(--red); color:#fff; font-size:12px; font-weight:800; padding:8px 14px; border-radius:999px; text-decoration:none; display:inline-flex; }
.btn-download:hover{ background:var(--red-hover); }

/* ---------- COMPOSE ---------- */
.compose{ position:fixed; right:18px; bottom:18px; width:min(580px, calc(100vw - 36px)); background:#fff; border:1px solid var(--border); border-radius:16px 16px 12px 12px; box-shadow:0 18px 50px rgba(0,0,0,.14); z-index:50; overflow:hidden; max-height:calc(100vh - 36px); display:flex; flex-direction:column; }
.compose-header{ background:var(--red); color:#fff; padding:12px 14px; display:flex; align-items:center; justify-content:space-between; font-weight:800; font-size:13px; }
.compose-header .icon-btn{ background:rgba(255,255,255,.18); color:#fff; border:none; box-shadow:none; }
.compose-body{ padding:14px; display:flex; flex-direction:column; gap:10px; overflow-y:auto; }
.compose-field{ display:flex; align-items:center; gap:10px; border-bottom:1px solid var(--border); padding-bottom:8px; font-size:13px; font-weight:700; }
.compose-field input{ flex:1; border:none; outline:none; font-size:13px; padding:6px 0; }
.compose-body textarea{ width:100%; height:180px; border:none; outline:none; resize:vertical; font-size:14px; line-height:1.7; padding:6px 0; }
.compose-note{ font-size:12px; line-height:1.5; color:#92400E; background:#FFFBEB; border:1px solid #FDE68A; padding:10px; border-radius:10px; }
.compose-footer{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.compose-status{ font-size:12px; color:var(--muted); }
.compose-minimized{ width:100%; background:var(--red); color:#fff; font-weight:800; font-size:13px; padding:13px; text-align:left; }
.attach-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.btn-attach{ background:#fff; border:1px solid var(--border); box-shadow:var(--shadow); font-size:12px; font-weight:800; color:var(--text); padding:8px 12px; border-radius:999px; }
.btn-attach:hover{ background:var(--hover-bg); }
.attach-hint{ font-size:11px; color:var(--muted); line-height:1.4; }
.attach-preview{ display:flex; flex-direction:column; gap:8px; }
.attach-item{ display:flex; align-items:center; gap:10px; background:#FFFBEB; border:1px solid #FDE68A; border-radius:10px; padding:8px 10px; font-size:12px; }
.attach-item-name{ flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:700; }
.attach-item-meta{ color:var(--muted); }
.btn-remove-attach{ width:24px; height:24px; border-radius:50%; background:#fff; border:1px solid var(--border); font-size:11px; }
.signature-preview{ border-top:1px dashed #FECACA; padding-top:10px; margin-top:2px; }
.signature-label{ font-size:11px; font-weight:900; letter-spacing:1px; color:var(--red); margin-bottom:6px; }
.signature-text{ font-size:12px; line-height:1.7; color:var(--muted); white-space:pre-wrap; background:#FFF7F7; border:1px solid var(--border); border-radius:10px; padding:10px; }

/* ---------- MODAL + TABS ---------- */
.modal{ position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center; padding:16px; }
.modal-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.38); }
.modal-card{ position:relative; width:min(560px, 100%); background:#fff; border-radius:16px; box-shadow:0 20px 60px rgba(0,0,0,.22); overflow:hidden; max-height:calc(100vh - 32px); display:flex; flex-direction:column; }
.modal-card.wide{ width:min(720px, 100%); }
.modal-card.small{ width:min(440px, 100%); }
.modal-head{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; padding:18px 18px 0; }
.modal-head h3{ font-size:16px; line-height:1.3; }
.modal-head p{ font-size:12px; color:var(--muted); margin-top:4px; line-height:1.6; }
.modal-body{ padding:18px; display:flex; flex-direction:column; gap:10px; overflow-y:auto; }
.modal-body.tab-panel.hidden{ display:none !important; }
.modal-foot{ display:flex; justify-content:flex-end; gap:10px; padding:0 18px 18px; }
.modal-foot.inline{ padding:6px 0 0; justify-content:flex-end; }
.tabs{ display:flex; gap:8px; padding:14px 18px 0; flex-wrap:wrap; }
.tab-btn{ flex:1; min-width:130px; padding:11px 10px; border-radius:999px; border:1px solid var(--border); box-shadow:var(--shadow); font-size:12px; font-weight:800; background:#fff; }
.tab-btn.active{ background:var(--red); color:#fff; border-color:var(--red); }
.field-label{ font-size:12px; font-weight:800; letter-spacing:.3px; }
.field-input, .field-textarea{ width:100%; border:1px solid var(--border); border-radius:10px; padding:11px 12px; font-size:13px; outline:none; box-shadow:var(--shadow); background:#fff; }
.field-input:focus, .field-textarea:focus{ border-color:#FECACA; box-shadow:0 4px 20px rgba(225,29,35,.10); }
.field-textarea{ resize:vertical; line-height:1.7; }
.field-help{ font-size:12px; line-height:1.6; color:var(--muted); }
.readonly-email{ font-size:13px; font-weight:700; background:#FFF7F7; border:1px solid var(--border); border-radius:10px; padding:11px 12px; box-shadow:var(--shadow); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.server-info-box{ background:#FFF7F7; border:1px solid var(--border); border-radius:12px; padding:12px; box-shadow:var(--shadow); }
.server-info-title{ font-size:12px; font-weight:900; color:var(--red); margin-bottom:6px; }
.server-info-text{ font-size:12px; line-height:1.7; color:var(--text); white-space:pre-wrap; }
.server-info-row{ display:flex; justify-content:space-between; gap:10px; font-size:12px; margin-top:8px; padding-top:8px; border-top:1px solid var(--border); }
.server-info-row span{ color:var(--muted); }
.server-status{ font-size:12px; line-height:1.6; border-radius:10px; padding:10px 12px; }
.server-status.success{ background:#F0FDF4; color:#166534; border:1px solid #BBF7D0; }
.server-status.error{ background:#FEF2F2; color:#991B1B; border:1px solid #FECACA; }
.server-status.info{ background:#FFFBEB; color:#92400E; border:1px solid #FDE68A; }

/* ---------- BACKUP & MIGRASI ---------- */
.import-drop{ border:2px dashed #FECACA; border-radius:14px; padding:18px; text-align:center; background:#FFF7F7; display:flex; flex-direction:column; gap:8px; align-items:center; }
.import-drop.drag-over{ background:#FFF1F1; border-color:var(--red); transform:scale(1.01); }
.drop-icon{ font-size:30px; }
.progress-wrap{ display:flex; align-items:center; gap:10px; }
.progress-bar{ flex:1; height:10px; background:#F1F1F1; border-radius:999px; overflow:hidden; }
.progress-fill{ height:100%; background:var(--red); border-radius:999px; transition:width .25s; }
.import-log{ max-height:150px; overflow-y:auto; background:#fff; border:1px solid var(--border); border-radius:10px; padding:10px; font-size:12px; line-height:1.7; box-shadow:var(--shadow); }
.import-log .ok{ color:#166534; }
.import-log .skip{ color:#92400E; }
.import-log .err{ color:#991B1B; }
.export-btn-row{ display:flex; gap:10px; flex-wrap:wrap; }
.btn-export{ flex:1; min-width:160px; background:#fff; border:1px solid var(--border); box-shadow:var(--shadow); font-size:13px; font-weight:800; padding:12px 10px; border-radius:12px; text-align:center; }
.btn-export:hover{ background:var(--hover-bg); }
.btn-export.primary{ background:var(--red); color:#fff; border-color:var(--red); }
.btn-export.primary:hover{ background:var(--red-hover); }
.toast{ position:fixed; left:50%; bottom:26px; transform:translateX(-50%); background:#111827; color:#fff; padding:12px 18px; border-radius:999px; font-size:13px; font-weight:600; box-shadow:0 10px 30px rgba(0,0,0,.2); z-index:200; max-width:calc(100vw - 32px); text-align:center; }
@media (max-width: 900px){ body{ overflow:auto; } .topbar{ flex-wrap:wrap; height:auto; padding:12px; gap:10px; } .topbar-left{ min-width:0; } .topbar-center{ order:3; width:100%; } .layout{ flex-direction:column; height:auto; } .sidebar{ width:100%; border-right:none; border-bottom:1px solid var(--border); } .sidebar.collapsed{ width:100%; } .main{ min-height:60vh; } .row-sender{ width:120px; } .row-folder{ display:none; } .email-list{ padding-bottom:140px; } #syncLabel{ display:none; } .compose{ right:10px; left:10px; width:auto; bottom:10px; } .dropdown{ left:auto; right:0; } .grid-3{ grid-template-columns:1fr; } .export-btn-row{ flex-direction:column; } .tab-btn{ min-width:0; flex:1 1 30%; } }
@media (max-width: 520px){ .logo{ font-size:18px; } .row-snippet{ display:none; } .detail-actions{ gap:6px; } .auth-card{ padding:24px 18px; } }
