/* --- Global Theme --- */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0b0f19; /* A deep navy fallback instead of pure black */
    background-image: url("../img/pexels-stein-egil-liland-3374210.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main{
	flex: 1;
}

/* --- Table Glassmorphism & Readability --- */
.tutorial-table {
    background-color: rgba(0, 0, 0, 0.4); /* Darker base for contrast */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 170, 255, 0.2);
    border-radius: 10px;
    overflow: hidden; /* Keeps corners rounded */
    margin-bottom: 2rem;
}

.tutorial-table th {
    background-color: rgba(0, 170, 255, 0.2);
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    padding: 15px;
}

.tutorial-table td {
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Courier New', Courier, monospace; /* Better for hex/dec codes */
}

/* Zebra striping for tracking long rows */
.tutorial-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}

.tutorial-table tr:hover {
    background-color: rgba(0, 212, 255, 0.1);
    transition: background 0.2s ease;
}

.warning-highlight {
    background-color: #440000;
    color: #ff0000;
    padding: 0 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* Navigation link hover effects */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    margin: 0 5px;
}

.navbar-nav .nav-link:hover {
    color: #00d4ff !important; 
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Optional: Animated underline on hover */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #00d4ff;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Update the glass panel to be slightly more opaque for "no-image" mode */
.glass-panel {
    background-color: rgba(0, 119, 221, 0.15); /* Slightly thicker blue */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
}

/* Glassmorphism for Nav and Footer */
.glass-nav {
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Support for Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-footer {
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 4rem 0; /* Increased from 3rem to 4rem */
    margin-top: 6rem; /* Push it down a bit further from the content */
    width: 100%;
}

/* --- Animations --- */
.fade-in {
    animation: fadeIn 1.2s ease-in;
}

.slide-in-left {
    animation: slideFromLeft 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Utilities --- */
.codeblock {
    font-family: 'Courier New', Courier, monospace;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #1b6ec2;
}