Spaces:
No application file
No application file
File size: 4,080 Bytes
8ad412d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: #121212;
color: #e0e0e0;
margin: 0;
padding: 20px;
display: flex;
justify-content: center;
}
.container {
display: flex;
width: 100%;
max-width: 1600px;
gap: 20px;
}
.main-content {
flex: 4;
display: flex;
flex-direction: column;
}
.sidebar {
flex: 1;
background-color: #1e1e1e;
padding: 20px;
border-radius: 8px;
height: fit-content;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
h1 { border-bottom: none; padding-bottom: 0; }
h2, h3 { color: #ffffff; border-bottom: 2px solid #333; padding-bottom: 10px; }
.dashboard-grid {
display: grid;
grid-template-columns: 1.8fr 1.5fr; /* Video area vs Results column */
gap: 20px;
align-items: flex-start;
}
.video-area {
display: flex;
flex-direction: column;
}
.video-wrapper {
width: 100%;
margin-bottom: 10px;
}
#videoPlayer {
background-color: #000;
border-radius: 8px;
}
#statusLabel {
margin-top: 0;
font-style: italic;
color: #f44336;
text-align: center;
min-height: 24px;
}
/* NEW: This column holds the graph and summary */
.results-column {
display: flex;
flex-direction: column;
gap: 20px; /* Adds space between graph and summary */
}
.loader-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
padding: 20px 0;
}
.loader-container p {
font-style: italic;
color: #999;
}
.loader {
border: 5px solid #333; /* Light grey */
border-top: 5px solid #03dac6; /* Teal */
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.chart-container,
.yolo-container,
.summary-container {
background-color: #1e1e1e;
padding: 20px;
border-radius: 8px;
}
/* CHANGED: Removed margin-top from summary container */
.summary-container h3 {
margin-top: 0;
}
#summaryTextLabel {
font-size: 0.95em;
color: #e0e0e0;
min-height: 50px;
white-space: pre-wrap;
word-wrap: break-word;
}
#yoloTextLabel { font-size: 1.2em; font-weight: bold; color: #4CAF50; min-height: 25px; }
#yoloImageFrame { width: 100%; height: auto; border-radius: 4px; background-color: #333; min-height: 150px; margin-top: 10px; }
/* Styles for controls in the sidebar */
.custom-select {
width: 100%;
padding: 12px 15px;
background-color: #3a3a3a;
color: #e0e0e0;
border: 1px solid #bb86fc;
border-radius: 4px;
font-size: 1em;
cursor: pointer;
}
.custom-select:hover { background-color: #4a4a4a; }
.separator { border: none; border-top: 1px solid #333; margin: 20px 0; }
.upload-section { display: flex; flex-direction: column; gap: 10px; }
#videoUpload { color: #e0e0e0; }
#videoUpload::file-selector-button { font-weight: bold; color: #bb86fc; background-color: #3a3a3a; padding: 8px 12px; border: 1px solid #bb86fc; border-radius: 4px; cursor: pointer; transition: background-color 0.2s; }
#videoUpload::file-selector-button:hover { background-color: #4a4a4a; }
#uploadButton { padding: 10px 20px; font-size: 16px; font-weight: bold; color: white; background-color: #03dac6; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.2s; }
#uploadButton:hover { background-color: #018786; }
#resetButton { padding: 10px 20px; font-size: 16px; font-weight: bold; color: white; background-color: #f44336; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.2s; }
#resetButton:hover { background-color: #d32f2f; }
#statusLabel.recording {
color: #f44336; /* Red color */
font-weight: bold;
} |