:root {
    --cold-color: #0088ff;
    --hot-color: #ff4500;
    --neutral-color: #8a67d8;
    --background-dark: #06080f;
    --surface-color: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --frost-glow: 0 0 30px rgba(0, 136, 255, 0.6);
    --heat-glow: 0 0 30px rgba(255, 69, 0, 0.6);
    --neutral-glow: 0 0 20px rgba(138, 103, 216, 0.5);
    --frost-gradient: linear-gradient(135deg, #0088ff 0%, #0055ff 100%);
    --heat-gradient: linear-gradient(135deg, #ff4500 0%, #ff8c00 100%);
    --neutral-gradient: linear-gradient(135deg, #8a67d8 0%, #5e35b1 100%);
    --glass-effect: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.15);
    --panel-blur: blur(12px);
}

/* Dark mode variables */
[data-theme="dark"] {
    --primary-color: #53a1ff;
    --primary-dark: #4285f4;
    --secondary-color: #ff4081;
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --border-color: #343a40;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.03em;
}

/* Theme Toggle Switch */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.theme-toggle input {
    display: none;
}

.theme-toggle label {
    cursor: pointer;
    padding: 10px;
    background-color: var(--surface-color);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: var(--transition);
}

.theme-toggle label:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.theme-toggle .fa-moon {
    display: inline-block;
    color: var(--text-secondary);
}

.theme-toggle .fa-sun {
    display: none;
    color: #f39c12;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: inline-block;
}

/* Main app container */
.app-container {
    width: 95%;
    max-width: 800px;
    margin: 60px auto 30px;
    flex: 1;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 40px;
}

.app-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.app-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Converter card styles */
.converter-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    transition: var(--transition);
}

.converter-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.converter-inputs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.input-unit-wrapper {
    flex: 1;
    min-width: 200px;
}

.celsius-wrapper {
    margin-right: 10px;
}

.fahrenheit-wrapper {
    margin-left: 10px;
}

.input-group {
    position: relative;
    margin-bottom: 8px;
}

.unit-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

input[type="number"] {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--surface-color);
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
    outline: none;
}

