dev-Rachitgarg's picture
make it in the white and purple type of theme
8f81680 verified
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
:root {
--primary: #8b5cf6;
--primary-dark: #7c3aed;
--secondary: #d946ef;
--danger: #ef4444;
--warning: #f59e0b;
--success: #10b981;
--dark: #111827;
--light: #f9fafb;
--muted: #6b7280;
--card-bg: rgba(255, 255, 255, 0.9);
--card-border: rgba(139, 92, 246, 0.3);
}
body {
font-family: 'Poppins', sans-serif;
background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
min-height: 100vh;
color: #111827;
}
.glass-card {
background: var(--card-bg);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 4px 30px 0 rgba(139, 92, 246, 0.1);
transition: all 0.3s ease;
border: 1px solid var(--card-border);
}
.glass-card:hover {
box-shadow: 0 8px 40px 0 rgba(139, 92, 246, 0.2);
transform: translateY(-2px);
}
.led {
width: 24px;
height: 24px;
border-radius: 50%;
position: relative;
transition: all 0.3s ease;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.led-green {
background-color: var(--success);
border: 1px solid #00d494;
}
.led-yellow {
background-color: var(--warning);
border: 1px solid #e69500;
}
.led-red {
background-color: var(--danger);
border: 1px solid #ff2e2e;
}
.led-active-green {
box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}
.led-active-yellow {
box-shadow: 0 0 15px rgba(255, 170, 0, 0.5);
}
.led-active-red {
box-shadow: 0 0 15px rgba(255, 61, 61, 0.5);
}
.led-pulse {
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
}
70% {
box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
}
}
.gauge-wrapper {
position: relative;
text-align: center;
}
.gauge-readout {
margin-top: 1rem;
}
.gauge-value {
font-size: 1.5rem;
font-weight: bold;
font-family: 'Orbitron', sans-serif;
}
.gauge-unit {
font-size: 0.9rem;
color: var(--muted);
}
#eventsList {
max-height: 300px;
overflow-y: auto;
}
#eventsList li {
padding: 0.5rem 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
#eventsList li:first-child {
padding-top: 0;
}
#eventsList li:last-child {
border-bottom: none;
}
#fullscreenAlarm {
transition: all 0.3s ease;
}
/* Responsive adjustments */
@media (max-width: 1024px) {
.glass-card {
padding: 1.5rem;
}
}
@media (max-width: 768px) {
.grid-cols-2 {
grid-template-columns: 1fr;
}
.glass-card {
padding: 1rem;
}
}
/* Custom scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
background: rgba(139, 92, 246, 0.4);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--primary);
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
animation: fadeIn 0.5s ease forwards;
}
/* Glow effects */
.glow-primary {
box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}
.g