35124-vm/assets/css/style.css
Flatlogic Bot 2fad95a89a CCX
2025-10-22 21:53:58 +00:00

607 lines
11 KiB
CSS

:root {
--primary-color: #3498db;
--accent-color: #2ecc71;
--light-bg: #ecf0f1;
--light-surface: #ffffff;
--light-text: #2c3e50;
--dark-bg: #2c3e50;
--dark-surface: #34495e;
--dark-text: #ecf0f1;
--font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
font-family: var(--font-family);
margin: 0;
padding: 0;
overflow: hidden;
transition: background-color 0.3s, color 0.3s;
}
body.light-theme {
background-color: var(--light-bg);
color: var(--light-text);
--bg-color: var(--light-bg);
--surface-color: var(--light-surface);
--text-color: var(--light-text);
}
body.dark-theme {
background-color: var(--dark-bg);
color: var(--dark-text);
--bg-color: var(--dark-bg);
--surface-color: var(--dark-surface);
--text-color: var(--dark-text);
}
#app-container {
display: flex;
height: 100vh;
}
/* --- Sidebar --- */
#sidebar {
width: 350px;
background-color: var(--surface-color);
display: flex;
flex-direction: column;
border-right: 1px solid rgba(0,0,0,0.1);
transition: background-color 0.3s;
}
#sidebar-header {
padding: 20px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid rgba(0,0,0,0.1);
}
#sidebar-header h1 {
margin: 0;
font-size: 24px;
color: var(--primary-color);
}
/* Theme Switcher */
.theme-switcher {
display: flex;
align-items: center;
gap: 8px;
}
.switch {
position: relative;
display: inline-block;
width: 40px;
height: 20px;
}
.switch input { display: none; }
.slider {
position: absolute;
cursor: pointer;
top: 0; left: 0; right: 0; bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 20px;
}
.slider:before {
position: absolute;
content: "";
height: 14px;
width: 14px;
left: 3px;
bottom: 3px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: var(--primary-color);
}
input:checked + .slider:before {
transform: translateX(20px);
}
#sidebar-tabs {
display: flex;
border-bottom: 1px solid rgba(0,0,0,0.1);
}
.tab-link {
flex: 1;
padding: 15px;
background: none;
border: none;
font-size: 16px;
cursor: pointer;
color: var(--text-color);
opacity: 0.7;
transition: opacity 0.2s, border-bottom 0.2s;
border-bottom: 3px solid transparent;
}
.tab-link.active {
opacity: 1;
border-bottom: 3px solid var(--primary-color);
}
.tab-content {
display: none;
flex-grow: 1;
overflow-y: auto;
flex-direction: column;
}
.tab-content.active {
display: flex;
}
.toolbar {
padding: 15px;
border-bottom: 1px solid rgba(0,0,0,0.1);
}
.search-bar {
position: relative;
margin-bottom: 10px;
}
.search-bar input {
width: 100%;
padding: 10px 10px 10px 35px;
border-radius: 5px;
border: 1px solid #ccc;
background-color: var(--bg-color);
color: var(--text-color);
box-sizing: border-box;
}
.search-bar .fa-search {
position: absolute;
top: 12px;
left: 12px;
color: #aaa;
}
#genre-filter {
width: 100%;
padding: 10px;
border-radius: 5px;
border: 1px solid #ccc;
background-color: var(--bg-color);
color: var(--text-color);
}
#station-list, #discover-list {
flex-grow: 1;
overflow-y: auto;
padding: 10px;
}
.station-item, .discover-item {
display: flex;
align-items: center;
padding: 15px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.2s;
margin-bottom: 5px;
}
.station-item:hover, .discover-item:hover {
background-color: rgba(0,0,0,0.1);
}
.station-item.playing {
background-color: var(--primary-color);
color: white;
}
.station-item-info {
flex-grow: 1;
}
.station-item-info h3 {
margin: 0;
font-size: 16px;
}
.station-item-info p {
margin: 0;
font-size: 12px;
opacity: 0.7;
}
.station-item-controls button, .discover-item-controls button {
background: none;
border: none;
color: var(--text-color);
cursor: pointer;
font-size: 16px;
margin-left: 10px;
opacity: 0.7;
transition: opacity 0.2s;
}
.station-item.playing .station-item-controls button {
color: white;
}
.station-item-controls button:hover, .discover-item-controls button:hover {
opacity: 1;
}
.sidebar-btn {
padding: 15px;
background-color: var(--accent-color);
color: white;
border: none;
font-size: 16px;
cursor: pointer;
transition: background-color 0.2s;
}
.sidebar-btn:hover {
filter: brightness(1.1);
}
/* --- Main Content --- */
#main-content {
flex-grow: 1;
display: flex;
flex-direction: column;
background-color: var(--bg-color);
}
#visualizer-container {
flex-grow: 1;
position: relative;
background-color: #000;
}
#visualizer {
width: 100%;
height: 100%;
}
#player-container {
padding: 30px;
background-color: var(--surface-color);
border-top: 1px solid rgba(0,0,0,0.1);
text-align: center;
}
#now-playing {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
}
#now-playing img {
width: 80px;
height: 80px;
border-radius: 5px;
margin-right: 20px;
}
#now-playing h2 {
margin: 0;
font-size: 28px;
}
#now-playing p {
margin: 0;
font-size: 16px;
opacity: 0.7;
}
#player-controls {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-bottom: 20px;
}
#player-controls button {
background: none;
border: 1px solid var(--text-color);
color: var(--text-color);
border-radius: 50%;
width: 60px;
height: 60px;
font-size: 24px;
cursor: pointer;
transition: all 0.2s;
}
#player-controls button#play-pause-btn {
background-color: var(--primary-color);
border-color: var(--primary-color);
color: white;
width: 70px;
height: 70px;
}
#player-controls button:hover {
transform: scale(1.1);
}
.volume-control {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
width: 300px;
margin: 0 auto;
}
.volume-control input[type="range"] {
flex-grow: 1;
}
#recommendations-container {
padding: 20px;
background-color: var(--bg-color);
border-top: 1px solid rgba(0,0,0,0.1);
}
#recommendations-container h3 {
margin-top: 0;
text-align: center;
}
#recommendations-list {
display: flex;
gap: 15px;
justify-content: center;
}
.rec-item {
background-color: var(--surface-color);
padding: 15px;
border-radius: 5px;
text-align: center;
cursor: pointer;
transition: transform 0.2s;
}
.rec-item:hover {
transform: translateY(-5px);
}
/* --- App Controls --- */
#app-controls {
position: absolute;
top: 20px;
right: 20px;
display: flex;
gap: 10px;
}
#app-controls button {
background-color: var(--surface-color);
border: 1px solid #ccc;
border-radius: 50%;
width: 40px;
height: 40px;
font-size: 18px;
cursor: pointer;
color: var(--text-color);
transition: all 0.2s;
}
#app-controls button:hover {
background-color: var(--primary-color);
color: white;
}
/* --- Modals --- */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
justify-content: center;
align-items: center;
}
.modal.active {
display: flex;
}
.modal-content {
background-color: var(--surface-color);
padding: 30px;
border-radius: 10px;
width: 90%;
max-width: 500px;
position: relative;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.close-btn {
position: absolute;
top: 15px;
right: 15px;
font-size: 24px;
font-weight: bold;
cursor: pointer;
}
#station-form label, .color-picker-section h3, #import-export-modal h3 {
display: block;
margin-bottom: 10px;
font-weight: bold;
}
#station-form input {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border-radius: 5px;
border: 1px solid #ccc;
box-sizing: border-box;
background-color: var(--bg-color);
color: var(--text-color);
}
#station-form button, .modal-content button {
width: 100%;
padding: 12px;
border: none;
border-radius: 5px;
background-color: var(--primary-color);
color: white;
font-size: 16px;
cursor: pointer;
transition: filter 0.2s;
}
#station-form button:hover, .modal-content button:hover {
filter: brightness(1.1);
}
.color-picker-section .color-input {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.color-picker-section input[type="color"] {
width: 50px;
height: 30px;
border: none;
padding: 0;
cursor: pointer;
}
#reset-colors-btn {
background-color: #95a5a6;
margin-top: 10px;
}
#timer-options {
display: flex;
justify-content: space-around;
margin: 20px 0;
}
#timer-options button {
width: auto;
padding: 10px 20px;
}
#timer-display {
text-align: center;
font-size: 18px;
margin: 20px 0;
}
#cancel-timer-btn {
background-color: #e74c3c;
}
#import-export-modal .import-section, #import-export-modal .export-section {
margin-bottom: 20px;
}
#import-export-modal input[type="file"] {
display: block;
margin: 10px 0;
}
/* --- Equalizer --- */
#equalizer-controls {
display: flex;
flex-direction: column;
gap: 20px;
}
.eq-presets {
display: flex;
align-items: center;
gap: 10px;
}
#eq-presets-select {
padding: 8px;
border-radius: 5px;
border: 1px solid #ccc;
background-color: var(--bg-color);
color: var(--text-color);
}
#eq-bands {
display: flex;
justify-content: space-around;
align-items: flex-end;
height: 200px;
gap: 10px;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
.eq-band {
display: flex;
flex-direction: column;
align-items: center;
flex-grow: 1;
}
.eq-band input[type="range"] {
-webkit-appearance: none;
appearance: none;
width: 150px;
height: 8px;
transform: rotate(-90deg);
transform-origin: 75px 75px;
background: #ddd;
border-radius: 5px;
outline: none;
opacity: 0.7;
transition: opacity .2s;
}
.eq-band input[type="range"]:hover {
opacity: 1;
}
.eq-band label {
font-size: 12px;
margin-top: 10px;
}
#reset-eq-btn {
background-color: #95a5a6;
}
#player-controls button#record-btn {
color: #e74c3c;
border-color: #e74c3c;
}
#player-controls button#record-btn.recording {
background-color: #e74c3c;
color: white;
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
}
70% {
box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
}
}