Files
spotizerr-dev/static/css/config/config.css
2025-06-07 18:47:18 +02:00

1014 lines
20 KiB
CSS

/* CONFIGURATION PAGE STYLES */
/* Base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
body {
/* Modern dark gradient background */
background: linear-gradient(135deg, #121212, #1e1e1e);
color: #ffffff;
min-height: 100vh;
}
/* Config Container */
.config-container {
max-width: 800px;
margin: 0 auto;
padding: 2rem 1.5rem;
}
/* Header */
.config-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
padding-bottom: 1.5rem;
border-bottom: 1px solid #2a2a2a;
transition: all 0.3s ease;
}
/* Environment controlled setting styles */
.env-controlled-setting {
display: flex;
align-items: center;
background-color: #2a2a2a;
border-radius: 8px;
padding: 0.8rem 1rem;
margin-top: 0.5rem;
}
.env-controlled-value {
flex: 1;
font-weight: 500;
}
.env-controlled-value.enabled {
color: #1db954;
}
.env-controlled-value.disabled {
color: #ff5555;
}
.env-controlled-badge {
background-color: #555;
color: white;
font-size: 0.7rem;
padding: 0.2rem 0.5rem;
border-radius: 4px;
margin-left: 0.5rem;
font-weight: bold;
}
/* Queue Sidebar for Config Page */
#downloadQueue {
position: fixed;
top: 0;
right: -350px;
width: 350px;
height: 100vh;
background: #181818;
padding: 20px;
transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 1001;
box-shadow: -20px 0 30px rgba(0, 0, 0, 0.4);
display: flex;
flex-direction: column;
}
#downloadQueue.active {
right: 0;
}
/* Header inside the queue sidebar */
.sidebar-header {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 15px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
margin-bottom: 20px;
}
.sidebar-header h2 {
font-size: 1.25rem;
font-weight: 600;
color: #fff;
margin: 0;
}
.header-actions {
display: flex;
gap: 10px;
align-items: center;
}
/* Cancel all button styling */
#cancelAllBtn {
background: #8b0000;
border: none;
color: #fff;
padding: 8px 12px;
border-radius: 4px;
cursor: pointer;
transition: background 0.3s ease, transform 0.2s ease;
font-size: 14px;
font-weight: 600;
display: flex;
align-items: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
#cancelAllBtn:hover {
background: #a30000;
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}
#cancelAllBtn:active {
transform: scale(0.98);
}
#cancelAllBtn .skull-icon {
width: 16px;
height: 16px;
margin-right: 8px;
vertical-align: middle;
filter: brightness(0) invert(1);
transition: transform 0.3s ease;
}
#cancelAllBtn:hover .skull-icon {
transform: rotate(-10deg) scale(1.2);
animation: skullShake 0.5s infinite alternate;
}
@keyframes skullShake {
0% { transform: rotate(-5deg); }
100% { transform: rotate(5deg); }
}
/* Empty queue state */
.queue-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 200px;
color: #b3b3b3;
text-align: center;
padding: 20px;
}
.queue-empty img {
width: 60px;
height: 60px;
margin-bottom: 15px;
opacity: 0.6;
}
.queue-empty p {
font-size: 14px;
line-height: 1.5;
}
/* Mobile responsiveness for queue in Config page */
@media (max-width: 600px) {
#downloadQueue {
width: 100%;
right: -100%;
padding: 15px;
}
#downloadQueue.active {
right: 0;
}
.sidebar-header {
padding-bottom: 12px;
margin-bottom: 15px;
}
.sidebar-header h2 {
font-size: 1.1rem;
}
#cancelAllBtn {
padding: 6px 10px;
font-size: 12px;
}
}
/* Account Configuration Section */
.account-config {
background: #181818;
padding: 1.5rem;
border-radius: 12px;
margin-bottom: 2rem;
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
transition: transform 0.3s ease;
}
/* Service selection highlight */
#defaultServiceSelect {
border-left: 3px solid #1db954;
box-shadow: 0 0 8px rgba(29, 185, 84, 0.1);
transition: all 0.3s ease;
}
#defaultServiceSelect:focus {
border-color: #1db954;
box-shadow: 0 0 12px rgba(29, 185, 84, 0.2);
}
/* Highlighted service-specific options */
.config-item.highlighted-option {
background-color: rgba(29, 185, 84, 0.05);
border-radius: 8px;
padding: 10px;
margin-left: -10px;
margin-right: -10px;
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}
.config-item.highlighted-option::before {
content: '';
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 3px;
background-color: #1db954;
}
.config-item.highlighted-option label {
color: #ffffff;
font-weight: 500;
}
/* Add subtle animation on hover */
.config-item:hover #defaultServiceSelect {
box-shadow: 0 0 12px rgba(29, 185, 84, 0.15);
}
.account-config:hover {
transform: translateY(-2px);
}
/* Master Accounts Configuration Section (Global API Keys + Per-Account Lists) */
.master-accounts-config-section {
background: #181818; /* Consistent with other sections */
padding: 1.5rem;
border-radius: 12px;
margin-bottom: 2rem;
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
transition: transform 0.3s ease; /* Optional, for consistency */
}
.master-accounts-config-section:hover {
transform: translateY(-2px); /* Optional, for consistency */
}
/* Section for Global Spotify API Key Configuration */
.global-api-keys-config {
background: #2a2a2a; /* Slightly different background to stand out or match input groups */
padding: 1.5rem;
border-radius: 8px;
margin-bottom: 1.5rem; /* Space before the per-account sections start */
border: 1px solid #404040; /* Subtle border */
}
/* Section Titles */
.section-title {
font-size: 1.5rem;
margin-bottom: 1.5rem;
position: relative;
padding-bottom: 0.75rem;
color: var(--color-text-primary);
}
.section-title::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 50px;
height: 2px;
background-color: var(--color-primary);
}
.config-item {
margin-bottom: 1.5rem;
position: relative;
}
.config-item label {
display: block;
margin-bottom: 0.5rem;
color: #b3b3b3;
font-size: 0.95rem;
}
/* Enhanced Dropdown Styling */
.form-select {
background: #2a2a2a;
color: #ffffff;
border: 1px solid #404040;
border-radius: 8px;
padding: 0.8rem 2.5rem 0.8rem 1rem;
width: 100%;
font-size: 0.95rem;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: right 1rem center;
background-size: 12px;
transition: all 0.3s ease;
}
.form-select:focus {
outline: none;
border-color: #1db954;
box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.2);
}
.form-select option {
background: #181818;
color: #ffffff;
padding: 0.8rem;
}
.form-select option:hover {
background: #1db954;
}
/* New Input Styling for Custom Format Fields */
.form-input {
width: 100%;
padding: 0.8rem;
background: #2a2a2a;
border: 1px solid #404040;
border-radius: 8px;
color: #ffffff;
font-size: 0.95rem;
transition: border-color 0.3s ease;
}
.form-input:focus {
outline: none;
border-color: #1db954;
box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.2);
}
/* Improved Toggle Switches */
.switch {
position: relative;
display: inline-block;
width: 48px;
height: 24px;
margin-top: 0.5rem;
vertical-align: middle;
overflow: hidden;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #666;
transition: 0.4s;
border-radius: 24px;
}
.slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background-color: #ffffff;
transition: 0.4s;
border-radius: 50%;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
input:checked + .slider {
background-color: #1db954;
}
input:checked + .slider:before {
transform: translateX(24px);
}
/* Setting description */
.setting-description {
margin-top: 0.4rem;
font-size: 0.8rem;
color: #b3b3b3;
line-height: 1.4;
}
/* Accounts section layout */
.accounts-section {
margin-top: 2rem;
}
/* Service Tabs */
.service-tabs {
display: flex;
gap: 0.5rem;
margin-bottom: 1.5rem;
}
.tab-button {
padding: 0.8rem 1.5rem;
border: none;
border-radius: 25px;
background: #2a2a2a;
color: #ffffff;
cursor: pointer;
font-size: 0.95rem;
transition: background 0.3s ease, transform 0.2s ease;
flex: 1;
text-align: center;
}
.tab-button.active {
background: #1db954;
transform: translateY(-2px);
}
.tab-button:hover:not(.active) {
background: #333333;
}
/* No Credentials Message */
.no-credentials {
padding: 1.5rem;
background: #2a2a2a;
border-radius: 8px;
margin-bottom: 1.5rem;
text-align: center;
color: #b3b3b3;
}
/* Credentials List */
.credentials-list {
margin-bottom: 2rem;
padding: 1.5rem;
background: #181818;
border-radius: 12px;
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.credential-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.25rem;
background: #2a2a2a;
border-radius: 8px;
margin-bottom: 0.75rem;
transition: all 0.3s ease;
border-left: 3px solid var(--color-primary);
}
.credential-item:hover {
background: #333333;
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
.credential-item:last-child {
margin-bottom: 0;
}
/* New styling for credential info and actions */
.credential-info {
display: flex;
flex-direction: column;
gap: 0.25rem;
flex: 1;
padding-right: 1rem;
}
.credential-name {
font-weight: 600;
font-size: 1.1rem;
color: var(--color-text-primary);
margin-bottom: 0.5rem;
}
.credential-type {
display: inline-block;
padding: 0.25rem 0.5rem;
background-color: rgba(29, 185, 84, 0.1);
border-radius: 8px;
font-size: 0.8rem;
color: var(--color-primary);
margin-bottom: 0.5rem;
}
.credential-details {
font-size: 0.9rem;
color: var(--color-text-secondary);
margin-top: 0.25rem;
}
.search-credentials-status {
font-size: 0.85rem;
padding: 0.25rem 0.5rem;
border-radius: 12px;
display: inline-block;
width: fit-content;
margin-top: 0.5rem;
}
.search-credentials-status.has-api {
background: rgba(29, 185, 84, 0.2);
color: #1db954;
}
.search-credentials-status.no-api {
background: rgba(255, 85, 85, 0.2);
color: #ff5555;
}
.credential-actions {
display: flex;
gap: 0.75rem;
}
.credential-actions button {
background-color: #222222;
border: none;
cursor: pointer;
padding: 0.6rem;
border-radius: 8px;
transition: background-color 0.2s ease, transform 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.9rem;
font-weight: 500;
color: white;
}
.credential-actions button img {
width: 20px;
height: 20px;
filter: brightness(0) invert(1);
}
.credential-actions button:hover {
transform: translateY(-2px);
}
.credential-actions button.delete-btn {
color: #ff5555;
}
.credential-actions button.delete-btn:hover {
background-color: rgba(192, 57, 43, 0.2);
}
.credential-actions button.edit-btn:hover {
background-color: rgba(52, 152, 219, 0.2);
}
/* Credentials Form */
.credentials-form {
background: #181818;
padding: 1.5rem;
border-radius: 12px;
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
transition: transform 0.3s ease;
}
.credentials-form:hover {
transform: translateY(-2px);
}
#serviceFields, #searchFields {
margin: 1.5rem 0;
}
.form-group {
margin-bottom: 1.2rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
color: #b3b3b3;
}
.form-group input {
width: 100%;
padding: 0.8rem;
background: #2a2a2a;
border: 1px solid #404040;
border-radius: 8px;
color: #ffffff;
transition: border-color 0.3s ease;
}
.form-group input:focus {
outline: none;
border-color: #1db954;
}
.save-btn {
background: #1db954;
color: #ffffff;
padding: 0.8rem 1.5rem;
border: none;
border-radius: 25px;
cursor: pointer;
font-weight: 500;
transition: background 0.3s ease, transform 0.2s ease;
margin-top: 1.5rem;
}
.save-btn:hover {
background: #1ed760;
transform: translateY(-2px);
}
/* Error Messages - Hidden by default */
#configError {
background-color: rgba(192, 57, 43, 0.1);
color: #ff5555;
margin-top: 1.5rem;
padding: 1rem;
border-radius: 8px;
border-left: 3px solid #ff5555;
font-size: 0.9rem;
display: none;
}
/* Show the messages when they have content */
#configError:not(:empty) {
display: block;
}
/* Success Messages - Hidden by default */
#configSuccess {
background-color: rgba(46, 204, 113, 0.1);
color: #1db954;
margin-top: 1.5rem;
padding: 1rem;
border-radius: 8px;
border-left: 3px solid #1db954;
font-size: 0.9rem;
font-weight: 500;
display: none;
}
/* Show the messages when they have content */
#configSuccess:not(:empty) {
display: block;
}
/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
.config-container {
padding: 1.5rem 1rem;
}
.config-header {
flex-direction: column;
gap: 1rem;
align-items: flex-start;
}
/* Increase touch target sizes for buttons and selects */
.form-select {
padding: 0.8rem 2rem 0.8rem 1rem;
font-size: 0.9rem;
}
.service-tabs {
flex-wrap: wrap;
}
.tab-button {
flex: 1 1 auto;
text-align: center;
margin-bottom: 0.5rem;
}
.credential-item {
flex-direction: column;
align-items: flex-start;
gap: 0.75rem;
}
.credential-info {
width: 100%;
margin-bottom: 1rem;
}
.credential-actions {
width: 100%;
display: flex;
justify-content: flex-end;
flex-wrap: wrap;
gap: 0.5rem;
}
/* Adjust toggle switch size for better touch support */
.switch {
width: 52px;
height: 26px;
}
.slider:before {
height: 20px;
width: 20px;
}
}
@media (max-width: 480px) {
.config-container {
padding: 1rem;
}
.account-config,
.credentials-list,
.credentials-form {
padding: 1rem;
border-radius: 8px;
}
.section-title {
font-size: 1.3rem;
}
.config-item label {
font-size: 0.95rem;
}
.form-select,
.form-input {
padding: 0.7rem 1.8rem 0.7rem 0.8rem;
font-size: 0.9rem;
}
.save-btn {
width: 100%;
padding: 0.7rem;
font-size: 0.9rem;
}
/* Position floating icons a bit closer to the edges on small screens */
.back-button.floating-icon {
width: 60px;
height: 60px;
left: 16px;
bottom: 16px;
}
.back-button.floating-icon img {
width: 28px;
height: 28px;
}
}
/* Format help styles */
.format-help {
display: flex;
margin-top: 8px;
align-items: center;
}
.format-selector {
width: 100%;
padding: 6px;
border-radius: 4px;
border: 1px solid #404040;
background-color: #2a2a2a;
color: #ffffff;
}
.format-selector:focus {
outline: none;
border-color: #1db954;
box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.2);
}
.setting-description {
margin-top: 8px;
font-size: 0.9em;
color: #b3b3b3;
}
/* Copy notification styles */
#copyNotificationContainer {
position: fixed;
bottom: 20px;
left: 0;
right: 0;
display: flex;
flex-direction: column;
align-items: center;
z-index: 1000;
pointer-events: none;
}
.copy-notification {
background-color: rgba(0, 0, 0, 0.8);
color: white;
padding: 10px 20px;
border-radius: 4px;
margin-top: 5px;
opacity: 0;
transform: translateY(20px);
transition: opacity 0.3s, transform 0.3s;
max-width: 90%;
text-align: center;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.copy-notification.show {
opacity: 1;
transform: translateY(0);
}
/* Credentials List Wrapper */
.credentials-list-wrapper {
background: #181818; /* Same as original .credentials-list.card */
border-radius: 12px;
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
padding: 1.5rem; /* Add padding here if you want it around the whole block */
margin-bottom: 2rem;
}
/* Styling for the Add New Account button to make it look like a list item */
.add-account-item {
margin-top: 0.75rem; /* Space above the add button if there are items */
}
.btn-add-account-styled {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
padding: 1.25rem;
background-color: #1db954; /* Green background */
color: #ffffff;
border: none;
border-radius: 8px; /* Same as credential-item */
font-size: 1.1rem; /* Similar to credential-name */
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
text-align: center;
opacity: 1; /* Ensure it's not transparent by default */
}
.btn-add-account-styled img {
width: 20px; /* Adjust as needed */
height: 20px; /* Adjust as needed */
margin-right: 10px;
filter: brightness(0) invert(1); /* Make icon white if it's not already */
}
.btn-add-account-styled:hover {
background-color: #1aa34a; /* Darker green on hover */
transform: translateY(-1px);
}
/* New styles for the icon-based cancel button */
.btn-cancel-icon {
background-color: #c0392b !important; /* Red background */
padding: 0.6rem !important; /* Adjust padding for icon */
width: auto; /* Allow button to size to icon */
min-width: 40px; /* Ensure a minimum touch target size */
height: 40px; /* Ensure a minimum touch target size */
align-items: center;
justify-content: center;
border-radius: 50% !important; /* Make it circular */
opacity: 1 !important; /* Ensure it's always visible when its container is */
visibility: visible !important; /* Ensure it's not hidden by visibility property */
}
.btn-cancel-icon img {
width: 16px; /* Adjust icon size as needed */
height: 16px;
filter: brightness(0) invert(1); /* Make icon white */
}
.btn-cancel-icon:hover {
background-color: #e74c3c !important; /* Lighter red on hover */
transform: translateY(-2px) scale(1.05);
}
/* Watch Options Config Section */
.watch-options-config {
background: #181818;
padding: 1.5rem;
border-radius: 12px;
margin-bottom: 2rem;
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
transition: transform 0.3s ease;
}
.watch-options-config:hover {
transform: translateY(-2px);
}
/* New Checklist Styles */
.checklist-container {
background: #2a2a2a;
border: 1px solid #404040;
border-radius: 8px;
padding: 0.8rem;
margin-top: 0.5rem;
}
.checklist-item {
display: flex;
align-items: center;
margin-bottom: 0.5rem;
padding: 0.3rem 0;
}
.checklist-item:last-child {
margin-bottom: 0;
}
.checklist-item input[type="checkbox"] {
margin-right: 0.8rem;
width: 18px; /* Custom size */
height: 18px; /* Custom size */
cursor: pointer;
accent-color: #1db954; /* Modern way to color checkboxes */
}
.checklist-item label {
color: #ffffff; /* Ensure label text is white */
font-size: 0.95rem;
cursor: pointer;
/* Reset some global label styles if they interfere */
display: inline;
margin-bottom: 0;
}
/* Urgent Warning Message Style */
.urgent-warning-message {
background-color: rgba(255, 165, 0, 0.1); /* Orange/Amber background */
border: 1px solid #FFA500; /* Orange/Amber border */
color: #FFA500; /* Orange/Amber text */
padding: 1rem;
border-radius: 8px;
display: flex; /* Use flex to align icon and text */
align-items: center; /* Vertically align icon and text */
margin-top: 1rem;
margin-bottom: 1rem;
}
.urgent-warning-message .warning-icon {
margin-right: 0.75rem; /* Space between icon and text */
min-width: 24px; /* Ensure icon doesn't shrink too much */
color: #FFA500; /* Match icon color to text/border */
}
/* Existing info-message style - ensure it doesn't conflict or adjust if needed */
.info-message {
background-color: rgba(0, 123, 255, 0.1);
border: 1px solid #007bff;
color: #007bff;
padding: 1rem;
border-radius: 8px;
margin-top: 1rem;
margin-bottom: 1rem;
}
/* Version text styling */
.version-text {
font-size: 0.9rem;
color: #888; /* Light grey color */
margin-left: auto; /* Push it to the right */
padding-top: 0.5rem; /* Align with title better */
}