/* Cyberpunk StartPage CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    background: #000610;
    color: #00ffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Cyberpunk Background Effects */
.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #000610 0%, #0a0a23 25%, #1a0033 50%, #000610 75%, #0a0a23 100%);
    background-size: 400% 400%;
    animation: cyberpunkBg 20s ease infinite;
}

@keyframes cyberpunkBg {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(0deg, transparent 24%, rgba(0, 255, 255, 0.03) 25%, rgba(0, 255, 255, 0.03) 26%, transparent 27%, transparent 74%, rgba(0, 255, 255, 0.03) 75%, rgba(0, 255, 255, 0.03) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 255, 255, 0.03) 25%, rgba(0, 255, 255, 0.03) 26%, transparent 27%, transparent 74%, rgba(0, 255, 255, 0.03) 75%, rgba(0, 255, 255, 0.03) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
}

.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(0, 255, 255, 0.02) 50%);
    background-size: 100% 4px;
    animation: scanlines 2s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ffff;
    border-radius: 50%;
    animation: float 15s linear infinite;
    box-shadow: 0 0 6px #00ffff;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 30%; animation-delay: 3s; animation-duration: 18s; }
.particle:nth-child(3) { left: 50%; animation-delay: 6s; animation-duration: 15s; }
.particle:nth-child(4) { left: 70%; animation-delay: 9s; animation-duration: 20s; }
.particle:nth-child(5) { left: 90%; animation-delay: 12s; animation-duration: 14s; }

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

.neon-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.circle {
    position: absolute;
    border: 1px solid #00ffff;
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 20%;
    animation-delay: 1.5s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 60%;
    animation-delay: 3s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

/* Cyber Header */
.cyber-header {
    padding: 1rem 2rem;
    background: rgba(0, 20, 40, 0.9);
    border-bottom: 2px solid #00ffff;
    backdrop-filter: blur(10px);
    position: relative;
}

.cyber-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: headerGlow 3s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cyber-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.5rem;
}

.cyber-logo i {
    color: #ff0080;
    text-shadow: 0 0 10px #ff0080;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo-text {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.accent {
    color: #ff0080;
    text-shadow: 0 0 10px #ff0080;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: statusBlink 1.5s ease-in-out infinite;
}

.status-dot.online {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.status-text {
    color: #00ff00;
    font-size: 0.9rem;
    text-shadow: 0 0 5px #00ff00;
}

.time-display {
    text-align: center;
    font-family: 'Orbitron', monospace;
}

.digital-clock {
    font-size: 1.8rem;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
    margin-bottom: 0.25rem;
}

.date-display {
    font-size: 0.9rem;
    color: #ff0080;
    text-shadow: 0 0 8px #ff0080;
}

.system-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    text-align: right;
}

.cpu-temp, .network-status {
    color: #00ffff;
}

.cpu-temp span, .network-status .connected {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.legal-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.legal-link {
    color: rgba(0, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.legal-link:hover {
    color: #ff0080;
    text-shadow: 0 0 10px #ff0080;
}

/* Cyber Container */
.cyber-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.cyber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Cyber Panels */
.cyber-panel {
    background: rgba(0, 20, 40, 0.7);
    border: 1px solid #00ffff;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.cyber-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: borderScan 3s linear infinite;
}

@keyframes borderScan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.panel-header {
    background: rgba(0, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #00ffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
}

.panel-title {
    color: #00ffff;
    font-size: 0.9rem;
    text-shadow: 0 0 8px #00ffff;
    letter-spacing: 1px;
}

.panel-controls {
    display: flex;
    gap: 0.25rem;
}

.control-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ffff;
    box-shadow: 0 0 4px #00ffff;
    animation: controlPulse 2s ease-in-out infinite;
}

.control-dot:nth-child(2) { animation-delay: 0.3s; }
.control-dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes controlPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Search Panel */
.search-panel {
    margin-bottom: 2rem;
}

.search-interface {
    padding: 1.5rem;
}

.search-input-container {
    position: relative;
    margin-bottom: 1rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #00ffff;
    z-index: 2;
}

#search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00ffff;
    border-radius: 25px;
    padding: 1rem 1rem 1rem 3rem;
    color: #00ffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

#search-input::placeholder {
    color: rgba(0, 255, 255, 0.5);
}

#search-input:focus {
    outline: none;
    border-color: #ff0080;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    background: linear-gradient(45deg, #00ffff, #ff0080);
    opacity: 0;
    z-index: -1;
    filter: blur(10px);
    transition: opacity 0.3s ease;
}

#search-input:focus + .input-glow {
    opacity: 0.3;
}

