/* =========================
   PJOBME JOURNAL THEME
   Academic Biomedical Style
========================= */

:root {
  --primary: #0f172a;      /* deep academic navy */
  --secondary: #38bdf8;    /* scientific blue */
  --accent: #22c55e;       /* research green */
  --bg: #f8fafc;           /* clean paper white */
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* =========================
   HEADER / NAVBAR
========================= */

header {
  background: var(--primary);
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  font-size: 20px;
  letter-spacing: 1px;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 12px;
  font-size: 14px;
  transition: 0.3s;
}

nav a:hover {
  color: var(--secondary);
}

/* =========================
   HERO SECTION
========================= */

.hero {
  background: linear-gradient(135deg, var(--primary), #1e293b);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero p {
  max-width: 700px;
  margin: auto;
  color: #cbd5e1;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--secondary);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #0ea5e9;
}

/* =========================
   CONTAINER
========================= */

.container {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
}

/* =========================
   JOURNAL CARDS
========================= */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   BUTTONS
========================= */

button, .btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover, .btn-primary:hover {
  background: var(--secondary);
}

/* =========================
   FORMS (LOGIN / SUBMIT PAPER)
========================= */

input, textarea, select {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
}

input:focus, textarea:focus {
  border-color: var(--secondary);
}

/* =========================
   TABLES (ADMIN PANEL)
========================= */

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: var(--shadow);
}

th, td {
  padding: 12px;
  border: 1px solid var(--border);
  text-align: left;
}

th {
  background: var(--primary);
  color: white;
}

/* =========================
   SIDEBAR (DASHBOARD)
========================= */

.sidebar {
  width: 240px;
  background: var(--primary);
  height: 100vh;
  position: fixed;
  padding: 20px;
}

.sidebar a {
  display: block;
  color: white;
  padding: 10px;
  text-decoration: none;
  margin-bottom: 5px;
  border-radius: 5px;
}

.sidebar a:hover {
  background: var(--secondary);
}

/* =========================
   FOOTER
========================= */

footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 768px) {
  .hero h2 {
    font-size: 24px;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
}