:root {
    /* Color Palette Variables */
    --bg-color: #f0f2f5;
    --text-color: #333333;
    --card-bg: #ffffff;
    --primary-color: #6200ea;
    --primary-hover: #3700b3;
    --primary-gradient: linear-gradient(135deg, #6200ea 0%, #b388ff 100%);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    --input-bg: #ffffff;
    --text-secondary-color: #777;
    --input-border: transparent;
}

/* Dark Mode Variables */
body.dark-mode {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    --input-bg: #2d2d2d;
    --input-border: transparent;
    --text-secondary-color: #999;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    height: 100vh; /* Fixed height for the app window */
    display: flex; /* Use flexbox to stack navbar and content */
    flex-direction: column;
    overflow: hidden; /* Prevent the whole app from scrolling */
    background-image: radial-gradient(circle at 10% 20%, rgba(98, 0, 234, 0.05) 0%, transparent 40%);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar {
    background-color: var(--card-bg);
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    justify-content: center;
    flex-shrink: 0; /* Prevent navbar from shrinking */
}

.container {
    text-align: center;
    max-width: 500px;
    width: 100%;
    padding: 20px;
    margin: 0 auto; 
    flex-grow: 1; /* Allow container to fill space */
    overflow-y: auto; /* Allow scrolling within the dashboard */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    /* 1. Provide a fallback color for browsers that don't support the effect */
    color: var(--primary-color);
}

/* 2. Conditionally apply the gradient only to browsers that support it */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  h1 {
    background: linear-gradient(45deg, #6200ea, #b388ff);
    -webkit-background-clip: text;
    background-clip: text; /* The standard property */
    -webkit-text-fill-color: transparent; /* For WebKit browsers */
    color: transparent; /* For standard-compliant browsers */
  }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary-color);
    margin-bottom: 2rem;
}

.card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 800px; /* Wider search bar for the top */
}

.search-input {
    width: 100%;
    padding: 16px 24px;
    margin-bottom: 0;
    background-color: var(--input-bg);
    border: 2px solid var(--input-border);
    color: var(--text-color);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(98, 0, 234, 0.1);
}

.btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 20px rgba(98, 0, 234, 0.2);
}

.search-btn {
    margin-top: 0;
    white-space: nowrap;
    padding: 16px 24px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(98, 0, 234, 0.3);
}

.clock {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-secondary-color);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.feature-item {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.feature-item h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.no-results {
    text-align: center;
    color: var(--text-secondary-color);
    margin-top: 1rem;
    font-style: italic;
}