.search-engines {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.engine-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 20, 40, 0.8);
    border: 1px solid #00ffff;
    border-radius: 20px;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
}

.engine-chip:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.engine-chip.active {
    background: rgba(255, 0, 128, 0.2);
    border-color: #ff0080;
    color: #ff0080;
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.4);
}

.engine-chip i {
    font-size: 1rem;
}

/* Neural Links */
.neural-links {
    grid-column: span 1;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.neural-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.neural-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.neural-link:hover::before {
    left: 100%;
}

.neural-link:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-3px);
}

.link-icon {
    font-size: 1.5rem;
    color: #ff0080;
    text-shadow: 0 0 10px #ff0080;
    transition: all 0.3s ease;
}

.neural-link:hover .link-icon {
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
    transform: scale(1.1);
}

.link-name {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.link-status {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.7rem;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator.active::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 8px #00ff00;
    animation: statusBlink 1.5s ease-in-out infinite;
}

/* Data Stream (News) */
.data-stream {
    grid-column: span 1;
}

.stream-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stream-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff0080;
    box-shadow: 0 0 8px #ff0080;
    animation: streamPulse 1s ease-in-out infinite;
}

@keyframes streamPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.stream-text {
    color: #ff0080;
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 0 0 5px #ff0080;
}

.stream-content {
    padding: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

.stream-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    color: rgba(0, 255, 255, 0.6);
    font-family: 'Rajdhani', sans-serif;
}

.loading-bar {
    width: 100px;
    height: 3px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: loading 2s linear infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

.news-item {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-image-container {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    background: rgba(0, 20, 40, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image {
    transform: scale(1.05);
}

.news-placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 128, 0.1));
    border: 1px dashed rgba(0, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.news-placeholder-image::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #ff0080, #00ffff);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.news-item:hover::before {
    transform: scaleY(1);
}

.news-item:hover {
    background: rgba(0, 255, 255, 0.05);
    border-color: #00ffff;
    transform: translateX(5px);
}

.news-title {
    color: #00ffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.4;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 0, 128, 0.7);
    font-size: 0.8rem;
    font-family: 'Rajdhani', sans-serif;
}

/* System Monitor */
.system-monitor {
    grid-column: span 1;
}

.monitor-controls {
    display: flex;
    align-items: center;
}

.control-btn {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    border-radius: 12px;
    color: #00ffff;
    font-size: 0.7rem;
    font-weight: 600;
    text-shadow: 0 0 5px #00ffff;
}

.monitor-content {
    padding: 1rem;
}

.metric-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-family: 'Rajdhani', sans-serif;
}

.metric-label {
    color: #00ffff;
    width: 80px;
    font-size: 0.9rem;
    font-weight: 600;
}

.metric-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #ff0080);
    transition: width 0.5s ease;
    position: relative;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: barShine 2s linear infinite;
}

@keyframes barShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.metric-value {
    color: #00ff00;
    font-weight: 600;
    text-shadow: 0 0 5px #00ff00;
    width: 50px;
    text-align: right;
}

