/* Self-contained stylesheet for platform-admin/ -- this is a separate
   vhost from cake-admin, so it can't reuse cake-admin's /css/ files
   (those paths resolve against cake-admin's own document root). Kept
   deliberately small since this module is just a login page + a
   couple of list/action screens for the platform operator. */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f4f5f7;
    color: #1a1a2e;
}

.top-bar {
    background: #14213d;
    padding: 14px 24px;
}

.top-bar-brand {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.top-bar-user {
    color: #cbd3e6;
    float: right;
    font-size: 14px;
}

.top-bar-user a {
    color: #fca311;
    margin-left: 12px;
}

/* ---------- Login ---------- */
.login-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
}

.admin-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 36px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    width: 360px;
}

.admin-card h1 { margin: 0 0 4px; font-size: 20px; }
.admin-card h2 { margin: 0 0 20px; font-size: 14px; font-weight: 500; color: #666; }

.admin-card label { display: block; font-weight: 600; margin: 12px 0 6px; font-size: 13px; }
.admin-card input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid #e5e5e5;
    background: #f7f7f7;
    font-size: 14px;
}
.admin-card input:focus { outline: none; border-color: #14213d; background: #fff; }

.btn-primary {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #14213d;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.btn-primary:hover { background: #1f2f5c; }

.btn-secondary {
    padding: 8px 14px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    color: #1a1a2e;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.error-message {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fdecea;
    color: #b3261e;
    font-size: 13px;
}

.success-message {
    margin: 16px 24px 0;
    padding: 10px 14px;
    border-radius: 8px;
    background: #e6f4ea;
    color: #1e7a34;
    font-size: 13px;
}

/* ---------- Accounts list ---------- */
.page-container { max-width: 1100px; margin: 24px auto; padding: 0 20px; }

.page-container h1 { font-size: 20px; margin-bottom: 16px; }

table.accounts-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

table.accounts-table th, table.accounts-table td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

table.accounts-table th {
    background: #f7f7f9;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.status-trial     { background: #fff4d6; color: #8a6100; }
.status-active    { background: #e6f4ea; color: #1e7a34; }
.status-past_due  { background: #fdecea; color: #b3261e; }
.status-suspended { background: #eee; color: #666; }
.status-cancelled { background: #eee; color: #999; }

.row-actions button, .row-actions a {
    margin-right: 6px;
    font-size: 12px;
    padding: 6px 10px;
}

.danger-action { border-color: #f2b8b5 !important; color: #b3261e !important; }
