/* Mobile App Launch Checklist Styles */

:root {
  --primary-color: #4a90e2;
  --primary-hover: #357abd;
  --secondary-color: #6c757d;
  --danger-color: #dc3545;
  --success-color: #28a745;
  --border-color: #dee2e6;
  --bg-light: #f8f9fa;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

.checklist-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* Header Section */
.header-section {
  text-align: center;
  margin-bottom: 40px;
}

.header-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Card */
.card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

/* App Selector */
.app-selector-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.app-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.app-input-group input {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 0.3s;
}

.app-input-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Buttons */
.btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

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

.btn-danger:hover {
  background-color: #c82333;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

/* Saved Apps */
.saved-apps-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.saved-apps-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.apps-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-chip {
  padding: 8px 16px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.app-chip:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

/* Checklist Section */
.checklist-section {
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.app-header h2 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.app-actions {
  display: flex;
  gap: 10px;
}

/* Progress */
.progress-overview {
  margin-bottom: 30px;
}

.progress-bar-container {
  width: 100%;
  height: 20px;
  background-color: var(--bg-light);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--success-color));
  transition: width 0.5s ease;
  border-radius: 10px;
  width: 0%;
}

.progress-text {
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 14px;
}

/* Categories */
.checklist-categories {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.category {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  background-color: var(--bg-light);
}

.category h3 {
  margin: 0 0 15px 0;
  color: var(--text-dark);
  font-size: 1.3rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  background-color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  position: relative;
}

.checklist-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  transform: translateX(3px);
}

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.checklist-item .item-text {
  flex: 1;
  color: var(--text-dark);
  font-size: 15px;
}

.checklist-item input[type="checkbox"]:checked ~ .item-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Custom Items */
.custom-item {
  border-left: 3px solid var(--primary-color);
}

.delete-custom-btn {
  background: none;
  border: none;
  color: var(--danger-color);
  font-size: 24px;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s;
}

.checklist-item:hover .delete-custom-btn {
  opacity: 1;
}

.delete-custom-btn:hover {
  color: #a71d2a;
  transform: scale(1.2);
}

.no-custom-items {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 20px;
}

.add-custom-item {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.add-custom-item input {
  flex: 1;
  padding: 10px;
  font-size: 15px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  transition: border-color 0.3s;
}

.add-custom-item input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .checklist-container {
    padding: 15px;
  }

  .header-section h1 {
    font-size: 2rem;
  }

  .card {
    padding: 20px;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-actions {
    width: 100%;
  }

  .app-actions .btn {
    flex: 1;
  }

  .app-input-group {
    flex-direction: column;
  }

  .app-input-group .btn {
    width: 100%;
  }

  .add-custom-item {
    flex-direction: column;
  }

  .add-custom-item .btn {
    width: 100%;
  }

  .delete-custom-btn {
    opacity: 1; /* Always show on mobile */
  }
}

/* Print Styles */
@media print {
  .app-actions,
  .add-custom-item,
  .delete-custom-btn,
  .app-selector-section {
    display: none !important;
  }

  .card {
    box-shadow: none;
    border: 1px solid var(--border-color);
  }

  .checklist-item {
    break-inside: avoid;
  }
}
