/* ============================================================
   Tailwind-inspired Common CSS for PKP/OJS
   Clean, modern flat design — 2025 refresh
   ============================================================ */

/* === Base === */
body {
  margin: 0;
  padding: 0;
  background-color: #f9fafb;
  color: #111827;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  text-align: center;
  line-height: 1.6;
}

div { text-align: left; }

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: #1d4ed8; }

/* === Layout === */
#container {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

#header {
  background: #1e3a8a;
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#header h1 {
  margin: 0;
  font-weight: 600;
  font-size: 1.75rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

#main {
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 0.75rem;
  margin: 1rem auto;
  max-width: 1200px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

#footer {
  text-align: center;
  background: #f3f4f6;
  color: #6b7280;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  border-top: 1px solid #e5e7eb;
}

/* === Headings === */
h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  color: #111827;
  margin-bottom: 0.75em;
}
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }

/* === Forms === */
input[type="text"], select, textarea, input[type="file"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #f9fafb;
  color: #111827;
  font-size: 1rem;
  transition: all 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
}

input.button, button {
  background: #2563eb;
  color: #fff;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
input.button:hover, button:hover {
  background: #1d4ed8;
}
input.defaultButton {
  background-color: #16a34a;
  color: #fff;
  font-weight: 600;
}

/* === Tables === */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table th {
  background: #f3f4f6;
  text-align: left;
  padding: 0.75rem;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

table td {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  color: #1f2937;
}

table tr:nth-child(even) {
  background: #f9fafb;
}

table.listing tr:hover {
  background-color: #eff6ff;
}

/* === Breadcrumbs === */
#breadcrumb {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}
#breadcrumb a {
  color: #2563eb;
}
#breadcrumb a:hover {
  text-decoration: underline;
}

/* === Messages === */
div.warningMessage {
  background-color: #fef3c7;
  border-left: 4px solid #f59e0b;
  color: #92400e;
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}
span.pkp_form_error {
  color: #b91c1c;
  font-weight: 600;
}
span.pkp_form_success {
  color: #15803d;
  font-weight: 600;
}

/* === Menus === */
ul.menu {
  display: flex;
  list-style: none;
  gap: 1rem;
  padding: 0;
  margin: 0;
  justify-content: center;
}
ul.menu li a {
  font-weight: 500;
  color: #2563eb;
  text-transform: uppercase;
  font-size: 0.875rem;
}
ul.menu li a:hover {
  color: #1d4ed8;
  border-bottom: 2px solid #2563eb;
}

/* === Other utilities === */
.nowrap { white-space: nowrap; }
.text-muted { color: #6b7280; }
.highlight { background-color: #fef9c3; }

.separator {
  border-bottom: 1px solid #e5e7eb;
  margin: 1rem 0;
}

/* === Cards (new addition) === */
.card {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