.unit-badge {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(58, 134, 255, 0.1);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.arrow-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.arrow-icon i {
    transition: var(--transition);
}

.arrow-icon:hover i {
    transform: rotate(180deg);
}

/* History display */
.history-display {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.history-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.history-list {
    list-style: none;
    max-height: 120px;
    overflow-y: auto;
    padding: 0 5px;
}

.history-list li {
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: rgba(58, 134, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    transition: var(--transition);
}

.history-list li:hover {
    background-color: rgba(58, 134, 255, 0.1);
}

/* Formula card styles */
.formula-card {
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.formula-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.formula-header i {
    margin-right: 12px;
    font-size: 1.2rem;
}

.formula-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.formula-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.formula-item {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    background-color: rgba(58, 134, 255, 0.05);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.formula-item:hover {
    background-color: rgba(58, 134, 255, 0.1);
    transform: translateY(-2px);
}

.formula-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.formula-equation {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Footer styles */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 30;
    padding: 15px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.credit-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.github:hover {
    fill: white;
}

.linkedin:hover {
    fill: #0077b5;
}

.instagram:hover {
    fill: #e4405f;
}

/* Media queries */
@media (max-width: 768px) {
    .app-title {
        font-size: 2rem;
    }
    
    .app-subtitle {
        font-size: 1rem;
    }
    
    .converter-inputs {
        flex-direction: column;
    }
    
    .input-unit-wrapper {
        width: 100%;
        margin: 0 0 20px 0;
    }
    
    .arrow-icon {
        transform: rotate(90deg);
        margin: 5px 0;
    }
    
    .fahrenheit-wrapper {
        margin-left: 0;
    }
    
    .celsius-wrapper {
        margin-right: 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.converter-card, .formula-card {
    animation: fadeIn 0.6s ease-out;
}

.celsius-wrapper {
    animation: fadeIn 0.6s ease-out 0.1s forwards;
}

.fahrenheit-wrapper {
    animation: fadeIn 0.6s ease-out 0.2s forwards;
}

.history-display {
    animation: fadeIn 0.6s ease-out 0.3s forwards;
}

.formula-card {
    animation: fadeIn 0.6s ease-out 0.4s forwards;
}

.cosmos-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ambient-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, 
                                      rgba(255, 255, 255, 0.05) 1px, 
                                      transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

.ambient-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(126, 87, 194, 0.15) 0%, transparent 50%);
    z-index: -2;
    transition: background 0.8s ease;
}

/* Orbit System */
.orbit-system {
    position: relative;
    width: 60vh;
    height: 60vh;
    border-radius: 50%;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.sun-object, .ice-object {
    position: absolute;
    border-radius: 50%;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.sun-object {
    width: 12vh;
    height: 12vh;
    background: var(--heat-gradient);
    bottom: 10%;
    right: 10%;
    box-shadow: var(--heat-glow);
    animation: pulse 4s ease-in-out infinite alternate;
}

.ice-object {
    width: 12vh;
    height: 12vh;
    background: var(--frost-gradient);
    top: 10%;
    left: 10%;
    box-shadow: var(--frost-glow);
    animation: pulse 4s ease-in-out infinite alternate-reverse;
}

.temperature-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20vh;
    height: 20vh;
    border-radius: 50%;
    background: var(--neutral-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--neutral-glow);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1), 
                var(--neutral-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.orb-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    z-index: -1;
    animation: orb-pulse 2s ease-out infinite;
}

.temperature-value {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 15px var(--neutral-color);
    letter-spacing: -0.02em;
    z-index: 2;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.connector-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}

/* Interaction Panel */
.interaction-panel {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    backdrop-filter: var(--panel-blur);
    -webkit-backdrop-filter: var(--panel-blur);
    background-color: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.scale-toggle {
    display: flex;
    background: rgba(10, 14, 30, 0.6);
    border-radius: 12px;
    padding: 3px;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(138, 103, 216, 0.2);
    backdrop-filter: blur(8px);
}

.scale-btn {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    z-index: 2;
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.15em;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 60px;
}

.scale-btn.active {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.scale-btn:before {
    content: '';
    display: block;
    position: absolute;
    background: var(--neutral-gradient);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scale-btn.active:before {
    opacity: 1;
}

.scale-btn:hover {
    transform: translateY(-1px);
}

.scale-btn:after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 12px;
    background: linear-gradient(45deg, #8a67d8, transparent, #8a67d8);
    opacity: 0;
    z-index: -2;
    transition: opacity 0.3s ease;
}

.scale-btn.active:after {
    opacity: 0.7;
    animation: borderGlow 3s linear infinite;
}

.temperature-slider-container {
    position: relative;
    padding: 10px 0 30px;
}

.slider-track {
    position: absolute;
    top: 23px;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: var(--neutral-gradient);
    transition: all 0.3s ease;
}

.temperature-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 30px;
    background: transparent;
    outline: none;
    position: relative;
    z-index: 2;
}

.temperature-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    border: 3px solid var(--neutral-color);
    box-shadow: 0 0 10px rgba(126, 87, 194, 0.7);
    transition: all 0.3s ease;
}

.temperature-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
    border: 3px solid var(--neutral-color);
    box-shadow: 0 0 10px rgba(126, 87, 194, 0.7);
    transition: all 0.3s ease;
}

.temperature-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.temp-display {
    font-family: 'Space Mono', 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.celsius {
    color: var(--cold-color);
}

.fahrenheit {
    color: var(--hot-color);
}

.temperature-presets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.preset-btn {
    background: rgba(20, 30, 60, 0.4);
    border: 1px solid rgba(138, 103, 216, 0.3);
    color: var(--text-primary);
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.preset-btn:hover {
    background: rgba(138, 103, 216, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(138, 103, 216, 0.3);
    border-color: rgba(138, 103, 216, 0.6);
}

.preset-btn:active {
    transform: translateY(1px);
}

.preset-btn: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: 0.5s;
}

.preset-btn:hover:before {
    left: 100%;
}

/* Info Overlay */
.info-overlay {
    position: absolute;
    top: 5vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    width: 90%;
    max-width: 600px;
}

.info-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #4f9fff, #ca6afb, #fc6767);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(138, 103, 216, 0.3);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.info-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.08em;
    font-weight: 300;
    text-transform: uppercase;
}

.interactive-fact {
    backdrop-filter: var(--panel-blur);
    -webkit-backdrop-filter: var(--panel-blur);
    background-color: var(--surface-color);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.5s ease;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes orb-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--orb-color-rgb), 0.5);
        transform: translate(-50%, -50%) scale(1);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(var(--orb-color-rgb), 0);
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--orb-color-rgb), 0);
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .orbit-system {
        width: 90vw;
        height: 90vw;
        max-width: 90vw;
        max-height: 90vw;
    }
    
    .temperature-orb {
        width: 30vw;
        height: 30vw;
    }
    
    .sun-object, .ice-object {
        width: 15vw;
        height: 15vw;
    }
    
    .info-content h1 {
        font-size: 2.2rem;
    }
    
    .info-description {
        font-size: 1rem;
    }
    
    .interactive-fact {
        font-size: 0.9rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
}

/* Add this in the CSS file */
.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    pointer-events: none;
    animation: floatAround linear infinite;
}

@keyframes floatAround {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translate(calc(100px - 200px * var(--random-x, 0.5)), 
                           calc(-100px + 50px * var(--random-y, 0.5)));
        opacity: 0;
    }
}

.cosmos-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--background-dark);
}

/* Enhance info panel for better readability */
.info-overlay {
    background: rgba(6, 8, 15, 0.85);
    backdrop-filter: blur(8px);
}

.info-content h1 {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(138, 103, 216, 0.5);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #0088ff, #8a67d8, #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-description {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Enhance interactive elements for better contrast */
.interaction-panel {
    background: rgba(10, 14, 25, 0.85);
    border: 1px solid rgba(138, 103, 216, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.scale-btn {
    background: rgba(10, 14, 25, 0.9);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.scale-btn.active {
    background: var(--neutral-gradient);
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.temperature-slider::-webkit-slider-thumb {
    box-shadow: 0 0 12px rgba(138, 103, 216, 0.6);
}

.preset-btn {
    background: rgba(138, 103, 216, 0.2);
    border: 1px solid rgba(138, 103, 216, 0.3);
    color: var(--text-primary);
    font-weight: 500;
}

.preset-btn:hover {
    background: rgba(138, 103, 216, 0.3);
    border-color: rgba(138, 103, 216, 0.5);
    box-shadow: 0 0 12px rgba(138, 103, 216, 0.2);
}

/* Make particles more visible */
.particle {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Enhance temperature display */
.temp-display {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.interactive-fact span {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    font-style: italic;
    letter-spacing: 0.03em;
    font-weight: 300;
    padding: 8px 16px;
    border-radius: 4px;
    background: rgba(138, 103, 216, 0.1);
    border-left: 2px solid var(--neutral-color);
}

/* Add this for the glow animation */
@keyframes borderGlow {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 400% 0%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Embed Button Styles */
.embed-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--neutral-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(138, 103, 216, 0.5);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 100;
}

.embed-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(138, 103, 216, 0.7);
}

.btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 8, 15, 0.9);
    z-index: 1000;
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, rgba(20, 30, 60, 0.8), rgba(10, 15, 30, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
    backdrop-filter: var(--panel-blur);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 15px 20px;
    background: var(--neutral-gradient);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    font-weight: 400;
}

.modal-body {
    padding: 20px;
}

.code-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    position: relative;
    border: 1px solid rgba(138, 103, 216, 0.3);
}

.code-container pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: #e6e6e6;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 45px;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(138, 103, 216, 0.2);
    border: 1px solid rgba(138, 103, 216, 0.4);
    color: white;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.copy-btn:hover {
    background: rgba(138, 103, 216, 0.4);
}

.embed-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.embed-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
}

.embed-options input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(138, 103, 216, 0.3);
    border-radius: 4px;
    padding: 8px 10px;
    color: white;
    font-family: 'Space Mono', monospace;
    width: 80px;
}

.update-btn {
    background: var(--neutral-gradient);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.update-btn:hover {
    box-shadow: 0 0 10px rgba(138, 103, 216, 0.5);
}

.modal.active {
    display: flex;
}

/* Clean up and refine styles */
.cosmic-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    pointer-events: none;
}

/* Remove any duplicate canvas styles */
.physics-canvas {
    display: none;
}

/* Ensure the temperature orb stands out */
.temperature-orb {
    position: relative;
    z-index: 10;
    box-shadow: 0 0 30px rgba(138, 103, 216, 0.5);
    backdrop-filter: blur(4px);
}

/* Make sure the orbit system is above the background */
.orbit-system {
    position: relative;
    z-index: 5;
}

/* Improve background aesthetics */
body:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(15, 20, 35, 0.4) 0%,
        rgba(6, 8, 15, 0.8) 70%
    );
    z-index: -2;
    pointer-events: none;
}

/* More elegant temperature indicators */
.tooltip {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
}

.tooltip.active {
    opacity: 1;
    transform: scale(1.1);
} 