/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Motion Eye Icon - Always Visible */
.motion-eye-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    opacity: 0.5;
    transition: all 0.3s ease;
    pointer-events: none;
}

.motion-eye-container.active {
    opacity: 1;
}

.motion-eye {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, #f0f0f0 100%);
    border: 3px solid #4fc3f7;
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
    animation: eyePulse 2s ease-in-out infinite;
}

.eye-lid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1e3c72;
    border-radius: 50%;
    transition: height 0.3s ease;
    z-index: 3;
}

.eye-lid.open {
    height: 0%;
}

.eye-iris {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4fc3f7, #2196f3);
    z-index: 2;
    transition: all 0.3s ease;
}

.eye-iris.high-speed {
    background: linear-gradient(45deg, #ffffff, #ffd700);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.iris-diamond {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 2px solid #4fc3f7;
    animation: diamondRotate 3s linear infinite;
}

.iris-diamond.high-speed {
    background: #ffd700;
    border-color: #ffffff;
    animation: diamondRotate 1s linear infinite;
}

.pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #000000;
    border-radius: 50%;
    z-index: 1;
}

.pupil.high-speed {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

/* Lightning Bolts */
.lightning-bolts {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightning-bolts.active {
    opacity: 1;
}

.bolt {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, #4fc3f7, #ffffff);
    border-radius: 1px;
    animation: lightningFlash 0.5s ease-in-out infinite;
}

.bolt-1 { top: 0; left: 50%; transform: translateX(-50%); }
.bolt-2 { top: 25%; right: 0; transform: rotate(45deg); }
.bolt-3 { bottom: 25%; right: 0; transform: rotate(90deg); }
.bolt-4 { bottom: 0; left: 50%; transform: translateX(-50%) rotate(135deg); }
.bolt-5 { bottom: 25%; left: 0; transform: rotate(180deg); }
.bolt-6 { top: 25%; left: 0; transform: rotate(225deg); }
.bolt-7 { top: 0; left: 25%; transform: rotate(270deg); }
.bolt-8 { top: 0; right: 25%; transform: rotate(315deg); }

/* Light Rays */
.light-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.light-rays.active {
    opacity: 1;
}

.ray {
    position: absolute;
    width: 3px;
    height: 30px;
    background: linear-gradient(to bottom, #ffffff, transparent);
    border-radius: 2px;
    animation: rayPulse 1s ease-in-out infinite;
}

.ray-n { top: 0; left: 50%; transform: translateX(-50%); }
.ray-ne { top: 15%; right: 15%; transform: rotate(45deg); }
.ray-e { top: 50%; right: 0; transform: translateY(-50%) rotate(90deg); }
.ray-se { bottom: 15%; right: 15%; transform: rotate(135deg); }
.ray-s { bottom: 0; left: 50%; transform: translateX(-50%) rotate(180deg); }
.ray-sw { bottom: 15%; left: 15%; transform: rotate(225deg); }
.ray-w { top: 50%; left: 0; transform: translateY(-50%) rotate(270deg); }
.ray-nw { top: 15%; left: 15%; transform: rotate(315deg); }

/* Golden Halo */
.golden-halo {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100px;
    height: 100px;
    border: 3px solid #ffd700;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: haloRotate 4s linear infinite;
}

.golden-halo.active {
    opacity: 1;
}

.motion-status {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #4fc3f7;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    min-width: 80px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.motion-status.active {
    opacity: 1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4fc3f7;
}

/* Main Container */
.app-container {
    position: relative;
    min-height: 100vh;
    padding-top: 80px;
}

/* Mountain Background */
.mountain-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.mountain-peak {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 60%;
    background: linear-gradient(45deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    transform: rotate(-5deg);
    left: -50%;
    border-radius: 50% 50% 0 0;
}

.mountain-peak.secondary {
    background: linear-gradient(45deg, #34495e 0%, #2c3e50 50%, #34495e 100%);
    transform: rotate(3deg);
    left: -30%;
    height: 45%;
    z-index: -1;
}

.mountain-peak.tertiary {
    background: linear-gradient(45deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    transform: rotate(-2deg);
    left: -20%;
    height: 35%;
    z-index: -3;
}

.snow-caps {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 20%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.1) 80%, 
        transparent 100%);
    animation: snowShimmer 3s ease-in-out infinite;
}

/* Weather Effects */
.weather-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.snowflakes {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: snowfall 20s linear infinite;
}

.wind-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    animation: windBlow 15s linear infinite;
}

.ice-crystals {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: iceShimmer 4s ease-in-out infinite;
}

/* Dashboard */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.app-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.app-subtitle {
    font-size: 1.2rem;
    color: #b0bec5;
    font-weight: 300;
}

/* Crystalline Motto */
.crystalline-motto {
    margin-top: 2rem;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(79, 195, 247, 0.1) 0%, 
        rgba(33, 150, 243, 0.1) 50%, 
        rgba(79, 195, 247, 0.1) 100%);
    border-radius: 20px;
    border: 1px solid rgba(79, 195, 247, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.crystalline-motto::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(79, 195, 247, 0.1) 50%, 
        transparent 70%);
    animation: crystalShimmer 4s ease-in-out infinite;
    pointer-events: none;
}

.motto-crystal {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: crystalPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(79, 195, 247, 0.5));
}

.motto-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #4fc3f7;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
    line-height: 1.4;
}

