/* body {
    font-family: sans-serif;
    background-color: #eef2f3;
    text-align: center;
    padding-top: 50px;
}
button {
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
} */
/* ==========================================================================
   1. GLOBAL STYLES & VARIABLES
   ========================================================================== */
:root {
    --bg-color: #0f172a;       /* Deep slate dark background */
    --card-bg: #1e293b;        /* Lighter slate for cards */
    --text-main: #f8fafc;      /* Crisp white for headings */
    --text-muted: #94a3b8;     /* Gray for paragraphs */
    --accent: #38bdf8;         /* Tech blue for buttons/links */
    --accent-hover: #0284c7;   /* Darker blue for hover states */
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.6;
    padding: 2rem;
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Common Button Style */
button {
    font-family: var(--font-stack);
    cursor: pointer;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.cta-btn {
    background-color: var(--accent);
    color: #0f172a;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.cta-btn:hover {
    background-color: var(--accent-hover);
}

/* ==========================================================================
   3. THE TOOLS GRID & CARDS
   ========================================================================== */
#Features {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

#Features h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* This creates a 3-column layout that automatically shrinks to 1 column on mobile */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-card {
    background-color: var(--card-bg);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes the button to the bottom */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(56, 189, 248, 0.1); /* Light blue tint */
    border-radius: 8px;
    margin-bottom: 1rem;
    display: inline-block;
}

.tool-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Ensures text blocks take uniform vertical space */
}

.launch-btn {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.6rem 1.2rem;
    width: 100%;
}

.launch-btn:hover {
    background-color: var(--accent);
    color: #0f172a;
}
/* ==========================================================================
   4. NAVIGATION BAR STYLES
   ========================================================================== */
/* Fixes the layout of the navigation at the top of the page */
header {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Brightens and styles the AlgoExplorer logo text */
header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

/* Removes bullet points from the list and aligns items side-by-side */
header ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Brightens the navigation link text and adds a smooth hover transition */
header ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

/* Turns the link to the bright accent color when hovered over */
header ul li a:hover {
    color: var(--accent);
}
/* ==========================================================================
   5. WORKSPACE & APP INTERACTION STYLES
   ========================================================================== */
.workspace-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: #1e293b;
    border: 2px solid var(--accent);
    border-radius: 12px;
}

.workspace-container h2 {
    margin-bottom: 1.5rem;
    color: var(--accent);
}

/* Custom Table Styling for the App Prototype */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: #0f172a;
}

.custom-table th, .custom-table td {
    border: 1px solid #334155;
    padding: 0.75rem;
    text-align: left;
}

.custom-table th {
    background-color: #1e293b;
    color: var(--accent);
}

.config-panel {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.config-input {
    background: #0f172a;
    border: 1px solid #334155;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
}
