@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --wphm-bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --wphm-glass-bg: rgba(255, 255, 255, 0.05);
    --wphm-glass-border: rgba(255, 255, 255, 0.1);
    --wphm-text: #f8fafc;
    --wphm-text-muted: #94a3b8;
    --wphm-primary: #38bdf8;
    /* Sky blue */
    --wphm-primary-glow: rgba(56, 189, 248, 0.3);
    --wphm-danger: #ef4444;
    --wphm-warning: #f59e0b;
    --wphm-success: #22c55e;
}

#wphm-app {
    font-family: 'Outfit', sans-serif;
    background: var(--wphm-bg-gradient);
    color: var(--wphm-text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 80px;
    /* Space for bottom nav if needed */
}

/* Glassmorphism Header */
.wphm-header {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--wphm-glass-border);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.wphm-header h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wphm-icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--wphm-glass-border);
    color: var(--wphm-text);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wphm-icon-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.2);
}

.wphm-content {
    padding: 20px;
}

/* Glass Cards */
.wphm-site-card {
    background: var(--wphm-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--wphm-glass-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wphm-site-card:active {
    transform: scale(0.98);
}

.wphm-site-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.wphm-site-url {
    font-size: 0.85rem;
    color: var(--wphm-text-muted);
}

.wphm-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.status-ok {
    background-color: var(--wphm-success);
    color: var(--wphm-success);
}

.status-warning {
    background-color: var(--wphm-warning);
    color: var(--wphm-warning);
}

.status-error {
    background-color: var(--wphm-danger);
    color: var(--wphm-danger);
}

.status-unknown {
    background-color: var(--wphm-text-muted);
    color: var(--wphm-text-muted);
}

/* Modal Glass */
.wphm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 1;
    transition: opacity 0.3s;
}

.wphm-modal.hidden,
.wphm-view.hidden {
    display: none;
    opacity: 0;
}

.wphm-modal-content {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--wphm-glass-border);
    padding: 25px;
    border-radius: 20px;
    width: 85%;
    max-width: 350px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.wphm-modal-content h2 {
    margin-top: 0;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.wphm-form-group {
    margin-bottom: 15px;
}

.wphm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--wphm-text-muted);
    font-weight: 500;
}

.wphm-form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--wphm-glass-border);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
}

.wphm-form-group input:focus {
    border-color: var(--wphm-primary);
    box-shadow: 0 0 0 2px var(--wphm-primary-glow);
}

.wphm-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.wphm-btn-primary {
    background: var(--wphm-primary);
    color: #0f172a;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    flex: 1;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.wphm-btn-secondary {
    background: transparent;
    color: var(--wphm-text);
    border: 1px solid var(--wphm-glass-border);
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    flex: 1;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

/* Detail View */
.wphm-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--wphm-bg-gradient);
    z-index: 150;
    overflow-y: auto;
}

.wphm-detail-section {
    background: var(--wphm-glass-bg);
    border: 1px solid var(--wphm-glass-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.wphm-detail-section h2 {
    font-size: 1.1rem;
    margin-top: 0;
    border-bottom: 1px solid var(--wphm-glass-border);
    padding-bottom: 12px;
    margin-bottom: 12px;
    color: var(--wphm-primary);
}

.wphm-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.wphm-stat-row:last-child {
    border-bottom: none;
}

.wphm-stat-label {
    color: var(--wphm-text-muted);
}

.wphm-stat-value {
    font-weight: 600;
}