.motto-subtext {
    font-size: 1rem;
    color: #b0bec5;
    font-style: italic;
    opacity: 0.8;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.language-dropdown:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #4fc3f7;
}

.language-dropdown:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.3);
}

.language-dropdown option {
    background: #1e3c72;
    color: white;
}

/* Device Panel */
.device-panel {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    text-align: center;
}

.device-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.device-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.device-details {
    text-align: left;
}

.device-type {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4fc3f7;
    margin-bottom: 0.25rem;
}

.device-source {
    font-size: 0.9rem;
    color: #b0bec5;
}

/* Status Panel */
.status-panel {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.status-text {
    font-weight: 500;
}

.gps-status.active {
    animation: pulse 1s infinite;
}

.velocity-status.active {
    animation: pulse 0.5s infinite;
}

/* Metrics Container */
.metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Sprint Metrics Container */
.sprint-metrics-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.sprint-metrics-container h3 {
    color: #4fc3f7;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Orbitron', monospace;
}

.sprint-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.sprint-metric-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sprint-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 195, 247, 0.3);
}

/* Rest Metrics Container */
.rest-metrics-container {
    background: rgba(76, 175, 80, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.3);
    margin-bottom: 2rem;
}

/* Elevation Metrics Container */
.elevation-metrics-container {
    background: rgba(255, 152, 0, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 152, 0, 0.3);
    margin-bottom: 2rem;
}

.elevation-metrics-container h3 {
    color: #ff9800;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Orbitron', monospace;
}

.elevation-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.elevation-metric-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.elevation-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

/* Route Panel */
.route-panel {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.route-panel h3 {
    color: #4fc3f7;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Orbitron', monospace;
}

.route-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.route-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(79, 195, 247, 0.2);
    border: 1px solid rgba(79, 195, 247, 0.5);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.route-btn:hover {
    background: rgba(79, 195, 247, 0.3);
    transform: translateY(-2px);
}

.route-legend {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 4px;
    border-radius: 2px;
}

.legend-color.running {
    background: linear-gradient(90deg, #ffd700, #ff6b6b);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.legend-color.walking {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.legend-color.vehicle {
    background: linear-gradient(90deg, #9e9e9e, #757575);
}

.legend-color.idle {
    background: repeating-linear-gradient(
        45deg,
        #ffffff,
        #ffffff 5px,
        #2196f3 5px,
        #2196f3 10px
    );
}

.route-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.route-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    color: #b0bec5;
    font-size: 0.9rem;
}

.stat-value {
    color: #4fc3f7;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
}

.rest-metrics-container h3 {
    color: #4caf50;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Orbitron', monospace;
}

.rest-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.rest-metric-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rest-metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.metric-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.3);
}

.metric-card.primary {
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(33, 150, 243, 0.2));
    border: 1px solid rgba(79, 195, 247, 0.5);
}

.metric-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.metric-value {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #4fc3f7;
}

