﻿/* pswms - minimal, clean UI */

:root {
    --bg: #f6f8fb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #d7dde6;
    --brand: #2563eb; /* blue */
    --accent: #10b981; /* green */
    --warn: #f59e0b; /* amber */
    --danger: #ef4444; /* red */

    --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --radius: 10px;
}

body {
    background: radial-gradient(1200px 600px at 50% -200px, rgba(37,99,235,0.18), transparent 60%), radial-gradient(900px 500px at 90% 0px, rgba(16,185,129,0.12), transparent 55%), var(--bg);
    color: var(--text);
}

.ps-container {
    max-width: 980px;
    margin: 24px auto;
    padding: 16px;
}

.ps-center {
    min-height: calc(100vh - 80px);
    display: grid;
    place-items: center;
    padding: 24px 0;
}

.ps-card {
    background: var(--card);
    border: 1px solid rgba(215,221,230,0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.ps-card-header {
    padding: 18px 20px 12px;
    border-bottom: 1px solid rgba(215,221,230,0.7);
    background: linear-gradient(90deg, rgba(37,99,235,0.12), rgba(16,185,129,0.10));
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.ps-title {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0.02em;
}

.ps-sub {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.ps-card-body {
    padding: 18px 20px 20px;
}

.ps-form-grid {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 10px 14px;
    align-items: center;
}

.ps-label {
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
}

.ps-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(215,221,230,0.95);
    border-radius: 8px;
    background: #fff;
    outline: none;
}

    .ps-input:focus {
        border-color: rgba(37,99,235,0.75);
        box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
    }

.ps-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 9px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    font-weight: 700;
    font-size: 14px;
}

.ps-btn-primary {
    background: var(--brand);
    color: #fff;
}

    .ps-btn-primary:hover {
        filter: brightness(0.95);
    }

.ps-btn-ghost {
    background: #fff;
    border-color: rgba(215,221,230,0.95);
    color: var(--text);
}

    .ps-btn-ghost:hover {
        background: rgba(246,248,251,0.8);
    }

.ps-hint {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.ps-divider {
    height: 1px;
    background: rgba(215,221,230,0.7);
    margin: 14px 0;
}

.ps-smallcard {
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(215,221,230,0.9);
    background: rgba(255,255,255,0.85);
}

.ps-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ps-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

    .ps-link:hover {
        text-decoration: underline;
    }

/* Menu */
.ps-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

    .ps-topbar h1 {
        margin: 0;
        font-size: 22px;
    }

.ps-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
    border: 1px solid rgba(215,221,230,0.95);
    background: rgba(255,255,255,0.75);
}

.ps-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 860px) {
    .ps-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .ps-menu-grid {
        grid-template-columns: 1fr;
    }
}

.ps-tile {
    display: block;
    padding: 14px 14px;
    border-radius: 12px;
    border: 1px solid rgba(215,221,230,0.95);
    background: rgba(255,255,255,0.90);
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.04s ease, filter 0.12s ease, background 0.12s ease;
}

    .ps-tile:hover {
        filter: brightness(0.98);
        background: #fff;
    }

    .ps-tile:active {
        transform: translateY(1px);
    }

.ps-tile-title {
    font-weight: 800;
    margin: 0;
    font-size: 15px;
}

.ps-tile-sub {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--muted);
}

/* Accent border by category */
.ps-tile-report {
    border-left: 5px solid rgba(37,99,235,0.75);
}

.ps-tile-request {
    border-left: 5px solid rgba(16,185,129,0.75);
}

.ps-tile-master {
    border-left: 5px solid rgba(245,158,11,0.75);
}

.ps-tile-admin {
    border-left: 5px solid rgba(239,68,68,0.70);
}

.ps-footer-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}
