/* IMT Oradea 2027 Conference Website - Style Sheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #001f60;
  --primary-light: #0d3896;
  --primary-dark: #00123a;
  --text-dark: #2c2c2c;
  --text-light: #ffffff;
  --text-muted: #989ead; /* Decoded menu inactive color */
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --accent-color: #e2e8f0;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 8px;
  --transition-speed: 0.3s;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

/* Header Styles */
.site-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--accent-color);
  padding: 1rem 2rem;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 1.5rem;
}

.header-logo {
  flex: 0 0 130px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Faculty Logo Container specifically - wider to accommodate landscape logo */
.header-logo:last-child {
  flex: 0 0 200px;
}

.header-logo img {
  max-width: 100%;
  height: auto;
  max-height: 90px;
  object-fit: contain;
  transition: transform var(--transition-speed);
}

#header-fimt-logo {
  max-height: 120px; /* Make faculty logo taller and larger */
}

.header-logo img:hover {
  transform: scale(1.05);
}

.header-title-container {
  flex: 1;
  text-align: center;
}

.header-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.header-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Navigation Menu (Blue background) */
.main-nav {
  background-color: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center; /* Center the menu items on desktop */
}

.nav-links li {
  position: relative;
}

.nav-links a {
  display: block;
  padding: 1.1rem 1.2rem;
  color: var(--text-muted); /* Decoded inactive color */
  text-decoration: none;
  font-weight: 500;
  font-size: 14px; /* Decoded menu font size */
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color var(--transition-speed), background-color var(--transition-speed);
}

.nav-links a:hover {
  color: var(--text-light);
  background-color: var(--primary-light);
}

.nav-links li.active a {
  color: var(--text-light); /* Decoded active color */
  font-weight: 600; /* Decoded active font weight */
  font-size: 14px; /* Maintain height alignment */
  background-color: var(--primary-light);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
}

.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  margin: 5px 0;
  transition: var(--transition-speed);
}

/* Layout Main Content */
.main-content {
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 0 2rem;
  min-height: 50vh;
}

/* Page Headers */
.page-header {
  margin-bottom: 2.5rem;
  text-align: center;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Typography styles */
p.lead {
  font-size: 1.25rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  text-align: center;
}

h2.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 2.5rem 0 1.2rem 0;
  padding-bottom: 0.5rem;
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

h3.subsection-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-light);
  margin: 1.8rem 0 1rem 0;
}

p {
  margin-bottom: 1.5rem;
  text-align: justify; /* Decoded alignment */
  color: var(--text-dark);
  line-height: 1.6;
}

/* Grid Components & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.card {
  background-color: var(--bg-white);
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Date highlights (Home) */
.dates-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.date-box {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--accent-color) 100%);
  border-top: 4px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.date-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 0.5rem;
}

.date-label {
  font-size: 0.9rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Research Areas Accordion (Home) */
.research-areas {
  margin-top: 2rem;
}

.area-group {
  margin-bottom: 1rem;
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.area-header {
  background-color: var(--bg-light);
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-speed);
}

.area-header:hover {
  background-color: var(--accent-color);
}

.area-header::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
}

.area-group.active .area-header::after {
  content: '−';
}

.area-content {
  display: none;
  padding: 1.5rem;
  background-color: var(--bg-white);
  border-top: 1px solid var(--accent-color);
}

.area-group.active .area-content {
  display: block;
}

.area-content ul {
  list-style: none;
}

.area-content li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--accent-color);
  font-size: 0.95rem;
}

.area-content li:last-child {
  border-bottom: none;
}

/* Tables (Registration, etc.) */
.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--accent-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background-color: var(--primary-color);
  color: var(--text-light);
  font-weight: 600;
  padding: 1rem 1.5rem;
}

td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--accent-color);
}

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

tr:nth-child(even) {
  background-color: var(--bg-light);
}

/* List details */
ul.guidelines-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

ul.guidelines-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  text-align: justify;
}

ul.guidelines-list li::before {
  content: '✓';
  position: absolute;
  left: 0.5rem;
  color: var(--success-color);
  font-weight: 700;
}

/* PDF Section */
.pdf-section {
  background-color: var(--bg-light);
  border: 1px solid var(--accent-color);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.pdf-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pdf-icon {
  background-color: #fee2e2;
  color: var(--danger-color);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 800;
}

.pdf-details h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.pdf-details p {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pdf-btn {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color var(--transition-speed);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.pdf-btn:hover {
  background-color: var(--primary-light);
}

.pdf-iframe-container {
  display: none;
  width: 100%;
  height: 500px;
  margin-top: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--accent-color);
  overflow: hidden;
}

.pdf-iframe-container.visible {
  display: block;
}

.pdf-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Contact Page Details */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid var(--accent-color);
}

.contact-detail-icon {
  background-color: var(--primary-color);
  color: var(--text-light);
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-detail-content h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.contact-detail-content p {
  margin-bottom: 0.25rem;
  text-align: left;
}

.sidebar-card {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-md);
}

.sidebar-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.5rem;
}

