
/* style.css - Styling Umum untuk Portal PTNSI */

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

header.portal-header {
  background-color: #1e40af;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

header.portal-header h1 {
  font-size: 1.5rem;
  margin: 0;
}

/* === Navbar User (kanan atas) === */
#nav-user,
.user-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

#nav-user a,
.user-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#nav-user a:hover,
.user-nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

#nav-user span,
.user-nav span {
  font-weight: bold;
  color: #facc15;
}

#nav-user button,
.user-nav button {
  background-color: #ef4444;
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

#nav-user button:hover,
.user-nav button:hover {
  background-color: #dc2626;
}

/* === Main Content === */
main.portal-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding: 2rem;
  align-items: start;
}

.announcement-section {
  background-color: #fff7ed;
  padding: 1rem;
  border-left: 5px solid #f97316;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.announcement-section h2 {
  color: #b45309;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.announcement-item {
  background-color: #fef3c7;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 0.375rem;
  word-break: break-word;
  white-space: normal;
  line-height: 1.4;
}

.announcement-item h4 {
  margin: 0 0 0.5rem 0;
  color: #92400e;
}

.announcement-item small {
  font-size: 0.75rem;
  color: #6b7280;
}

.calendar-section {
  background-color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.calendar-section h2 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #1e40af;
}

#calendar {
  max-width: 100%;
  margin-top: 1rem;
}

footer.portal-footer {
  text-align: center;
  padding: 1rem;
  background-color: #e5e7eb;
  font-size: 0.875rem;
  margin-top: 2rem;
}

.fc-tooltip {
  position: absolute;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 5px;
  font-size: 0.75rem;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  z-index: 1000;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

#event-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#event-modal.active {
  display: flex;
}

/* === Pesan Internal === */
.message-section {
  background: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin-top: 1rem;
}

.message-section h2 {
  font-size: 1.25rem;
  color: #1e3a8a;
}

textarea, input[type="text"], select {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  box-sizing: border-box;
}

/* === Responsif === */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  main.portal-content {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  header.portal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  #nav-user, .user-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .announcement-item {
    font-size: 0.95rem;
  }
}
