/* Mobile Workflow Styles */
:root {
  --primary-color: #4e73df;
  --secondary-color: #858796;
  --success-color: #1cc88a;
  --danger-color: #e74a3b;
  --warning-color: #f6c23e;
  --info-color: #36b9cc;
  --background-color: #f8f9fc;
  --card-color: #ffffff;
  --text-color: #5a5c69;
  --border-color: #e3e6f0;
}

/* Base Styles */
.mobile-workflow-container {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 70px;
  height: 100vh;
  overflow-y: auto;
  position: relative;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  background-color: var(--card-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 15px 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.tab.active {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  padding: 12px 15px;
  background-color: var(--card-color);
  border-bottom: 1px solid var(--border-color);
  gap: 15px;
}

.filter-section, .sort-section {
  flex: 1;
  min-width: 140px;
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 6px;
}

.filter-dropdown-wrapper {
  position: relative;
}

.custom-select {
  width: 100%;
  /* padding: 10px 12px; */
  padding-right: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: white;
  font-size: 14px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  color: var(--text-color);
}

.custom-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(78, 115, 223, 0.25);
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--secondary-color);
}

/* Mobile-specific enhancements for touch */
@media (max-width: 767px) {
  .custom-select {
    font-size: 16px; /* Better for touch on mobile */
    padding: 12px 15px;
    padding-right: 30px;
  }
  
  .filter-bar {
    padding: 10px;
    gap: 10px;
  }
  
  /* Make tap targets larger on mobile */
  .filter-dropdown-wrapper {
    margin-bottom: 5px;
  }
}

/* Item Lists */
.item-list {
  padding: 10px;
}

.item {
  background-color: var(--card-color);
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.item:active {
  transform: scale(0.98);
}

/* Item Components */
.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.item-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-color);
}

.item-status {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.status-pending {
  background-color: var(--warning-color);
  color: white;
}

.status-approved {
  background-color: var(--success-color);
  color: white;
}

.status-rejected {
  background-color: var(--danger-color);
  color: white;
}

.item-body {
  margin-bottom: 15px;
}

.item-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 13px;
  color: var(--secondary-color);
}

.item-type, .item-reference {
  font-weight: 600;
}

.item-date {
  font-size: 12px;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.item-summary {
  font-size: 14px;
  line-height: 1.5;
}

.item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.action-button {
  padding: 8px 12px;
  border-radius: 4px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

.approve-button {
  background-color: var(--success-color);
  color: white;
}

.reject-button {
  background-color: var(--danger-color);
  color: white;
}

.view-button {
  background-color: var(--info-color);
  color: white;
}

.complete-button {
  background-color: var(--success-color);
  color: white;
}

.mark-read-button {
  background-color: var(--secondary-color);
  color: white;
}

/* To-do specific styles */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.todo-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.completed-text {
  text-decoration: line-through;
  color: var(--secondary-color);
}

.item-priority {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.priority-high {
  background-color: var(--danger-color);
  color: white;
}

.priority-medium {
  background-color: var(--warning-color);
  color: white;
}

.priority-low {
  background-color: var(--info-color);
  color: white;
}

/* Notification specific styles */
.notification-item.unread {
  border-left: 4px solid var(--primary-color);
}

.item-time {
  font-size: 12px;
  color: var(--secondary-color);
}

.item-link {
  font-size: 13px;
  color: var(--primary-color);
  margin-top: 5px;
}

/* Tab content visibility */
.tab-pane {
  display: none;
}

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

/* Floating action button */
.floating-action-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.floating-action-button:active {
  transform: scale(0.95);
}

.floating-action-button i {
  font-size: 24px;
}

/* Responsive adjustments for very small screens */
@media (max-width: 340px) {
  .action-button {
    padding: 6px 8px;
    font-size: 12px;
  }
  
  .item-actions {
    flex-wrap: wrap;
    gap: 5px;
  }
}
