/* Futuristic Engineering Calculator Styles */

/* CSS Variables for Theme */
:root {
  --primary-color: #1e90ff; /* vivid blue */
  --secondary-color: #00c2cb; /* cyan-teal */
  --accent-color: #ff6b00; /* vibrant orange */
  --light-color: #00ffe7; /* neon aqua */
  --dark-bg: #0b0f1a; /* deep navy black */
  --card-bg: rgba(20, 24, 36, 0.85); /* semi-transparent dark slate */
  --text-primary: #e6f1ff; /* soft white-blue */
  --text-secondary: #a0b3c5; /* muted steel */
  --gradient-primary: linear-gradient(135deg, #1e90ff, #00c2cb);
  --gradient-accent: linear-gradient(135deg, #ff6b00, #ffb347);
  --shadow-neon: 0 0 15px rgba(0, 255, 231, 0.4);
  --transition-speed: 0.3s;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--light-color);
}

/* Dark Theme */
.dark-theme {
  --primary-color: #1e90ff;
  --secondary-color: #00c2cb;
  --accent-color: #ff6b00;
  --light-color: #00ffe7;
  --dark-bg: #0b0f1a;
  --card-bg: rgba(20, 24, 36, 0.85);
  --text-primary: #e6f1ff;
  --text-secondary: #a0b3c5;
  --gradient-primary: linear-gradient(135deg, #1e90ff, #00c2cb);
  --gradient-accent: linear-gradient(135deg, #ff6b00, #ffb347);
  --shadow-neon: 0 0 15px rgba(0, 255, 231, 0.4);
  --transition-speed: 0.3s;
}

/* Light Theme */
.light-theme {
  --primary-color: #0077cc;
  --secondary-color: #00bcd4;
  --accent-color: #ff8c42;
  --light-color: #00e6d8;
  --dark-bg: #f4faff;
  --card-bg: rgba(255, 255, 255, 0.85);
  --text-primary: #0a0a0a;
  --text-secondary: #444c56;
  --gradient-primary: linear-gradient(135deg, #0077cc, #00bcd4);
  --gradient-accent: linear-gradient(135deg, #ff8c42, #ffd280);
  --shadow-neon: 0 0 15px rgba(0, 217, 255, 0.4);
  --transition-speed: 0.3s;
}










/* Futuristic Navbar */
.futuristic-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
     background: rgb(68 209 200 / 46%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(5, 191, 219, 0.3);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
}

.navbar-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
    color: var(--accent-color);
}

.navbar-logo span span {
    color: var(--accent-color);
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
}

.navbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.navbar-item:hover {
    background: rgba(5, 191, 219, 0.1);
    box-shadow: var(--shadow-neon);
}

.navbar-item.active {
    background: rgba(5, 191, 219, 0.2);
    box-shadow: 0 0 10px rgba(5, 191, 219, 0.5);
}

.navbar-item i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--accent-color);
}

.navbar-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-top: 80px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-color);
}

.header-controls {
    display: flex;
    gap: 1rem;
}

.theme-toggle, .menu-toggle {
    background: rgba(5, 191, 219, 0.1);
    border: 1px solid rgba(5, 191, 219, 0.3);
    color: var(--accent-color);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.theme-toggle:hover, .menu-toggle:hover {
    background: rgba(5, 191, 219, 0.2);
    box-shadow: var(--shadow-neon);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    width: 250px;
    height: calc(100vh - 80px);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(5, 191, 219, 0.3);
    padding: 1.5rem 0;
    overflow-y: auto;
    z-index: 100;
    transition: transform var(--transition-speed);
}






/* Sidebar hidden state */
.sidebar.hidden {
  transform: translateX(-100%);
}








.nav-section {
    margin-bottom: 2rem;
}

.nav-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
}

.nav-list {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.nav-item:hover {
    background: rgba(5, 191, 219, 0.1);
    box-shadow: var(--shadow-neon);
}

.nav-item.active {
    background: rgba(5, 191, 219, 0.2);
    box-shadow: 0 0 10px rgba(5, 191, 219, 0.5);
}

.nav-item i {
    margin-right: 0.75rem;
    color: var(--accent-color);
}

/* Main Content */
.main {
    margin-left: 250px;
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.content-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid rgba(5, 191, 219, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-speed);
    z-index: -1;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-neon);
}

