/* assets/guardlo-admin.css */
#wpcontent { padding-left: 0; }
.guardlo-saas-wrapper { background: #f1f3f6; min-height: 100vh; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; margin-top: -10px; margin-left: -20px; }
.guardlo-header { background: #2B67E7; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; color: #fff; }
.guardlo-header img { height: 32px; width: auto; display: block; }
.guardlo-header-links { display: flex; gap: 20px; align-items: center; }
.guardlo-header-links a { color: #fff; text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 5px; opacity: 0.9; transition: all 0.2s; }
.guardlo-header-links a:hover { opacity: 1; }

.guardlo-tabs-bar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 0 30px; display: flex; gap: 20px; overflow-x: auto; }
.guardlo-tab-btn { background: none; border: none; padding: 18px 0; font-size: 14px; font-weight: 600; color: #64748b; cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.2s; white-space: nowrap; }
.guardlo-tab-btn:hover { color: #0f172a; }
.guardlo-tab-btn.active { color: #2B67E7; border-bottom-color: #2B67E7; }

.guardlo-content-area { padding: 30px; max-width: 1200px; margin: 0 auto; }
.guardlo-tab-content { display: none; }
.guardlo-tab-content.active { display: block; animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.guardlo-overview-title { font-size: 16px; font-weight: bold; margin: 0 0 15px 0; color: #0f172a; }
.guardlo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }
.guardlo-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 25px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.guardlo-card-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.guardlo-card-title { font-size: 13px; color: #64748b; margin-bottom: 8px; }
.guardlo-card-status { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.status-active { color: #00a32a; }
.status-locked { color: #d63638; }

.guardlo-settings-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 30px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); margin-bottom: 20px; }
.guardlo-settings-panel h2 { margin-top: 0; font-size: 18px; color: #0f172a; margin-bottom: 10px; }
.guardlo-settings-panel p { color: #64748b; font-size: 14px; margin-bottom: 20px; }
.guardlo-input { border: 1px solid #cbd5e1; border-radius: 4px; padding: 8px 12px; font-size: 14px; width: 100%; max-width: 300px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.05); }
.guardlo-btn-secondary { background: #fff; border: 1px solid #cbd5e1; color: #0f172a; padding: 10px 20px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s; text-decoration: none; display: inline-block; box-sizing: border-box; }
.guardlo-btn-secondary:hover { background: #f8fafc; }
.guardlo-btn-primary { background: #2B67E7; color: #fff; border: none; padding: 10px 20px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; box-sizing: border-box; transition: background 0.2s; }
.guardlo-btn-primary:hover { background: #1e4bb8; color:#fff; }
.guardlo-btn-primary:disabled { background: #94a3b8; cursor: not-allowed; }
.guardlo-alert-blue { background: #f0f6fc; border-left: 4px solid #2B67E7; padding: 15px; border-radius: 4px; margin-bottom: 20px; }
.guardlo-alert-yellow { background: #fff8e6; border-left: 4px solid #f0b840; padding: 15px; border-radius: 4px; margin-bottom: 20px; }

.guardlo-upsell-box { text-align:center; padding: 50px 20px; background:#fff; border:1px solid #e2e8f0; border-radius:8px; border-top:4px solid #2B67E7; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }

/* Global Modals */
.guardlo-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.7); z-index: 99999; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.guardlo-modal-content { background: #fff; padding: 30px; border-radius: 12px; max-width: 450px; width: 90%; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3); position: relative; animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.guardlo-modal-close { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #94a3b8; line-height: 1; transition: color 0.2s; }
.guardlo-modal-close:hover { color: #0f172a; }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* Pop-Up UI Mockup Styles */
.g-ui-mockup { background: #f8fafc; border-bottom: 1px solid #e2e8f0; border-radius: 12px 12px 0 0; overflow: hidden; position: relative; }
.g-ui-header { background: #f1f5f9; border-bottom: 1px solid #e2e8f0; padding: 12px 15px; display: flex; gap: 6px; }
.g-ui-dot { width: 11px; height: 11px; border-radius: 50%; }
.g-ui-body { padding: 25px 20px; background: #fff; }
.g-ui-title { font-size: 17px; font-weight: 800; margin: 0 0 15px 0; display: flex; align-items: center; gap: 8px; color: #0f172a; }

.g-ui-prog-bg { width: 100%; background: #1e293b; border-radius: 6px; height: 16px; overflow: hidden; position: relative; border: 2px solid #334155; margin-bottom: 8px;}
.g-ui-prog-fill { height: 100%; background: #00a32a; width: 0%; border-radius: 4px; animation: gScanAnim 4s ease-in-out infinite alternate; }
@keyframes gScanAnim { 0% { width: 15%; background: #2B67E7; } 50% { width: 65%; background: #f59e0b; } 100% { width: 95%; background: #10b981; } }

.g-ui-alert { background: #fef2f2; border-left: 4px solid #d63638; padding: 15px; border-radius: 4px; margin-top: 15px; box-shadow: 0 4px 6px -1px rgba(214, 54, 56, 0.05);}

.g-modal-features { padding: 25px; background: #fff; border-radius: 0 0 12px 12px; }
.g-modal-features ul { list-style: none; padding: 0; margin: 0 0 20px 0; }
.g-modal-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #334155; margin-bottom: 12px; font-weight: 500; }
.g-feat-icon { color: #10b981; flex-shrink: 0; }

/* --- Server Infrastructure Grid --- */
.g-infra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 25px 0 35px 0; }
.g-infra-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; display: flex; align-items: center; gap: 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.g-infra-icon-wrap { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.g-infra-box.active .g-infra-icon-wrap { background: #dcfce7; color: #16a34a; }
.g-infra-box.error .g-infra-icon-wrap { background: #fee2e2; color: #dc2626; }
.g-infra-details h4 { margin: 0 0 5px 0; font-size: 15px; color: #0f172a; }
.g-infra-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 12px; }
.g-infra-badge.active { background: #16a34a; color: #fff; }
.g-infra-badge.error { background: #dc2626; color: #fff; }
.g-infra-box.warning .g-infra-icon-wrap { background: #f1f5f9; color: #64748b; }
.g-infra-badge.warning { background: #64748b; color: #fff; }

/* --- Storage Bar (Basic Scan) --- */
.g-coverage-wrap { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 25px; margin: 30px 0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); }
.g-cov-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 15px; }
.g-cov-title { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0; }
.g-cov-total { font-size: 13px; color: #64748b; font-weight: 600; }
.g-cov-bar-container { height: 28px; background: #e2e8f0; border-radius: 14px; display: flex; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0,0,0,0.06); }
.g-cov-core { width: 5%; background: #10b981; display: flex; align-items: center; justify-content: center; position: relative; }
.g-cov-locked { width: 95%; background: repeating-linear-gradient(45deg, #cbd5e1, #cbd5e1 10px, #94a3b8 10px, #94a3b8 20px); opacity: 0.3; display: flex; align-items: center; justify-content: center; }
.g-cov-legends { display: flex; gap: 20px; margin-top: 15px; font-size: 13px; font-weight: 500; color: #475569; flex-wrap: wrap; }
.g-cov-leg-item { display: flex; align-items: center; gap: 6px; }
.g-dot-green { width: 10px; height: 10px; border-radius: 50%; background: #10b981; }
.g-dot-grey { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; }

/* --- Custom Toggle Switch --- */
.g-freq-toggle-wrapper { display: flex; align-items: center; gap: 12px; margin-left: 8px;}
.g-freq-label { font-size: 13px; font-weight: 600; color: #94a3b8; transition: color 0.2s; cursor: pointer; user-select: none; }
.g-freq-label.active { color: #0f172a; font-weight: 800; }
.g-toggle-switch { position: relative !important; width: 46px !important; min-width: 46px !important; height: 26px !important; -webkit-appearance: none !important; appearance: none !important; background: #cbd5e1 !important; border-radius: 13px !important; border: none !important; outline: none !important; cursor: pointer; transition: background 0.3s; margin: 0 !important; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1) !important; flex-shrink: 0; }
.g-toggle-switch::after { content: '' !important; position: absolute !important; top: 2px !important; left: 2px !important; width: 22px !important; height: 22px !important; background: #fff !important; border-radius: 50% !important; transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1) !important; box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important; }
.g-toggle-switch:checked { background: #10b981 !important; }
.g-toggle-switch:checked::after { transform: translateX(20px) !important; }
.g-toggle-switch::before, .g-toggle-switch:checked::before { display: none !important; content: none !important; }

/* --- Animations Elementor Widget Card --- */
.g-mini-drag { animation: gMiniDrag 4s infinite cubic-bezier(0.4, 0, 0.2, 1); }
.g-mini-drop { animation: gMiniDrop 4s infinite; }
.g-mini-badge { animation: gMiniShow 4s infinite; }
@keyframes gMiniDrag { 0%, 15% { transform: translate(0, 0); opacity: 1; } 30% { transform: translate(55px, 0) scale(1.05); opacity: 1; } 35%, 85% { transform: translate(55px, 0) scale(0); opacity: 0; } 100% { transform: translate(0, 0); opacity: 1; } }
@keyframes gMiniDrop { 0%, 30% { border-color: #cbd5e1; background: transparent; } 35%, 85% { border-color: #10b981; background: #f0fdf4; } 100% { border-color: #cbd5e1; background: transparent; } }
@keyframes gMiniShow { 0%, 32% { opacity: 0; transform: scale(0.6); } 36%, 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.6); } }

/* --- WP Admin Specific Overrides --- */
.notice, .update-nag, .updated, .error { display: none !important; }
#setting-error-guardlo_messages, .guardlo-alert-blue, .guardlo-alert-yellow { display: block !important; }

/* --- Language Grid (New) --- */
.g-lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-height: 400px; overflow-y: auto; padding-right: 5px; }
@media (max-width: 600px) { .g-lang-grid { grid-template-columns: repeat(2, 1fr); } }
.g-lang-btn { display: flex; align-items: center; gap: 10px; background: #f8fafc; border: 1px solid #e2e8f0; padding: 12px 15px; border-radius: 8px; cursor: pointer; transition: all 0.2s; text-align: left; width: 100%; font-family: inherit; }
.g-lang-btn:hover { background: #f1f5f9; border-color: #cbd5e1; transform: translateY(-1px); }
.g-lang-btn.active { background: #e0f2fe; border-color: #38bdf8; box-shadow: 0 0 0 1px #38bdf8; }
.g-lang-flag { font-size: 20px; line-height: 1; }
.g-lang-name { font-size: 14px; color: #334155; font-weight: 600; }