
:root {
    --primary: #1a1a1a;
    --accent: #555555;
    --bg-main: #ffffff;
    --bg-sec: #f9f9f9;
    --border: #e0e0e0;
    --text-main: #333333;
    --text-light: #666666;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: var(--text-main); line-height: 1.6; background: var(--bg-main); overflow-x: hidden; }
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; color: var(--primary); }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* Navigation */
.navbar { background: var(--bg-main); border-bottom: 1px solid var(--border); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; }
.nav-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-main); text-decoration: none; font-size: 0.95rem; transition: opacity 0.3s; }
.nav-links a:hover { opacity: 0.7; }
.btn-small { border: 1px solid var(--primary); padding: 0.4rem 1rem; border-radius: 20px; font-weight: 600; }
.btn-small:hover { background: var(--primary); color: #fff !important; }

/* Hero Section */
.hero { padding: 5rem 0; background: var(--bg-main); }
.hero-container { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; justify-content: center; text-align: center; }
.profile-img { width: 250px; height: 250px; border-radius: 50%; object-fit: cover; filter: grayscale(100%) contrast(110%); border: 8px solid var(--bg-sec); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.hero-text { max-width: 600px; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero-sub { font-size: 1.2rem; color: var(--text-light); }

@media (min-width: 768px) {
    .hero-container { flex-wrap: nowrap; text-align: left; justify-content: flex-start; }
}

/* Sections */
.section { padding: 5rem 1.5rem; }
.bg-light { background: var(--bg-sec); }
h2 { font-size: 2.2rem; margin-bottom: 2rem; position: relative; display: inline-block; }
h2::after { content: ''; display: block; width: 50%; height: 2px; background: var(--primary); margin-top: 0.5rem; }

/* Timeline */
.timeline { position: relative; border-left: 2px solid var(--border); padding-left: 2rem; margin-left: 1rem; }
.time-item { margin-bottom: 2.5rem; position: relative; }
.time-dot { position: absolute; left: -2.35rem; top: 0.3rem; width: 12px; height: 12px; background: var(--primary); border-radius: 50%; }
.time-item strong { font-size: 1.1rem; color: var(--primary); }

/* Research Grid */
.research-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width: 768px) { .research-grid { grid-template-columns: 1fr 1fr; } }
.research-card { background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); border: 1px solid var(--border); }
.papers-list { list-style: none; }
.papers-list li { margin-bottom: 1rem; padding-left: 1.5rem; position: relative; }
.papers-list li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }

/* Forms */
.consult-form { background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.form-group { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
@media(min-width: 768px) { .form-group { flex-direction: row; } }
input, select, textarea { width: 100%; padding: 0.9rem; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; font-size: 1rem; background: var(--bg-sec); transition: border 0.3s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.btn { background: var(--primary); color: #fff; padding: 0.9rem 2rem; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; font-weight: 600; transition: background 0.3s; display: inline-block; text-decoration: none; }
.btn:hover { background: #333; }
.alert.success { background: #e8f5e9; color: #2e7d32; padding: 1rem; border-radius: 4px; margin-bottom: 1.5rem; border-left: 4px solid #4caf50; }

/* Login & Dashboard */
.login-body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: var(--bg-sec); padding: 1rem; }
.login-card { background: #fff; padding: 2.5rem; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); width: 100%; max-width: 400px; }

.dash-body { background: var(--bg-sec); padding: 2rem 1rem; }
.dash-container { max-width: 1200px; margin: 0 auto; background: #fff; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); overflow: hidden; }
.dash-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 1rem; }
.dash-header h2::after { display: none; }
.btn-logout { background: #d9534f; padding: 0.6rem 1.5rem; }
.btn-logout:hover { background: #c9302c; }

.table-responsive { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.dash-table th, .dash-table td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border); }
.dash-table th { background: #fafafa; font-weight: 600; color: var(--primary); }
.email-link { color: var(--accent); text-decoration: none; font-size: 0.9rem; }
.org-text { font-size: 0.85rem; color: #888; }
.msg-cell { max-width: 300px; line-height: 1.4; font-size: 0.95rem; }
.status-select { padding: 0.4rem; border-radius: 4px; font-weight: 600; font-size: 0.9rem; border: 1px solid var(--border); background: #fff; }
.status-select.pending { color: #d9534f; }
.status-select.reviewed { color: #f0ad4e; }
.status-select.completed { color: #5cb85c; }

footer { text-align: center; padding: 2rem; background: var(--primary); color: #ccc; font-size: 0.9rem; }
footer a { color: #fff; text-decoration: none; }

/* Mobile Menu tweaks */
@media(max-width: 600px) {
    .nav-content { flex-direction: column; gap: 1rem; }
    .hero { padding: 3rem 0; }
    .section { padding: 3rem 1rem; }
}
