/* Widget Shop – simple clean starter styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f4f6f9;
    color: #222;
    line-height: 1.5;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e4ea;
}

.site-header h1 {
    margin: 0;
    font-size: 1.6rem;
    color: #1a3a6b;
}

.site-header nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: #1a3a6b;
    font-weight: 500;
}

.site-header nav a:hover {
    text-decoration: underline;
}

.site-header .user {
    margin-right: 0.5rem;
    color: #555;
    font-size: 0.95rem;
}

.site-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e4ea;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* Cards / forms */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    max-width: 420px;
    margin: 0 auto;
}

.card h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    text-align: center;
    color: #1a3a6b;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid #c5cdd8;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: #1a3a6b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn:hover {
    background: #14305a;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.msg {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.msg.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.msg.success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.msg.info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* Product grid */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.product-card .swatch {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px solid #e0e4ea;
}

.product-card h3 {
    margin: 0 0 0.4rem;
    color: #1a3a6b;
}

.product-card .price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #15803d;
}

.product-card p {
    margin: 0.5rem 0 0;
    color: #555;
    font-size: 0.95rem;
}

/* Delay notice on login2 */
.delay-notice {
    text-align: center;
    font-size: 1.1rem;
    margin: 1.5rem 0;
    color: #b45309;
}

.hidden {
    display: none;
}

/* Admin tables */
.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 0.55rem 0.7rem;
    text-align: left;
    border-bottom: 1px solid #e5e9f0;
    vertical-align: top;
}

.data-table th {
    background: #f0f3f8;
    font-weight: 600;
    color: #1a3a6b;
    white-space: nowrap;
}

.data-table tr.row-fail {
    background: #fff8f8;
}

.data-table tr.row-ok {
    background: #f6fff8;
}

.data-table tr.row-warn {
    background: #fff7ed;
}

.data-table code {
    font-size: 0.85rem;
    background: #f1f5f9;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-ok {
    background: #dcfce7;
    color: #15803d;
}

.badge-fail {
    background: #fee2e2;
    color: #b91c1c;
}

/* Small action buttons (admin) */
.btn-sm {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #c5cdd8;
    border-radius: 4px;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    margin: 0 0.15rem;
}

.btn-sm:hover {
    background: #e2e8f0;
}

.btn-reset {
    border-color: #86efac;
    background: #f0fdf4;
    color: #15803d;
}

.btn-reset:hover {
    background: #dcfce7;
}

.btn-danger {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    background: #fef2f2;
    color: #b91c1c;
    cursor: pointer;
}

.btn-danger:hover {
    background: #fee2e2;
}
