.spotai-dashboard {
    max-width: 560px;
    color: inherit;
}

/* Notices */
.spotai-notice {
    padding: .75em 1em;
    border-radius: 6px;
    margin-bottom: 1.25em;
    font-size: .95em;
}
.spotai-notice--success { background: rgba(29,185,84,.15); color: #1db954; border: 1px solid rgba(29,185,84,.4); }
.spotai-notice--error   { background: rgba(220,53,69,.15); color: #ff6b7a; border: 1px solid rgba(220,53,69,.4); }

/* Form */
.spotai-form {
    display: block;
    width: 100%;
    margin-bottom: 1.5em;
}

.spotai-field {
    display: flex;
    flex-direction: column;
    gap: .4em;
    margin-bottom: 1.25em;
}

.spotai-field label {
    font-size: .85em;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .7;
}

.spotai-field input[type="text"] {
    width: 100%;
    max-width: 400px;
    padding: .6em .85em;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    color: #fff;
    font-size: .95em;
    box-sizing: border-box;
    transition: border-color .15s;
}

.spotai-select {
    width: 100%;
    max-width: 400px;
    padding: .6em .85em;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    color: #fff;
    font-size: .95em;
    box-sizing: border-box;
    transition: border-color .15s;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff80' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85em center;
    padding-right: 2.5em;
}

.spotai-select:focus {
    outline: none;
    border-color: #1db954;
    background-color: rgba(255,255,255,.1);
}

.spotai-select option {
    background: #1a1a2e;
    color: #fff;
}

.spotai-status {
    margin: .25em 0;
    opacity: .8;
}

.spotai-status__check {
    color: #1db954;
    font-weight: 700;
}

.spotai-field input[type="text"]:focus {
    outline: none;
    border-color: #1db954;
    background: rgba(255,255,255,.1);
}

.spotai-field input[type="text"]::placeholder {
    opacity: .35;
}

.spotai-field__desc {
    font-size: .8em;
    opacity: .5;
    margin: 0;
}

.spotai-checkbox {
    display: flex;
    align-items: center;
    gap: .6em;
    font-weight: normal !important;
    font-size: .95em;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: 0 !important;
    opacity: 1 !important;
}

.spotai-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1db954;
    cursor: pointer;
    flex-shrink: 0;
}

/* Buttons */
.spotai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .6em 1.4em;
    border-radius: 500px;
    border: none;
    cursor: pointer;
    font-size: .9em;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
    transition: transform .1s, opacity .1s;
    background: #1db954;
    color: #000;
    line-height: 1;
}

.spotai-btn:hover    { opacity: .88; color: #000; text-decoration: none; transform: scale(1.02); }
.spotai-btn:active   { transform: scale(.98); }

.spotai-btn--secondary {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
}
.spotai-btn--secondary:hover { background: rgba(255,255,255,.2); color: #fff; }

.spotai-btn--danger {
    background: transparent;
    color: #ff6b7a;
    border: 1px solid rgba(255,107,122,.4);
}
.spotai-btn--danger:hover { background: rgba(220,53,69,.15); color: #ff6b7a; }

.spotai-actions {
    display: flex;
    gap: .6em;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5em;
}

/* Divider between save form and action buttons */
.spotai-actions + .spotai-actions {
    padding-top: 1em;
    border-top: 1px solid rgba(255,255,255,.08);
}

/* History */
.spotai-history {
    width: 100%;
    margin-top: .75em;
    font-size: .875em;
}

.spotai-history__header,
.spotai-history__row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr .4fr;
    gap: .75em;
    padding: .6em .25em;
    align-items: center;
}

.spotai-history__header {
    font-size: .8em;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    opacity: .5;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.spotai-history__row {
    border-bottom: 1px solid rgba(255,255,255,.06);
    opacity: .8;
}
.spotai-history__row:last-child { border-bottom: none; }
.spotai-history__row:hover { opacity: 1; background: rgba(255,255,255,.04); }

/* Login view */
.spotai-login {
    text-align: center;
    padding: 3em 0;
}
.spotai-login__alt {
    margin-top: 1.25em;
    font-size: .875em;
    opacity: .5;
}
.spotai-login__alt a { color: inherit; text-decoration: underline; }