.metric-unit {
    font-size: 1rem;
    color: #b0bec5;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: #90a4ae;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Control Panel */
.control-panel {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.control-btn {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 150px;
    justify-content: center;
}

.control-btn.primary {
    background: linear-gradient(135deg, #4fc3f7, #2196f3);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.4);
}

.control-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.6);
}

.control-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.control-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Device Data Panel */
.device-data-panel {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.device-data-panel h3 {
    color: #4fc3f7;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Orbitron', monospace;
}

.device-selector {
    margin-bottom: 2rem;
    text-align: center;
}

.device-selector label {
    display: block;
    margin-bottom: 0.5rem;
    color: #b0bec5;
    font-weight: 500;
}

.device-selector select {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    min-width: 200px;
}

.device-parameters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.parameter-group h4 {
    color: #4fc3f7;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(79, 195, 247, 0.3);
    padding-bottom: 0.5rem;
}

.parameter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.parameter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.param-label {
    color: #b0bec5;
    font-size: 0.9rem;
    font-weight: 500;
}

.param-value {
    color: #4fc3f7;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
}

/* Data Panel */
.data-panel {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.data-panel h3 {
    margin-bottom: 1rem;
    color: #4fc3f7;
}

.data-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.data-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(79, 195, 247, 0.2);
    border: 1px solid rgba(79, 195, 247, 0.5);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.data-btn:hover {
    background: rgba(79, 195, 247, 0.3);
    transform: translateY(-2px);
}

.privacy-notice {
    background: rgba(76, 175, 80, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #4caf50;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(30, 60, 114, 0.95);
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    color: #4fc3f7;
    font-family: 'Orbitron', monospace;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #b0bec5;
    font-weight: 500;
}

.setting-group input,
.setting-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.setting-group input:focus,
.setting-group select:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.3);
}

.scan-btn {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(79, 195, 247, 0.2);
    border: 1px solid rgba(79, 195, 247, 0.5);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.scan-btn:hover {
    background: rgba(79, 195, 247, 0.3);
    transform: translateY(-1px);
}

.scan-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.bluetooth-status.active {
    animation: pulse 1s infinite;
}

.bluetooth-status.connected {
    color: #4caf50;
}

.bluetooth-status.error {
    color: #f44336;
}

.privacy-content h3 {
    color: #4fc3f7;
    margin: 1.5rem 0 1rem 0;
}

.privacy-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    color: #b0bec5;
}

.consent-section {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.consent-section label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.consent-section input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem 0;
    margin-top: 4rem;
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section h4 {
    color: #4fc3f7;
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.footer-section a {
    display: block;
    color: #b0bec5;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4fc3f7;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #90a4ae;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px rgba(79, 195, 247, 0.5); }
    100% { text-shadow: 0 0 30px rgba(79, 195, 247, 0.8); }
}

@keyframes snowfall {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

@keyframes windBlow {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100vw); }
}

@keyframes iceShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes snowShimmer {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

@keyframes crystalPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(79, 195, 247, 0.5));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(79, 195, 247, 0.8));
    }
}

@keyframes crystalShimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Eye Icon Animations */
@keyframes eyePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(79, 195, 247, 0.8);
    }
}

@keyframes diamondRotate {
    0% { transform: translate(-50%, -50%) rotate(45deg); }
    100% { transform: translate(-50%, -50%) rotate(405deg); }
}

@keyframes lightningFlash {
    0%, 100% { 
        opacity: 0;
        transform: scaleY(0);
    }
    50% { 
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes rayPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scaleY(0.5);
    }
    50% { 
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes haloRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes colorShift {
    0% { filter: hue-rotate(0deg); }
    25% { filter: hue-rotate(90deg); }
    50% { filter: hue-rotate(180deg); }
    75% { filter: hue-rotate(270deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
button:focus,
input:focus,
select:focus,
a:focus {
    outline: 2px solid #4fc3f7;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .metric-card {
        border: 2px solid #ffffff;
    }
    
    .status-item {
        border: 1px solid #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-title {
        font-size: 2.5rem;
    }
    
    .metrics-container {
        grid-template-columns: 1fr;
    }
    
    .control-panel {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .status-panel {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .dashboard {
        padding: 1rem;
    }
    
    .metric-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}
