

@font-face {
  font-family: 'Orbitron';
  src: url('Assets/Orbitron/Orbitron-VariableFont_wght.ttf') format('truetype');
  font-weight: 900;
}

@font-face {
  font-family: 'Exo 2';
  src: url('Assets/Exo_2/Exo2-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 300;
}













/* Base Styles */
:root {
    --primary-color: #0ff; --primary-glow: 0 0 10px #0ff; --secondary-color: #f0f; --secondary-glow: 0 0 10px #f0f;
    --tertiary-color: #ff0; --tertiary-glow: 0 0 10px #ff0; --warning-color: #ff9900; --danger-color: #ff3366;
    --success-color: #33ff99; --background-dark: #121212; --background-medium: rgba(30, 30, 30, 0.8);
    --background-light: radial-gradient(circle at center, #00082a 0%, #000000 100%);; --text-color: #ffffff; --border-radius: 8px; --transition-speed: 0.3s;
}

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

html, body {
    margin: 0; padding: 0; height: 100%; overflow: hidden; font-family: Arial, sans-serif;
    font-size: 16px; color: var(--text-color); background-color: var(--background-dark);
}

h1 { font-size: 2.2rem; color: var(--primary-color); text-shadow: var(--primary-glow);}
h2 { font-size: 1.8rem; color: var(--primary-color); text-shadow: var(--primary-glow);font-family: 'Exo 2', sans-serif; }
h3 { font-size: 1.4rem; color: var(--secondary-color); text-shadow: var(--secondary-glow); }
h4 { font-size: 1.2rem; color: var(--tertiary-color); text-shadow: var(--tertiary-glow); }

/* 2D Background */
.background-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-size: cover;
    background-position: center; z-index: 0; opacity: 0.5;
}

/* Overlay */
.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
    display: flex; flex-direction: column; pointer-events: none;
}

/* Menu Bar */
.menu-bar {
    display: flex; justify-content: space-between; align-items: center; background: var(--background-medium);
    padding: 0.5rem 1rem; border-bottom: 2px solid var(--primary-color); box-shadow: 0 0 10px var(--primary-color);
    pointer-events: auto; height: 50px; z-index: 10;
}

.app-title { font-size: 1.3rem; font-weight: bold; color: var(--primary-color); text-shadow: var(--primary-glow); }
.menu-items { display: flex; gap: 10px; }
.menu-btn {
    background: transparent; border: 1px solid var(--primary-color); color: var(--primary-color);
    padding: 5px 10px; border-radius: var(--border-radius); cursor: pointer; transition: all var(--transition-speed) ease;
    display: flex; align-items: center; gap: 5px;
}
.menu-btn:hover { background: rgba(0, 255, 255, 0.2); box-shadow: 0 0 5px var(--primary-color); }
.menu-btn svg { width: 16px; height: 16px; }

/* Main Content */
.main-content {
    flex: 1; display: flex; overflow: hidden;
}

/* Reaction Container */
.reaction-container {
    width: 35%; height: calc(100vh - 50px); background: var(--background-medium); padding: 1rem;
    display: flex; flex-direction: column; gap: 1rem; overflow-y: auto; pointer-events: auto;
    border-right: 1px solid var(--primary-color); box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}



/* Apparatus Styles */
.apparatus-container { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }
.apparatus {
    position: relative; width: 120px; height: 200px; background: rgba(0, 0, 0, 0.3); border: 2px solid var(--primary-color);
    border-radius: var(--border-radius); overflow: hidden; display: flex; flex-direction: column; align-items: center;
}


.apparatus.beaker {  border: none; box-shadow: 0 0 10px var(--secondary-color);background-color: rgba(0, 0, 0, 0);
 }