.system-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    color: rgba(0, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-value {
    color: #00ff00;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 8px #00ff00;
    font-family: 'Orbitron', monospace;
}

/* Weather Terminal */
.weather-terminal {
    background: rgba(0, 20, 40, 0.7);
    border: 1px solid #00ffff;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.terminal-header-mini {
    background: rgba(0, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: #00ffff;
}

.terminal-prompt {
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.weather-ascii {
    padding: 1rem;
    font-family: 'Rajdhani', sans-serif;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.weather-icon-ascii {
    color: #ff0080;
    text-shadow: 0 0 10px #ff0080;
}

#weather-ascii-art {
    font-size: 0.8rem;
    line-height: 1.2;
    font-family: 'Orbitron', monospace;
}

.weather-info .temp {
    font-size: 1.8rem;
    color: #00ffff;
    font-weight: 700;
    text-shadow: 0 0 15px #00ffff;
    font-family: 'Orbitron', monospace;
}

.weather-info .desc {
    color: #00ff00;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 0 0 8px #00ff00;
}

.weather-info .location {
    color: rgba(0, 255, 255, 0.7);
    font-size: 0.9rem;
}

.weather-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    color: rgba(0, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.detail-row span:last-child {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

/* Developer Tools */
.dev-tools {
    background: rgba(0, 20, 40, 0.7);
    border: 1px solid #00ffff;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
}

.tool-cmd {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-cmd::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 128, 0.1), transparent);
    transition: left 0.5s ease;
}

.tool-cmd:hover::before {
    left: 100%;
}

.tool-cmd:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #ff0080;
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.3);
    transform: translateY(-2px);
}

.tool-cmd i {
    font-size: 1.3rem;
    color: #ff0080;
    text-shadow: 0 0 8px #ff0080;
    transition: all 0.3s ease;
}

.tool-cmd:hover i {
    color: #00ffff;
    text-shadow: 0 0 12px #00ffff;
    transform: scale(1.1);
}

.tool-cmd span {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

/* System Log */
.system-log {
    background: rgba(0, 20, 40, 0.7);
    border: 1px solid #00ffff;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.log-output {
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
}

.log-entry {
    margin-bottom: 0.5rem;
    color: rgba(0, 255, 255, 0.7);
    padding: 0.25rem;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.log-entry:hover {
    background: rgba(0, 255, 255, 0.05);
    border-left-color: #00ffff;
}

.log-timestamp {
    color: #ff0080;
    text-shadow: 0 0 5px #ff0080;
}

.log-level-info { 
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}
.log-level-warn { 
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
}
.log-level-error { 
    color: #ff0000;
    text-shadow: 0 0 5px #ff0000;
}

/* Command Modal */
.command-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.command-modal.show {
    display: flex;
}

.modal-terminal {
    background: rgba(0, 20, 40, 0.9);
    border: 2px solid #00ffff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    position: relative;
}

.modal-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff0080, transparent);
    animation: borderScanModal 3s linear infinite;
}

@keyframes borderScanModal {
    0% { left: -100%; }
    100% { left: 100%; }
}

.close-modal {
    background: none;
    border: none;
    color: #ff0080;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #00ffff;
    background: rgba(255, 0, 128, 0.1);
    text-shadow: 0 0 10px #00ffff;
    transform: rotate(90deg);
}

.modal-content {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    color: #00ffff;
    font-family: 'Rajdhani', sans-serif;
}

.modal-content textarea,
.modal-content input[type="text"],
.modal-content input[type="color"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ffff;
    border-radius: 4px;
    padding: 0.75rem;
    color: #00ffff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.modal-content textarea:focus,
.modal-content input[type="text"]:focus {
    outline: none;
    border-color: #ff0080;
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.3);
}

.modal-content textarea::placeholder,
.modal-content input[type="text"]::placeholder {
    color: rgba(0, 255, 255, 0.5);
}

.modal-content button {
    background: rgba(255, 0, 128, 0.2);
    border: 1px solid #ff0080;
    border-radius: 4px;
    color: #ff0080;
    padding: 0.75rem 1.5rem;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-content button:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.modal-content input[type="color"] {
    height: 50px;
    cursor: pointer;
}

.modal-content input[type="color"]::-webkit-color-swatch {
    border: 1px solid #00ffff;
    border-radius: 4px;
}

.modal-content input[type="color"]::-webkit-color-swatch:hover {
    border-color: #ff0080;
}

.result-output {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #00ffff;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    word-break: break-all;
    display: none;
}

.color-info {
    color: #00ffff;
    font-family: 'Rajdhani', sans-serif;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.color-preview {
    width: 100%;
    height: 50px;
    border-radius: 4px;
    margin-top: 1rem;
    display: none;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.tool-placeholder {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 0, 128, 0.7);
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cyber-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .cyber-container {
        padding: 1rem;
    }
    
    .cyber-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-container > * {
        flex: none;
    }
    
    .weather-main {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-engines {
        flex-wrap: wrap;
    }
    
    .links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .neural-link {
        padding: 0.75rem 0.5rem;
    }
    
    .link-name {
        font-size: 0.7rem;
    }
    
    .cyber-logo {
        font-size: 1.2rem;
    }
    
    .digital-clock {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .search-engines {
        flex-direction: column;
    }
    
    .engine-chip {
        justify-content: center;
    }
    
    .system-stats {
        grid-template-columns: 1fr;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffff, #ff0080);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff0080, #00ffff);
}

/* Privacy and Terms Pages */
.policy-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.policy-header h1 {
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    text-shadow: 0 0 15px #00ffff;
    margin-bottom: 0.5rem;
}

.policy-header h2 {
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    text-shadow: 0 0 10px #00ffff;
    margin-bottom: 0.5rem;
}

.policy-date {
    color: #ff0080;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    text-shadow: 0 0 8px #ff0080;
}

.policy-toc {
    background: rgba(0, 20, 40, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.policy-toc h3 {
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    margin-bottom: 1rem;
    text-shadow: 0 0 8px #00ffff;
}

.policy-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-toc li {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.policy-toc li:hover {
    border-left: 2px solid #00ffff;
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(5px);
}

.policy-toc a {
    color: #a0f0f0;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.policy-toc a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.privacy-content, .terms-content {
    color: #a0f0f0;
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.6;
}

.privacy-content p, .terms-content p {
    margin-bottom: 1rem;
}

.privacy-content h3, .terms-content h3 {
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    margin: 1.5rem 0 1rem 0;
    text-shadow: 0 0 8px #00ffff;
}

.policy-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-left: 2px solid rgba(0, 255, 255, 0.3);
    background: rgba(0, 20, 40, 0.2);
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.policy-section:hover {
    background: rgba(0, 20, 40, 0.3);
    border-left: 2px solid #00ffff;
}

.section-title {
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 8px #00ffff;
}

.privacy-content a, .terms-content a {
    color: #ff0080;
    text-decoration: none;
    transition: all 0.3s ease;
}

.privacy-content a:hover, .terms-content a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    text-decoration: underline;
}

.privacy-content ul, .terms-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.privacy-content li, .terms-content li {
    margin-bottom: 0.5rem;
}

.navigation-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 20, 40, 0.7);
    border: 1px solid #00ffff;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.navigation-footer:hover {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.page-navigation .engine-chip {
    background: rgba(255, 0, 128, 0.2);
    border-color: #ff0080;
    color: #ff0080;
}

.page-navigation .engine-chip:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    color: #00ffff;
}

.mm {
    color: #ff0080;
    font-weight: 600;
}

/* Back to Top Button */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 20, 40, 0.9);
    border: 1px solid #00ffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.back-to-top:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #ff0080;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.back-to-top i {
    color: #00ffff;
    font-size: 1.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.back-to-top:hover i {
    color: #ff0080;
    text-shadow: 0 0 10px #ff0080;
}

/* Selection */
::selection {
    background: rgba(0, 255, 255, 0.3);
    color: #ffffff;
}

/* Print Styles */
@media print {
    .cyber-bg, .cyber-header, .navigation-footer, .back-to-top {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .cyber-container {
        max-width: 100%;
        padding: 0;
    }
    
    .cyber-panel {
        border: 1px solid #ccc;
        box-shadow: none;
        background: white;
    }
    
    .policy-header h1, .section-title {
        color: black;
        text-shadow: none;
    }
    
    .policy-toc, .policy-section {
        border: none;
        background: white;
        box-shadow: none;
    }
    
    a {
        color: #0066cc;
        text-decoration: underline;
    }
    
    .mm {
        color: #cc0000;
        font-weight: bold;
    }
}