/* This targets every single element to ensure nothing stays black */

*, body, html, .container, .content {
    color: #ffffff !important; 
}
/* 1. Design Tokens - High Contrast & Modern */
:root {
    /* Rich Dark Backgrounds */
    --bg-gradient: linear-gradient(135deg, #020617 0%, #0f172a 100%);
    --glass-bg: rgba(30, 41, 59, 0.5); /* Slightly darker glass for better text contrast */
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Text Colors - Optimized for Dark Mode */
    --text-primary: #ffffff;   /* Almost white - for headings/main text */
    --text-secondary: #cbd5e1; /* Light gray - for paragraphs */
    --text-muted: #94a3b8;    /* Medium gray - for labels/hints */
    
    /* Accents */
    --accent-glow: #818cf8;
    --positive: #4ade80;
    --negative: #fb7185;
    --radius: 16px;
}

/* 2. Global Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary); /* Ensures all base text is white */
    line-height: 1.6;
}

/* 3. Containers */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content {
    margin: 40px auto;
    max-width: 750px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Ensure any paragraphs inside content are visible but softer than headings */
.content p {
    color: var(--text-secondary);
}

/* 4. Navigation Links */
nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

nav a:hover {
    color: var(--accent-glow);
    text-shadow: 0 0 8px rgba(129, 140, 248, 0.5);
}

/* 5. Elegant Dark Tables */

/* This section specifically targets the table text visibility */
table, td, th {
    border: 1px solid rgba(255, 255, 255, 0.2); /* Lightened border to match white text */
    color: #ffffff !important; /* Forces text to pure white */
}

table {
    border-collapse: collapse;
    width: 100%;
    text-align: left; /* Modern standard is left-aligned for lists */
}

th {
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle header background */
    color: #ffffff !important;
}

td {
    padding: 12px 15px;
    color: #ffffff !important;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary); /* Brighten text on hover */
}

/* 6. Form Styling (Fixing the black text issue) */
.form {
    margin-top: 2rem;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    background: rgba(15, 23, 42, 0.6); /* Darker input background */
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #ffffff !important; /* Forces text to be white */
    font-size: 1rem;
}

input::placeholder {
    color: var(--text-muted);
}

input:focus {
    outline: none;
    border-color: var(--accent-glow);
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2);
}

/* 7. Utility Classes */
.positive-change {
    color: #4ade80 !important;
    font-weight: 600;
}

.negative-change { 
    color: #fb7185 !important;
    font-weight: 600;
}

/* Makes headings stand out */
h1, h2, h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}


.star-rating {
    direction: ltr;
    display: inline-flex;
    font-size: 22px;
    cursor: pointer;
}

.star {
    padding: 0 2px;
    color: #ccc;
    transition: color 0.2s;
}

.star.hovered,
.star.selected {
    color: gold;
}

.reaction {
    cursor: pointer;
    font-size: 22px;
    margin-right: 6px;
    user-select: none;
    transition: transform 0.2s;
}

.reaction:hover {
    transform: scale(1.3);
}

#load-more {
    cursor: pointer;
}


/* Hover effect */
button:hover,
.btn:hover {
    background-color: #e6e6e6;
}


button {
	cursor: pointer;
    color: #B22222 !important;
    background-color: transparent !important; /* Removes white backgrounds globally */
    background-image: none !important;      /* Removes default gradients */
}