.apparatus.flask { border: none; box-shadow: 0 0 10px var(--secondary-color); background-color: rgba(0, 0, 0, 0);
}
.svg-apparatus { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
.apparatus-label { position: absolute; top: -25px; width: 100%; text-align: center; font-size: 0.9rem; color: var(--tertiary-color); }
.liquid {
    position: absolute; bottom: 0; height: 0; transition: height 1s ease, background-color 1s ease; z-index: 0; opacity: 0.8;
    border-radius: 0 0 var(--border-radius) var(--border-radius); box-shadow: inset 0 5px 15px rgba(255, 255, 255, 0.3);
}#beaker1-liquid { left: 0%; width: 100%; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
#beaker2-liquid { left: 0%; width: 100%; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
#flask-liquid { border-radius: 45% 45% 35% 35%; left: 35%; width: 30%; bottom: 33%; height: 0; }
.bubbles { position: absolute; bottom: 0; width: 100%; height: 50%; pointer-events: none; }
.bubble {
    position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.7); animation: bubble-rise linear forwards;
}


.bubble {
    animation: bubble-rise 30s linear forwards; /* Increase '10s' to a higher value, e.g., '15s' */
}



@keyframes bubble-rise {
    0% { transform: translateY(0) scale(1); opacity: 0.7; }
    100% { transform: translateY(-200px) scale(1.5); opacity: 0; }
}


/* Controls */
.controls { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; justify-content: center; }
.control-btn {
    background: var(--background-light); color: var(--primary-color); border: 1px solid var(--primary-color);
    border-radius: var(--border-radius); padding: 0.5rem 1rem; cursor: pointer; transition: all var(--transition-speed) ease;
    display: flex; align-items: center; gap: 5px;
}
.control-btn:hover { background: rgba(0, 255, 255, 0.2); box-shadow: 0 0 10px var(--primary-color); }
.control-btn svg { width: 16px; height: 16px; }
.control-btn.primary { background: rgba(0, 255, 255, 0.2); color: var(--primary-color); border-color: var(--primary-color); }
.control-btn.warning { color: var(--warning-color); border-color: var(--warning-color); }
.control-btn.danger { color: var(--danger-color); border-color: var(--danger-color); }
.control-btn.primary:hover { background: rgba(0, 255, 255, 0.4); box-shadow: 0 0 10px var(--primary-color); }
.control-btn.warning:hover { background: rgba(255, 153, 0, 0.2); box-shadow: 0 0 10px var(--warning-color); }
.control-btn.danger:hover { background: rgba(255, 51, 102, 0.2); box-shadow: 0 0 10px var(--danger-color); }

/* Feedback Area */
.feedback-container { padding: 1rem; background: var(--background-light); border-radius: var(--border-radius); border: 1px solid var(--tertiary-color); }
.feedback { color: var(--tertiary-color); text-align: center; font-size: 1rem; }