.tool-card:hover::before {
    opacity: 0.1;
}

.tool-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.tool-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.tool-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid rgba(5, 191, 219, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(5, 191, 219, 0.2);
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(5, 191, 219, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all var(--transition-speed);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(5, 191, 219, 0.3);
}

.input-group {
    display: flex;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.unit-select {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    background: rgba(5, 191, 219, 0.1);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--dark-bg);
}

.btn-primary:hover {
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(5, 191, 219, 0.1);
    border: 1px solid rgba(5, 191, 219, 0.3);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background: rgba(5, 191, 219, 0.2);
    box-shadow: var(--shadow-neon);
}

/* Tabs */
.tab-container {
    margin-bottom: 2rem;
}

.tab-list {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-item {
    padding: 0.75rem 1.5rem;
    background: rgba(5, 191, 219, 0.1);
    border: 1px solid rgba(5, 191, 219, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed);
    white-space: nowrap;
}

.tab-item:hover {
    background: rgba(5, 191, 219, 0.2);
}

.tab-item.active {
    background: var(--gradient-accent);
    color: var(--dark-bg);
    border-color: transparent;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Formula Display */
.formula-display {
   background: rgb(103 239 123 / 50%);
    border: 1px solid rgba(5, 191, 219, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    color: #420638;
}

/* Result Area */
.result-area {
    background: rgba(5, 191, 219, 0.05);
    border: 1px solid rgba(5, 191, 219, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.result-label {
    color: var(--text-secondary);
}

.result-value {
    font-family: 'Orbitron', sans-serif;
    color: #5e2b0a;
}

/* History */
.history-list {
    list-style: none;
}

.history-list li {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(5, 191, 219, 0.1);
}

.history-controls {
    display: flex;
    gap: 1rem;
}

/* Welcome Page */
.welcome-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding: 0 2rem;
}

.neon-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(5, 191, 219, 0.8);
}

.neon-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.water-drop-button {
    padding: 1rem 2rem;
    background: var(--gradient-accent);
    border: none;
    border-radius: 50px;
    color: var(--dark-bg);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    margin-bottom: 3rem;
}

.water-drop-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-neon);
}

.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.neon-text1 {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-link:hover {
    color: var(--accent-color);
}

/* Graph Container */
.graph-container {
    height: 400px;
    margin-bottom: 2rem;
}

.graph-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Footer */
.futuristic-footer {
    background: rgb(55 156 177 / 60%);
    border-top: 1px solid rgba(5, 191, 219, 0.3);
    padding: 2rem 0;
    margin-top: 20rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
}

.footer-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
    color: var(--accent-color);
}

.footer-logo span span {
    color: var(--accent-color);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-speed);
}

.footer-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-link i {
    font-size: 1.2rem;
}

.footer-info {
    text-align: center;
    color: var(--text-secondary);
}

.footer-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* Reference Table */
.reference-table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.reference-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
}

.reference-table th, .reference-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(5, 191, 219, 0.2);
}

.reference-table th {
    background: rgba(5, 191, 219, 0.1);
    font-family: 'Orbitron', sans-serif;
}

.reference-table tr:hover {
    background: rgba(5, 191, 219, 0.05);
}

/* Data Visualization */
.data-visualization {
    margin-top: 2rem;
    height: 300px;
}

.data-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main {
        margin-left: 0;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .neon-text {
        font-size: 3rem;
    }
    
    .neon-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .neon-text {
        font-size: 2rem;
    }
    
    .neon-subtitle {
        font-size: 1rem;
    }
    
    .water-drop-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}


.light-theme .form-control {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
}

.light-theme .btn-primary {
    color: var(--text-primary);
}

.light-theme .neon-text {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
}

.light-theme .neon-subtitle {
    color: var(--text-secondary);
}

.light-theme .neon-text1 {
    color: var(--text-secondary);
}

.light-theme .footer-link {
    color: var(--text-secondary);
}

.light-theme .footer-link:hover {
    color: var(--accent-color);
}

.light-theme .footer-info {
    color: var(--text-secondary);
}

.light-theme .footer-note {
    color: var(--accent-color);
}

.light-theme .navbar {
    background: rgba(255, 255, 255, 0.8);
}

.light-theme .sidebar {
    background: rgba(255, 255, 255, 0.9);
}

.light-theme .footer {
    background: rgba(255, 255, 255, 0.9);
}