.sidebar-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-align: left;
}

/* Bookmark cards for Links Page */
.bookmark-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.bookmark-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: box-shadow var(--transition-speed), transform var(--transition-speed);
}

.bookmark-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.bookmark-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.bookmark-icon {
  font-size: 2rem;
  color: var(--primary-color);
}

.bookmark-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.bookmark-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.bookmark-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.bookmark-link:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Peer Review Workflow steps */
.workflow-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 3rem 0;
  flex-wrap: wrap;
  gap: 2rem;
}

.workflow-step {
  flex: 1 1 200px;
  background-color: var(--bg-white);
  border: 1px solid var(--accent-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.workflow-step-num {
  background-color: var(--primary-color);
  color: var(--text-light);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1rem auto;
  font-weight: 700;
}

.workflow-step h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.workflow-step p {
  font-size: 0.85rem;
  margin-bottom: 0;
  text-align: center;
  color: var(--text-muted);
}

/* Committees Styling */
.committee-section {
  margin-bottom: 3rem;
}

.committee-section h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.member-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 1.2rem;
  border: 1px solid var(--accent-color);
  display: flex;
  flex-direction: column;
}

.member-name {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.member-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.member-institution {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Site Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 4rem 2rem 2rem 2rem;
  border-top: 4px solid var(--primary-color);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--text-light);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-speed);
}

.footer-col a:hover {
  color: var(--text-light);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  display: block;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 3rem auto 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .disclaimer {
  font-style: italic;
}

/* local CMS Admin Panel and editable styles */
[contenteditable="true"] {
  outline: none;
  transition: box-shadow 0.2s, background-color 0.2s;
  padding: 2px 4px;
  border-radius: 4px;
}

body.edit-mode-active [contenteditable="true"] {
  border: 1px dotted var(--primary-color);
  background-color: rgba(0, 31, 96, 0.03);
  cursor: text;
}

body.edit-mode-active [contenteditable="true"]:hover {
  background-color: rgba(0, 31, 96, 0.07);
}

/* Floating control panel styles */
.cms-float-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  z-index: 1000;
  transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.cms-float-trigger:hover {
  transform: scale(1.1);
  background-color: var(--primary-light);
}

.cms-admin-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 1rem 2rem;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
  animation: slideUp var(--transition-speed) forwards;
}

.cms-admin-bar.active {
  display: flex;
}

.cms-bar-info {
  font-weight: 500;
  font-size: 0.95rem;
}

.cms-bar-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.cms-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: background-color var(--transition-speed);
}

.cms-btn-save {
  background-color: var(--success-color);
  color: var(--text-light);
}

.cms-btn-save:hover {
  background-color: #059669;
}

.cms-btn-export {
  background-color: #3b82f6;
  color: var(--text-light);
}

.cms-btn-export:hover {
  background-color: #2563eb;
}

.cms-btn-cancel {
  background-color: var(--text-muted);
  color: var(--text-light);
}

.cms-btn-cancel:hover {
  background-color: #4b5563;
}

.cms-pdf-input-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1.5rem;
}

.cms-pdf-input {
  padding: 0.4rem 0.75rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--text-muted);
  background-color: rgba(255,255,255,0.1);
  color: var(--text-light);
  font-size: 0.85rem;
  width: 180px;
}

.cms-pdf-input:focus {
  outline: none;
  border-color: var(--text-light);
}

/* Simple keyframe animation */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Notification popups */
.toast-notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background-color: var(--success-color);
  color: var(--text-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  z-index: 1001;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s, transform 0.3s;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .dates-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .header-logo {
    flex: 0 0 auto;
  }
  
  .header-logo img {
    max-height: 70px;
  }
  
  #header-fimt-logo {
    max-height: 90px; /* Keep faculty logo larger on mobile */
  }
  
  .site-header {
    padding: 1rem;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-container {
    padding: 0;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--primary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav-links a {
    padding: 1rem 1.5rem;
    width: 100%;
  }
  
  .main-content {
    margin: 2rem auto;
    padding: 0 1.25rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .workflow-container {
    flex-direction: column;
  }
  
  .cms-admin-bar {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
  }
  
  .cms-bar-controls {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  
  .cms-btn {
    width: 100%;
  }
  
  .cms-pdf-input-container {
    margin-right: 0;
    width: 100%;
    justify-content: center;
  }
  
  .cms-pdf-input {
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .dates-container {
    grid-template-columns: 1fr;
  }
  
  .date-box {
    padding: 1.2rem;
  }
  
  .pdf-section {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .pdf-btn {
    width: 100%;
    justify-content: center;
  }
  
  .bookmark-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .bookmark-link {
    width: 100%;
    justify-content: center;
  }
}