/* AI Insights */
.ai-insights { padding: 1rem; background: var(--background-light); border-radius: var(--border-radius); border: 1px solid var(--secondary-color); margin-top: 1rem; }
.ai-insights h3 { display: flex; align-items: center; gap: 8px; }
.loading-indicator { display: flex; align-items: center; gap: 10px; color: var(--primary-color); margin: 1rem 0; }
.spinner { width: 20px; height: 20px; border: 3px solid rgba(0, 255, 255, 0.3); border-radius: 50%; border-top-color: var(--primary-color); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-results { padding: 0.5rem; color: var(--text-color); }
.ai-results p { margin-bottom: 0.5rem; }
.ai-results ul { margin-left: 1.5rem; }
.ai-results .highlight { color: var(--tertiary-color); font-weight: bold; }







/* Graphs Container (continued) */
.graphs-container {
    flex: 1;
    height: calc(100vh - 50px);
    background: var(--background-medium);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    overflow: hidden;
}

.graph-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.graph-tab {
    background: var(--background-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.graph-tab:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 5px var(--primary-color);
}

.graph-tab.active {
    background: rgba(0, 255, 255, 0.3);
    color: var(--text-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.graph-panel {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.graph-group {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.graph-group.active {
    display: flex;
}

.graph {
    width: 100%;
    height: 250px;
}

.custom-graph-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-color);
}

.axis-selector {
    display: flex;
    align-items: center;
    gap: 5px;
}

.axis-selector label {
    color: var(--tertiary-color);
	background: rgba(0, 0, 0, 0.7);
	
}











/* Selector Styles (Refined for Neon Aesthetic) */
.selector-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.selector-container label {
    color: rgba(200, 255, 255, 0.9); /* Neon-style label color */
    min-width: 120px;
}

/* Neon-Style Select and Inputs */
select, input[type="number"] {
    background: rgba(0, 0, 0, 0.9); /* Dark semi-transparent background */
    color: var(--text-color); /* Keeps text color consistent */
    border: 1px solid rgba(125, 249, 255, 0.8); /* Neon border */
    border-radius: var(--border-radius); /* Original border-radius */
    padding: 0.5rem; /* Keeps original padding */
    outline: none;
    transition: all var(--transition-speed) ease;
    text-shadow: 0 0 8px rgba(125, 249, 255, 0.6); /* Neon glow for text */
    font-size: inherit; /* Ensures size consistency */
    cursor: pointer;
}

select:focus, input[type="number"]:focus {
    box-shadow: 0 0 10px rgba(125, 249, 255, 0.9); /* Glow on focus */
    background: rgba(8, 8, 40, 0.95); /* Slightly brighter background */
    color: rgba(200, 255, 255, 1); /* Lighter text */
}

/* Specific Controls for Neon Effect */
.chemical-selector, .concentration-control, .temperature-control {
    width: 90%;
    font-size: 0.8rem;
    z-index: 2;
    background: rgba(8, 8, 40, 0.85); /* Consistent neon background */
    border: 1px solid rgba(125, 249, 255, 0.8); /* Subtle border */
    border-radius: 8px; /* Matches neon styling */
    padding: inherit; /* Retains original padding */
    text-shadow: 0 0 8px rgba(125, 249, 255, 0.3); /* Add glow to text */
}

/* Positioning Maintained */
.chemical-selector {
    position: absolute;
    bottom: 5px;
}

.concentration-control {
    position: absolute;
    bottom: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.temperature-control {
    position: absolute;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.concentration-control label, .temperature-control label {
    color: rgba(200, 255, 255, 0.8); /* Neon glow for labels */
    font-size: 0.7rem;
}

.concentration-control input, .temperature-control input {
    width: 100%;
    text-align: center;
    padding: 2px 5px;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.9); /* Matches neon theme */
    color: rgba(200, 255, 255, 1); /* Bright text */
    border: 1px solid rgba(125, 249, 255, 0.8); /* Consistent border */
}










/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.modal {
    background: var(--background-medium);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 20px var(--primary-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--primary-color);
}

.modal-header h3 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
}

.close-btn:hover {
    color: var(--warning-color);
}

.modal-content {
    padding: 1rem;
}

.settings-group {
    margin-bottom: 1rem;
}

.settings-group h4 {
    margin-bottom: 0.5rem;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.setting-item label {
    color: var(--tertiary-color);
    min-width: 150px;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary-color);
}

.toggle-label {
    margin-left: 5px;
}

.export-options h4 {
    margin-bottom: 0.5rem;
}

.checkbox-group, .radio-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 1rem;
}

.checkbox-item, .radio-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-item input[type="checkbox"], .radio-item input[type="radio"] {
    accent-color: var(--primary-color);
}

.modal-footer {
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--primary-color);
    text-align: right;
}

/* Feedback Classes */
.feedback.info { color: var(--tertiary-color); }
.feedback.success { color: var(--success-color); }
.feedback.warning { color: var(--warning-color); }
.feedback.error { color: var(--danger-color); }









/* Utility Classes */
.hidden { display: none !important; }

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .reaction-container {
        width: 100%;
        height: auto;
        max-height: 50vh;
    }

    .graphs-container {
        width: 100%;
        height: auto;
    }


    .graph {
        height: 200px;
    }

    .modal {
        width: 90%;
    }







}






/* Neon Grid Overlay */
.neon-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(125, 249, 255, 0.05) 1px, transparent 1px),
  linear-gradient(90deg, rgba(125, 249, 255, 0.05) 1px, transparent 1px);
  background-size: 10px 10px; /* Smaller grid */
  pointer-events: none;
  z-index: 10;
  /* Behind the carousel */
}









.demo-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    font-size: 16px; /* Slightly larger for emphasis */
    font-weight: bold; /* Makes it stand out */
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    gap: 8px; /* More space between icon & text */
}
.demo-btn:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 8px var(--primary-color);
    transform: scale(1.05); /* Slight enlargement on hover */
}
