﻿/* app.css */

/* MAY BE DEPRECATED */
.tab-container {
  margin: 20px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #ccc;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  background: #ddd;
  margin-right: 5px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

  .tab.active {
    background: white;
    border-bottom: 1px solid white;
  }

.tab-content {
  background: white;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.tab-pane {
  display: none;
}

  .tab-pane.active {
    display: block;
  }

.button {
  background-color: #004080;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

  .button:hover {
    background-color: #0066cc;
  }

input, select, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.form-group {
  margin-bottom: 15px;
}

.form-section {
  margin-bottom: 30px;
  padding: 10px;
  background: #f9f9f9;
  border-left: 4px solid #004080;
}

fieldset {
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
}

legend {
  font-weight: bold;
}

.readonly input,
.readonly textarea,
.readonly select {
  background-color: #eee;
}

/* END MAY BE DEPRECATED */

.pipeline-stage {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 5px;
}

  .pipeline-stage span {
    flex: 1;
    text-align: center;
    font-weight: bold;
    padding: 5px;
  }

.active-stage {
  background-color: #004080;
  color: white;
  border-radius: 3px;
}

.activity-log-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.activity-card {
  background: #ffffff;
  border-left: 5px solid #004080;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 5px;
}

  .activity-card h4 {
    margin: 0 0 10px;
    color: #004080;
  }

  .activity-card p {
    margin: 5px 0;
  }

@media (min-width: 768px) {
  .form-row {
    display: flex;
    gap: 20px;
  }

    .form-row .form-group {
      flex: 1;
    }
}

/* Tambahan dari style kedua */

body {
  font-family: sans-serif;
  margin: 20px;
  background-color: #f4f6f8;
}

.container {
  max-width: 1000px;
  margin: 5px;
}

.task-form,
.task-filters,
.task-list {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

  .task-form input,
  .task-form textarea,
  .task-form select {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
  }

  .task-form button {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }

.task-card {
  border-left: 6px solid #2196F3;
  background: #fff;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 6px;
  position: relative;
}

  .task-card.done {
    border-color: #4CAF50;
  }

  .task-card.overdue {
    border-color: #f44336;
  }

  .task-card:hover {
    transform: scale(1.02);
    background-color: #f1f1f1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

.delete-icon {
  position: absolute;
  top: 4px;
  right: 4px;
  cursor: pointer;
  color: #e53935;
}

.task-meta span {
  display: inline-block;
  margin-right: 10px;
  font-size: 0.9em;
  color: #555;
}

.filter-bar select {
  margin-right: 10px;
}

.kanban-stage-header {
  display: block; /* Ensure it's block-level to occupy full width */
  width: 100%; /* Full width of parent */
  background-color: #1976d2;
  color: black;
  padding: 12px;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  text-align: center;
  border: 2px solid #1565c0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box; /* Include padding/border in width */
}


  .kanban-stage-header:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

.kanban-board {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  overflow-x: auto;
}

/* When viewed on mobile, stack columns vertically */
.kanban-board.mobile {
  flex-direction: column;
  overflow-x: hidden;
}

.kanban-column {
  flex: 1 1 0; /* biar fleksibel tapi tetap membagi lebar */
  display: flex;
  flex-direction: column;
  width: 100%; /* pastikan lebar penuh */
  /*min-width: 150px;*/
  overflow-y: auto;
  background-color: #f9f9f9;
  margin: 0 4px;
  padding: 3px;
  border-radius: 3px;
}

  .kanban-column h3 {
    margin-top: 0;
  }

.kanban-cards {
  width: 100%; /* pastikan lebar penuh */
  /*min-width: 150px;*/
  min-height: 300px;
  max-height: 300px;
  overflow-y: auto;
  flex-grow: 1;
}

  .kanban-cards:hover {
    background-color: #dee2e6;
  }

.kanban-item {
  background: #e9ecef;
  border-radius: 5px;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: grab;
  border-left: 6px solid #2196F3;
}


.kanban-ghost {
  opacity: 0.4;
  background-color: #ddd;
}

.full-screen {
  width: 100%;
  height: 100%;
  /*max-height: 80vh;*/ /* Tentukan tinggi maksimal konten dalam dialog */
  overflow-y: auto; /* Membuat konten scrollable */
}

.full-width-page {
  width: 100vw !important;
  height: 60vh !important;
  margin: 10px !important;
  padding: 0 !important;
  top: 0 !important;
  left: 0 !important;
  border-radius: 0 !important;
}

.full-width-dialog {
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  top: 0 !important;
  left: 0 !important;
  border-radius: 0 !important;
}

  .full-width-dialog .mud-dialog-content {
    height: calc(100vh - 64px); /* Sesuaikan jika ada toolbar */
    overflow-y: auto;
  }

.full-width-dialog {
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  top: 0 !important;
  left: 0 !important;
  border-radius: 0 !important;
}

  .full-width-dialog .mud-dialog-content {
    height: calc(100vh - 64px); /* Sesuaikan jika ada toolbar */
    overflow-y: auto;
  }

  .full-width-dialog .mud-dialog-content {
    max-height: 80vh; /* Tentukan tinggi maksimal konten dalam dialog */
    overflow-y: auto; /* Membuat konten scrollable */
  }

.chat-bubble-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #40916c;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 24px;
  line-height: 60px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.chat-widget-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 300px;
  height: 400px;
  background: white;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 999;
}

.chat-header {
  padding: 10px;
  background-color: #40916c;
  color: white;
  font-weight: bold;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  text-align: center;
}

.chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 0.9rem;
}

.chat-message {
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 6px;
  max-width: 85%;
}

  .chat-message.user {
    background-color: #d1e7dd;
    align-self: flex-end;
    text-align: right;
  }

  .chat-message.bot {
    background-color: #f8f9fa;
    align-self: flex-start;
  }

.chat-input {
  display: flex;
  border-top: 1px solid #ccc;
  padding: 5px;
}

  .chat-input input {
    flex: 1;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  .chat-input button {
    margin-left: 5px;
    background-color: #40916c;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
  }
