:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --positive: #10b981;
    --negative: #ef4444;
    --neutral: #f59e0b;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
    color: var(--text-primary);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

nav {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
    margin-bottom: 20px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

nav a:hover, nav a.active {
    color: var(--text-primary);
    background: var(--card-bg);
}

.container {
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 700px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-2px);
}

.dashboard-container {
    max-width: 1200px;
}

h1 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 2.5em;
    font-weight: 700;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-secondary);
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1em;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

button {
    background: linear-gradient(135deg, var(--accent), #2563eb);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: auto;
    min-width: 200px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.prediction-result {
    margin-top: 35px;
    padding: 25px;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.prediction-result h2 {
    color: var(--text-primary);
    margin-top: 0;
    font-size: 1.4em;
    font-weight: 600;
}

.prediction-result p {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 0;
}

/* Dashboard specific styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.dashboard-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.dashboard-card h3 {
    margin-top: 0;
    color: var(--text-primary);
    font-size: 1.2em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.metrics-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.metric-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.metric-value {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9em;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.insights-list {
    text-align: left;
    padding-left: 20px;
    color: var(--text-secondary);
}

.insights-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Table styles for dataset */
.table-container {
    margin-top: 30px;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg);
}

th, td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

tr:last-child td {
    border-bottom: none;
}

.sentiment-positive {
    color: var(--positive);
    font-weight: 600;
}

.sentiment-negative {
    color: var(--negative);
    font-weight: 600;
}

.sentiment-neutral {
    color: var(--neutral);
    font-weight: 600;
}