/** Add css rules here for your application. */

#main {
  width: 600px;
  margin: 0 auto;
}

/** --- Welcome / login page --- */
.login-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1e2f 0%, #3a2d44 60%, #d51007 220%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e1e2f;
}
.login-card {
  background: #fff;
  width: 360px;
  max-width: calc(100vw - 40px);
  padding: 44px 36px 32px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}
.login-card .brand {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.login-card .brand .filter {
  color: #d51007;
}
.login-card .tagline {
  color: #6b6b7b;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 30px;
}
.btn-lastfm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 16px;
  background: #d51007;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
.btn-lastfm:hover {
  background: #b80d06;
  box-shadow: 0 6px 18px rgba(213, 16, 7, 0.4);
}
.btn-lastfm:active {
  transform: translateY(1px);
}
.btn-lastfm svg {
  flex: none;
}
.login-footer {
  margin: 24px 0 0;
  font-size: 12px;
  color: #9a9aac;
  line-height: 1.5;
}

/** --- App pages (dashboard, filtered list, admin) ---
 *  Same visual language as the login page: dark gradient backdrop, a white
 *  rounded card, the ScrobbleFilter wordmark, and red accents. Scoped under
 *  .app-page so none of this touches the login page (.login-page). */
.app-page {
  margin: 0;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 32px 16px;
  background: linear-gradient(135deg, #1e1e2f 0%, #3a2d44 60%, #d51007 220%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #2b2b3a;
}
.app-header {
  max-width: 640px;
  margin: 0 auto 18px;
  text-align: center;
}
.app-header .brand {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: #fff;
}
.app-header .brand .filter {
  color: #ff5a4d;
}
.app-page #main {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  box-sizing: border-box;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.30);
  padding: 26px 30px;
  line-height: 1.55;
}
.app-page #main h1 {
  font-size: 20px;
  font-weight: 700;
  color: #1e1e2f;
  text-align: left;
  margin: 0 0 16px;
}
.app-page #main h2 {
  font-size: 15px;
  font-weight: 700;
  color: #1e1e2f;
  margin: 22px 0 10px;
}
.app-page #main p {
  margin: 12px 0;
}
.app-page a {
  color: #c20d04;
  text-decoration: none;
  font-weight: 600;
}
.app-page a:hover {
  text-decoration: underline;
}
.app-page #main form {
  margin: 12px 0;
}
.app-page input[type=text] {
  padding: 8px 11px;
  border: 1px solid #d2d2de;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.app-page input[type=text]:focus {
  outline: none;
  border-color: #d51007;
  box-shadow: 0 0 0 3px rgba(213, 16, 7, 0.15);
}
.app-page input[type=submit],
.app-page button {
  display: inline-block;
  padding: 8px 16px;
  background: #d51007;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}
.app-page input[type=submit]:hover,
.app-page button:hover {
  background: #b80d06;
}
/* A horizontal label + field + action row (e.g. add-an-artist). */
.app-page .field-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.app-page .field-row label {
  font-weight: 600;
  color: #4a4a5a;
}
/* Data tables (filtered artists, top artists). */
.app-page table {
  border-collapse: collapse;
  width: 100%;
  margin: 14px 0;
}
.app-page th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a8a9a;
  border-bottom: 2px solid #ececf2;
  padding: 8px 10px;
}
.app-page td {
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f5;
  vertical-align: middle;
}
/* Compact submit buttons inside table rows (e.g. "filter this artist"). */
.app-page td input[type=submit] {
  padding: 5px 12px;
  font-size: 13px;
}
.app-page .error {
  color: #d8000c;
  background: #fff0f0;
  border: 1px solid #ffd2d2;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 14px 0;
  font-weight: 500;
}
/* A linked account whose session has expired and needs reconnecting. */
.app-page .needs-reconnect {
  color: #8a5a00;
  background: #fff8e6;
  border: 1px solid #ffe6a8;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
  font-weight: 500;
}
.app-page ul {
  margin: 8px 0;
  padding-left: 20px;
}

/** Example rules used by the template application (remove for your app) */
h1 {
  font-size: 2em;
  font-weight: bold;
  color: #777777;
  margin: 40px 0px 70px;
  text-align: center;
}

.sendButton {
  display: block;
  font-size: 16pt;
}

/** Most GWT widgets already have a style name defined */
.gwt-DialogBox {
  width: 400px;
}

.dialogVPanel {
  margin: 5px;
}

.serverResponseLabelError {
  color: red;
}

/** Set ids using widget.getElement().setId("idOfElement") */
#closeButton {
  margin: 15px 6px 6px;
}

/** Toggle switch for the weekly-post settings (styled checkbox). */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  vertical-align: middle;
}
.switch input {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1; /* sit above the slider so the whole switch is clickable */
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .2s;
  border-radius: 24px;
}
.switch .slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .2s;
  border-radius: 50%;
}
.switch input:checked + .slider {
  background-color: #4caf50;
}
.switch input:checked + .slider:before {
  transform: translateX(22px);
}
.switch input:disabled {
  cursor: not-allowed;
}
.switch input:disabled + .slider {
  opacity: 0.4;
  cursor: not-allowed;
}
.toggle-row.disabled {
  color: #999;
}
.toggle-row {
  margin: 8px 0;
}
.toggle-row label.switch {
  margin-right: 8px;
}
