* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f4f6;
}

.dash-pump-bg {
  fill: #1a73e8;
}

.dash-main {
    width: 100%;
    height: auto;
    display: block;
    text-align: center;
}

.dash-main svg {
  width: 95vw;
  height: auto;
  display: block;
}

.account-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.account-settings {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.account-settings h1 {
    margin-top: 0;
    text-align: center;
}

.account-settings label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.account-settings input {
    width: 100%;
    padding: 11px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.account-settings button {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: 0;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.login-box button:hover {
    background: #1d4ed8;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

.login-box h1 {
    margin-top: 0;
    text-align: center;
}

.login-box label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.login-box input {
    width: 100%;
    padding: 11px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: 0;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.login-box button:hover {
    background: #1d4ed8;
}

.login-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    margin-bottom: 18px;
    border-radius: 4px;
}

.auth-header {
    width: 100%;
    background: #1f2937;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 20px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.auth-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-username {
    font-weight: bold;
}

.auth-fullname {
    color: #d1d5db;
}

.auth-sites {
    color: #d1d5db;
}

.auth-logout {
    color: #fff;
    background: #dc2626;
    padding: 7px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.auth-logout:hover {
    background: #b91c1c;
}

.auth-account {
    color: #000;
    background: #26dcdc;
    padding: 7px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.auth-account:hover {
    background: #1cb9b9;
}

.admin-settings {
    max-width: 600px;
}

/* Wider boxes for the account and site setup pages */
.wide-page .account-settings {
    max-width: 1000px;
}

.account-settings select {
    width: 100%;
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}

.admin-table th,
.admin-table td {
    padding: 4px;
    text-align: left;
}

.admin-table input {
    margin-bottom: 0;
}

.account-settings button:hover {
    background: #1d4ed8;
}

.admin-ok {
    background: #dcfce7;
    color: #166534;
    padding: 10px;
    margin-bottom: 18px;
    border-radius: 4px;
}

.admin-container {
    flex-direction: column;
    gap: 20px;
}

.admin-device h3 {
    margin: 12px 0 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
}

.admin-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.admin-fields label {
    font-weight: normal;
}

.admin-fields input {
    margin-bottom: 0;
}

.admin-note {
    background: #fef9c3;
    color: #854d0e;
    padding: 10px;
    margin-bottom: 18px;
    border-radius: 4px;
}

.account-settings input:disabled,
.account-settings select:disabled {
    background: #f3f4f6;
    color: #374151;
}

.admin-action {
    display: inline-block;
    margin-right: 4px;
}

.account-settings .admin-action button {
    width: auto;
    padding: 6px 10px;
    font-size: 14px;
}

.account-settings .admin-action button.admin-delete {
    background: #dc2626;
}

.account-settings .admin-action button.admin-delete:hover {
    background: #b91c1c;
}
