* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000814;
    --secondary-color: #001233;
    --accent-color: #0466c8;
    --accent-hover: #0353a4;
    --metallic-light: #5390d9;
    --metallic-dark: #124fbf;
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --border-radius: 12px;
    --glass-background: rgba(0, 18, 51, 0.65);
    --glass-border: rgba(83, 144, 217, 0.15);
    --glass-shine: rgba(255, 255, 255, 0.05);
    --shadow-color: rgba(4, 102, 200, 0.2);
}

.navbar {
    background: linear-gradient(to right, var(--secondary-color), var(--metallic-dark));
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 40px;
    height: 40px;
}

.navbar .logo h1 {
    font-size: 1.5rem;
    color: white;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: background-color 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
    background-color: var(--accent-color);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--metallic-dark));
    color: white;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ff6b35, #f7931e, #ff006e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: #b0b0b0;
    margin-bottom: 30px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.card .parameter-group .asteroid-select{
    font-size: 1rem;
    font-weight: bold;
    padding: 2rem 0;
}
.card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.asteroid-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.asteroid-btn {
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.75rem;
    font-weight: 600;
}

.asteroid-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.asteroid-btn.active {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    transform: scale(1.05);
}

.asteroid-btn .emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 5px;
}

.slider-group {
    margin-bottom: 25px;
}

.slider-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.slider-group .simulator-container .parameter-group{
    /border: 1px solid red;
    padding: 1.5rem 0;
}
.slider-group .simulator-container .parameter-group label{
    font-size: 1rem;
}
.slider-group .simulator-container .parameter-group ul{
    list-style: none;
    color: rgb(7, 210, 241);
}
.slider-group .simulator-container .parameter-group span{
    color: rgb(8, 237, 8);
}

.slider-group label span{
    color: rgb(8, 237, 8);
}
input[type="range"] {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
}

.launch-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.launch-btn.active {
    background: linear-gradient(135deg, #dc2626, #ea580c);
    color: white;
}

.launch-btn.active:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.5);
}

.launch-btn.disabled {
    background: #666;
    color: #aaa;
    cursor: not-allowed;
}

#map {
    height: 500px;
    width: 100%;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

.location-status {
    text-align: center;
    font-size: 0.875rem;
    color: #4ade80;
    margin-top: 10px;
}

.effects-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.effect-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.effect-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.effect-btn.active {
    transform: scale(1.05);
}

.effect-card {
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.effect-header {
    text-align: center;
    margin-bottom: 20px;
}

.effect-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

.effect-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.effect-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
}

.stats-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.875rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.reset-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.reset-btn:hover {
    background: linear-gradient(135deg, #6d28d9, #1d4ed8);
}

.footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.875rem;
    color: #888;
}

.footer p {
    margin: 5px 0;
}

.hidden {
    display: none;
}

.defense-section {
    margin-top: 20px;
}

.defense-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .defense-grid {
        grid-template-columns: 1fr;
    }
}

.defense-card {
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.defense-card:hover {
    border-color: rgba(59, 130, 246, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.defense-card.selected {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.defense-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.defense-icon {
    font-size: 3rem;
}

.defense-title {
    flex: 1;
}

.defense-title h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
    color: #60a5fa;
}

.defense-title p {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0;
}

.defense-description {
    font-size: 0.875rem;
    color: #cbd5e1;
    margin-bottom: 15px;
    line-height: 1.5;
}

.defense-controls {
    margin-top: 15px;
}

.control-item {
    margin-bottom: 15px;
}

.control-item label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 5px;
    font-weight: 600;
}

.defense-stats {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 0.75rem;
}

.stat-badge.success {
    color: #4ade80;
}

.stat-badge.warning {
    color: #fbbf24;
}

.stat-badge.danger {
    color: #f87171;
}

.simulate-defense-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    margin-top: 20px;
}

.simulate-defense-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
}

.simulate-defense-btn:disabled {
    background: #666;
    cursor: not-allowed;
}

.simulation-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.simulation-result.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(22, 163, 74, 0.2));
    border: 2px solid #22c55e;
}

.simulation-result.failure {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    border: 2px solid #ef4444;
}

.simulation-result h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.simulation-result ul {
    margin: 10px 0;
    padding-left: 20px;
}

.simulation-result li {
    margin: 8px 0;
}

.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    font-size: 0.875rem;
    color: #60a5fa;
    margin-top: 10px;
}

.api-info {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.875rem;
}