Files
DND-records/static/style.css
T

1046 lines
17 KiB
CSS
Executable File

/* style.css - Полный файл стилей */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 1200px;
margin: 0 auto;
background: white;
border-radius: 20px;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
overflow: hidden;
}
/* Header */
header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 20px 30px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 15px;
}
header h1 {
font-size: 1.8em;
}
.user-info {
display: flex;
align-items: center;
gap: 15px;
}
#usernameDisplay {
font-weight: bold;
}
.btn-logout {
background: rgba(255,255,255,0.2);
color: white;
border: 1px solid rgba(255,255,255,0.3);
padding: 5px 15px;
border-radius: 20px;
cursor: pointer;
transition: all 0.3s ease;
}
.btn-logout:hover {
background: rgba(255,255,255,0.3);
transform: translateY(-1px);
}
/* Tabs */
.tabs {
display: flex;
background: #f8f9fa;
border-bottom: 2px solid #e0e0e0;
padding: 0 20px;
}
.tab-btn {
padding: 15px 30px;
background: none;
border: none;
font-size: 16px;
font-weight: bold;
cursor: pointer;
color: #666;
transition: all 0.3s ease;
position: relative;
}
.tab-btn:hover {
color: #667eea;
}
.tab-btn.active {
color: #667eea;
}
.tab-btn.active::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
right: 0;
height: 2px;
background: #667eea;
}
.tab-content {
display: none;
padding: 30px;
animation: fadeIn 0.3s ease;
}
.tab-content.active {
display: block;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Cards */
.status-card, .info-card, .settings-card {
background: #f8f9fa;
border-radius: 15px;
padding: 25px;
margin-bottom: 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.status-card h3, .info-card h3, .settings-card h3 {
margin-bottom: 20px;
color: #333;
font-size: 1.3em;
}
/* Status indicators */
.status-indicator {
margin-bottom: 25px;
}
.status-row {
display: flex;
justify-content: space-between;
padding: 10px 0;
border-bottom: 1px solid #e0e0e0;
}
.status-label, .info-label {
font-weight: bold;
color: #555;
}
.status {
display: inline-block;
padding: 4px 12px;
border-radius: 20px;
font-weight: bold;
font-size: 14px;
}
.status.recording {
background: #ff4757;
color: white;
animation: pulse 1.5s infinite;
}
.status.stopped {
background: #2ed573;
color: white;
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.6; }
100% { opacity: 1; }
}
.current-file, .current-device {
font-family: monospace;
font-size: 12px;
color: #666;
word-break: break-all;
}
/* Buttons */
.button-group {
display: flex;
gap: 15px;
margin-top: 20px;
}
.btn {
padding: 12px 24px;
font-size: 16px;
font-weight: bold;
border: none;
border-radius: 10px;
cursor: pointer;
transition: all 0.3s ease;
}
.btn-start {
background: #2ed573;
color: white;
flex: 1;
}
.btn-start:hover:not(:disabled) {
background: #26b865;
transform: translateY(-2px);
}
.btn-stop {
background: #ff4757;
color: white;
flex: 1;
}
.btn-stop:hover:not(:disabled) {
background: #e8413e;
transform: translateY(-2px);
}
.btn-config, .btn-refresh {
background: #667eea;
color: white;
}
.btn-config:hover, .btn-refresh:hover {
background: #5a67d8;
transform: translateY(-2px);
}
.btn-success {
background: #28a745;
color: white;
}
.btn-success:hover {
background: #218838;
transform: translateY(-2px);
}
.btn-danger {
background: #dc3545;
color: white;
}
.btn-danger:hover {
background: #c82333;
transform: translateY(-2px);
}
.btn-secondary {
background: #6c757d;
color: white;
}
.btn-secondary:hover {
background: #5a6268;
transform: translateY(-2px);
}
.btn-live {
background: #28a745;
color: white;
}
.btn-live:hover {
background: #218838;
transform: translateY(-2px);
}
.btn-stop-live {
background: #dc3545;
color: white;
}
.btn-stop-live:hover {
background: #c82333;
}
.btn-small {
padding: 5px 10px;
font-size: 12px;
margin-top: 5px;
background: #6c757d;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
.btn-small:hover {
background: #5a6268;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Form elements */
.settings-group {
margin-bottom: 25px;
}
.settings-group label {
display: block;
margin-bottom: 8px;
font-weight: bold;
color: #555;
}
.settings-group input[type="text"],
.settings-group input[type="number"],
.settings-group select,
.settings-group input[type="password"] {
width: 100%;
padding: 10px;
border: 2px solid #e0e0e0;
border-radius: 8px;
font-size: 16px;
transition: border-color 0.3s;
}
.settings-group input:focus,
.settings-group select:focus {
outline: none;
border-color: #667eea;
}
.duration-presets {
display: flex;
gap: 10px;
margin-top: 10px;
flex-wrap: wrap;
}
.preset-btn {
padding: 5px 12px;
background: #e9ecef;
border: 1px solid #dee2e6;
border-radius: 5px;
cursor: pointer;
font-size: 12px;
transition: all 0.3s ease;
}
.preset-btn:hover {
background: #667eea;
color: white;
border-color: #667eea;
}
.checkbox-label {
display: flex;
align-items: center;
cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
width: auto;
margin-right: 10px;
transform: scale(1.2);
}
.info-text {
font-size: 12px;
color: #6c757d;
margin-top: 5px;
line-height: 1.4;
}
.settings-actions {
margin-top: 30px;
display: flex;
gap: 10px;
}
.settings-actions .btn {
flex: 1;
}
/* Channel selector */
.channel-selector {
background: #f8f9fa;
border-radius: 15px;
padding: 15px 20px;
margin-bottom: 20px;
display: flex;
align-items: center;
gap: 15px;
flex-wrap: wrap;
}
.channel-select {
padding: 8px 12px;
border: 2px solid #e0e0e0;
border-radius: 8px;
font-size: 14px;
background: white;
min-width: 200px;
}
/* Channels list */
.channels-list {
display: grid;
gap: 10px;
max-height: 300px;
overflow-y: auto;
}
.channel-item {
background: white;
padding: 12px;
border-radius: 10px;
border-left: 3px solid #e0e0e0;
cursor: pointer;
transition: all 0.2s ease;
}
.channel-item:hover {
transform: translateX(5px);
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.channel-item.active {
border-left-color: #667eea;
background: #f0f3ff;
}
.channel-item-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.channel-item-header strong {
color: #333;
font-size: 14px;
}
.channel-item-details {
font-size: 12px;
color: #666;
}
.channel-status {
padding: 2px 8px;
border-radius: 12px;
font-size: 10px;
font-weight: bold;
}
.channel-status.recording {
background: #ff4757;
color: white;
}
.channel-status.stopped {
background: #2ed573;
color: white;
}
/* Archive */
.archive-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
flex-wrap: wrap;
gap: 15px;
}
.archive-filters {
display: flex;
gap: 10px;
align-items: center;
}
.filter-select {
padding: 8px 12px;
border: 2px solid #e0e0e0;
border-radius: 8px;
font-size: 14px;
background: white;
}
.recordings-list {
display: grid;
gap: 15px;
}
/* Batch actions */
.batch-actions {
background: #e9ecef;
padding: 12px 15px;
border-radius: 8px;
margin-bottom: 15px;
display: flex;
align-items: center;
gap: 15px;
flex-wrap: wrap;
}
.batch-actions .checkbox-label {
margin: 0;
}
#selectAllCheckbox {
width: 18px;
height: 18px;
margin-right: 8px;
cursor: pointer;
}
#selectedCount {
font-size: 14px;
color: #666;
}
#deleteSelectedBtn {
background: #dc3545;
color: white;
padding: 8px 16px;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
}
#deleteSelectedBtn:hover {
background: #c82333;
transform: translateY(-2px);
}
/* Recording items */
.recording-item {
display: flex;
align-items: flex-start;
background: #f8f9fa;
border-radius: 10px;
padding: 15px;
transition: all 0.3s ease;
margin-bottom: 10px;
}
.recording-item:hover {
background: #e9ecef;
transform: translateX(5px);
}
.recording-select {
display: flex;
align-items: center;
justify-content: center;
margin-right: 15px;
}
.recording-select input[type="checkbox"] {
width: 20px;
height: 20px;
cursor: pointer;
transform: scale(1.2);
}
.recording-info {
flex: 1;
min-width: 200px;
}
.recording-name {
font-weight: bold;
color: #333;
margin-bottom: 5px;
font-family: monospace;
font-size: 14px;
word-break: break-all;
}
.recording-meta {
font-size: 12px;
color: #666;
}
.recording-meta span {
margin-right: 15px;
}
.recording-actions {
display: flex;
gap: 10px;
margin-left: 15px;
}
.btn-play, .btn-download {
padding: 8px 16px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: all 0.3s ease;
}
.btn-play {
background: #667eea;
color: white;
}
.btn-play:hover {
background: #5a67d8;
transform: scale(1.05);
}
.btn-download {
background: #48bb78;
color: white;
}
.btn-download:hover {
background: #38a169;
transform: scale(1.05);
}
/* Audio player */
.audio-player {
margin-top: 10px;
padding: 10px;
background: #f1f3f5;
border-radius: 8px;
}
.player-controls {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
flex-wrap: wrap;
}
.play-pause-btn, .stop-audio-btn {
background: #667eea;
color: white;
border: none;
border-radius: 50%;
width: 36px;
height: 36px;
font-size: 16px;
cursor: pointer;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
justify-content: center;
}
.play-pause-btn:hover, .stop-audio-btn:hover {
transform: scale(1.05);
background: #5a67d8;
}
.stop-audio-btn {
background: #ff4757;
}
.stop-audio-btn:hover {
background: #e8413e;
}
.current-time, .total-time {
font-family: monospace;
font-size: 12px;
color: #666;
min-width: 40px;
}
.separator {
color: #999;
margin: 0 2px;
}
.timeline-container {
margin-top: 10px;
width: 100%;
}
.timeline {
width: 100%;
height: 4px;
-webkit-appearance: none;
background: #e0e0e0;
border-radius: 2px;
outline: none;
cursor: pointer;
}
.timeline::-webkit-slider-thumb {
-webkit-appearance: none;
width: 12px;
height: 12px;
border-radius: 50%;
background: #667eea;
cursor: pointer;
transition: transform 0.2s ease;
}
.timeline::-webkit-slider-thumb:hover {
transform: scale(1.2);
}
.timeline::-moz-range-thumb {
width: 12px;
height: 12px;
border-radius: 50%;
background: #667eea;
cursor: pointer;
border: none;
}
.timeline::-moz-range-track {
background: #e0e0e0;
height: 4px;
border-radius: 2px;
}
.timeline:focus {
outline: none;
}
/* Live player */
.live-player {
padding: 15px;
background: #f0f3ff;
border-radius: 10px;
margin-bottom: 10px;
}
.volume-control {
margin-top: 15px;
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.volume-control label {
font-weight: bold;
color: #555;
}
.volume-control input {
flex: 1;
max-width: 200px;
}
.live-status {
margin-top: 10px;
padding: 5px 10px;
border-radius: 5px;
font-size: 12px;
text-align: center;
}
.live-status.playing {
background: #2ed573;
color: white;
}
.live-status.stopped {
background: #6c757d;
color: white;
}
.live-status.buffering {
background: #ffa502;
color: white;
}
/* Oscilloscope */
#liveOscilloscope {
width: 100%;
height: 200px;
background: #1a1a2e;
border-radius: 10px;
display: block;
}
/* Info rows */
.info-row {
display: flex;
justify-content: space-between;
padding: 8px 0;
border-bottom: 1px solid #e0e0e0;
}
.info-row:last-child {
border-bottom: none;
}
.info-label {
font-weight: bold;
color: #555;
}
.info-value {
color: #333;
}
.channel-badge {
background: #667eea;
color: white;
padding: 2px 8px;
border-radius: 12px;
font-size: 10px;
margin-left: 10px;
display: inline-block;
}
/* Loading */
.loading {
text-align: center;
padding: 40px;
color: #666;
}
.empty-message {
text-align: center;
padding: 20px;
color: #999;
font-style: italic;
}
/* Quality info */
.quality-info {
background: #e9ecef;
border-radius: 10px;
padding: 15px;
}
.quality-row {
display: flex;
justify-content: space-between;
padding: 8px 0;
border-bottom: 1px solid #dee2e6;
}
.quality-row:last-child {
border-bottom: none;
}
.quality-row strong {
color: #667eea;
font-size: 1.1em;
}
/* FTP and SMB status */
.ftp-status, .smb-status {
margin: 15px 0;
padding: 10px;
border-radius: 8px;
background: #e9ecef;
}
/* Scrollbar */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: #888;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #555;
}
/* Notifications */
.notification {
position: fixed;
bottom: 20px;
right: 20px;
padding: 12px 20px;
border-radius: 10px;
color: white;
z-index: 1000;
animation: slideIn 0.3s ease;
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.notification.success {
background: #2ed573;
}
.notification.error {
background: #ff4757;
}
.notification.warning {
background: #ffa502;
}
.notification.info {
background: #667eea;
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
/* Responsive design */
@media (max-width: 768px) {
body {
padding: 10px;
}
header {
flex-direction: column;
text-align: center;
}
.tabs {
flex-direction: column;
padding: 0;
}
.tab-btn {
text-align: left;
border-bottom: 1px solid #e0e0e0;
}
.recording-item {
flex-direction: column;
align-items: stretch;
}
.recording-select {
margin-bottom: 10px;
justify-content: flex-start;
}
.recording-actions {
margin-top: 10px;
justify-content: center;
margin-left: 0;
}
.button-group {
flex-direction: column;
}
.archive-header {
flex-direction: column;
align-items: stretch;
}
.archive-filters {
flex-direction: column;
}
.status-row {
flex-direction: column;
gap: 5px;
}
.settings-actions {
flex-direction: column;
}
.info-row {
flex-direction: column;
gap: 5px;
}
.player-controls {
justify-content: center;
}
.timeline-container {
width: 100%;
}
.duration-presets {
justify-content: center;
}
.channel-selector {
flex-direction: column;
align-items: stretch;
}
.channel-select {
width: 100%;
}
.batch-actions {
flex-direction: column;
align-items: stretch;
}
.batch-actions .checkbox-label {
justify-content: flex-start;
}
.volume-control {
flex-direction: column;
align-items: stretch;
}
.volume-control input {
max-width: 100%;
}
}
/* Print styles */
@media print {
body {
background: white;
padding: 0;
}
.container {
box-shadow: none;
}
.btn, .tab-btn, .recording-actions, .batch-actions {
display: none;
}
}