ARGONA-PRIME / src /App.css
SmartySmile's picture
Update src/App.css
983e818 verified
Raw History Blame
6.89 kB
.App {
text-align: center;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); /* Tech blue for headsets */
min-height: 100vh;
display: flex;
flex-direction: column;
color: #333;
}
.App-header {
background-color: rgba(40, 44, 52, 0.95);
padding: 20px;
color: white;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.App-header h1 {
margin: 0 0 5px 0;
font-size: 2.5em;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.App-header h2 {
margin: 0 0 10px 0;
font-size: 1.6em;
opacity: 0.9;
}
.App-header p {
margin: 0;
font-size: 1.1em;
opacity: 0.8;
}
.App-main {
flex: 1;
padding: 30px 20px;
max-width: 1200px;
margin: 0 auto;
}
.scan-info {
margin-bottom: 30px;
color: white;
font-size: 1.1em;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
background: rgba(255, 255, 255, 0.1);
padding: 15px;
border-radius: 10px;
backdrop-filter: blur(5px);
}
.senses-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 25px;
margin-bottom: 40px;
}
.sense-card {
background: rgba(255, 255, 255, 0.95);
padding: 25px;
border-radius: 15px;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
transition: transform 0.3s ease, box-shadow 0.3s ease;
backdrop-filter: blur(10px);
}
.sense-card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}
.sense-icon {
font-size: 3.5em;
margin-bottom: 15px;
display: block;
}
.sense-card h3 {
color: #282c34;
margin: 0 0 10px 0;
font-size: 1.4em;
}
.sense-card p {
color: #666;
margin: 0 0 20px 0;
line-height: 1.5;
}
.sense-button {
background: linear-gradient(45deg, #007bff, #0056b3);
color: white;
border: none;
padding: 15px 25px;
border-radius: 10px;
cursor: pointer;
font-size: 16px;
font-weight: bold;
width: 100%;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
position: relative;
overflow: hidden;
}
.sense-button::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s;
}
.sense-button:hover:not(:disabled)::before {
left: 100%;
}
.sense-button:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}
.sense-button:disabled {
background: #6c757d;
cursor: not-allowed;
box-shadow: none;
transform: none;
}
.button-icon {
margin-right: 8px;
font-size: 1.1em;
}
.scanning-status {
display: flex;
align-items: center;
justify-content: center;
gap: 20px;
margin: 30px 0;
padding: 20px;
background: rgba(255, 255, 255, 0.9);
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.loading-spinner {
width: 40px;
height: 40px;
border: 4px solid #f3f3f3;
border-top: 4px solid #007bff;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading-text {
text-align: left;
}
.loading-text p {
margin: 5px 0;
color: #282c34;
font-weight: 500;
}
.loading-text small {
color: #666;
font-style: italic;
}
.error-container {
margin: 20px 0;
text-align: center;
}
.error {
background-color: #f8d7da;
color: #721c24;
padding: 15px;
border-radius: 10px;
border: 1px solid #f5c6cb;
margin-bottom: 15px;
font-size: 1em;
line-height: 1.5;
}
.retry-button {
background-color: #dc3545;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s ease;
}
.retry-button:hover {
background-color: #c82333;
}
.results-container {
margin: 30px auto;
max-width: 600px;
}
.results {
background: rgba(255, 255, 255, 0.95);
padding: 30px;
border-radius: 15px;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
backdrop-filter: blur(10px);
}
.results h3 {
color: #282c34;
margin: 0 0 20px 0;
font-size: 1.8em;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.result-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid #eee;
}
.status-badge {
background: #28a745;
color: white;
padding: 5px 12px;
border-radius: 20px;
font-size: 0.9em;
font-weight: bold;
}
.result-details {
margin-bottom: 25px;
}
.detail-row {
display: flex;
justify-content: space-between;
padding: 8px 0;
border-bottom: 1px solid #eee;
}
.label {
font-weight: bold;
color: #666;
}
.value {
color: #282c34;
font-weight: 500;
}
.sensor-data {
background: #f8f9fa;
padding: 20px;
border-radius: 10px;
margin-bottom: 25px;
text-align: left;
}
.sensor-data h4 {
color: #282c34;
margin: 0 0 15px 0;
text-align: center;
}
.sensor-reading {
display: flex;
justify-content: space-between;
padding: 8px 0;
border-bottom: 1px solid #dee2e6;
}
.sensor-label {
font-weight: bold;
color: #495057;
min-width: 150px;
}
.sensor-value {
color: #007bff;
font-weight: 500;
}
.result-actions {
display: flex;
gap: 10px;
justify-content: center;
}
.clear-button,
.rescan-button {
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 14px;
transition: all 0.3s ease;
font-weight: bold;
}
.clear-button {
background-color: #6c757d;
color: white;
}
.clear-button:hover {
background-color: #5a6268;
}
.rescan-button {
background-color: #007bff;
color: white;
}
.rescan-button:hover {
background-color: #0056b3;
}
.App-footer {
background-color: rgba(40, 44, 52, 0.95);
padding: 20px;
color: white;
text-align: center;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}
.footer-content {
max-width: 800px;
margin: 0 auto;
}
.footer-content p {
margin: 5px 0;
opacity: 0.9;
}
.version {
font-size: 0.9em;
opacity: 0.7;
margin-top: 10px;
}
/* Responsive Design */
@media (max-width: 768px) {
.senses-grid {
grid-template-columns: 1fr;
gap: 20px;
}
.App-header h1 {
font-size: 2em;
}
.App-header h2 {
font-size: 1.3em;
}
.scanning-status {
flex-direction: column;
text-align: center;
gap: 15px;
}
.result-actions {
flex-direction: column;
}
.detail-row,
.sensor-reading {
flex-direction: column;
gap: 5px;
text-align: left;
}
.sensor-label {
min-width: auto;
}
.sense-icon {
font-size: 2.5em;
}
.sense-button {
padding: 12px 20px;
font-size: 14px;
}
}
@media (max-width: 480px) {
.App-main {
padding: 20px 10px;
}
.results {
padding: 20px;
}
.sensor-data {
padding: 15px;
}
}