/* Flashcard Quiz Styles */
.fcpv2-flashcard-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.fcpv2-flashcard {
  width: 320px;
  height: 200px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  perspective: 1000px;
  margin-bottom: 24px;
  position: relative;
  transition: box-shadow 0.2s;
}
.fcpv2-flashcard:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.fcpv2-flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
.fcpv2-flashcard.flipped .fcpv2-flashcard-inner {
  transform: rotateY(180deg);
}
.fcpv2-flashcard-front, .fcpv2-flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.fcpv2-flashcard-back {
  transform: rotateY(180deg);
  background: #f7f7f7;
}
.fcpv2-quiz-controls {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.fcpv2-quiz-feedback {
  margin-top: 24px;
  font-weight: bold;
  color: #2e7d32;
}

/* Tabs */
.fcpv2-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}
.fcpv2-tab-btn {
  background: #e3f2fd;
  border: none;
  border-radius: 8px 8px 0 0;
  padding: 10px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  color: #1976d2;
  outline: none;
}
.fcpv2-tab-btn:disabled,
.fcpv2-tab-btn.active {
  background: #1976d2;
  color: #fff;
  cursor: default;
}
.fcpv2-tab-btn:focus {
  box-shadow: 0 0 0 2px #90caf9;
}

/* Deck/Shared Deck List */
#fcpv2-deck-list, .fcpv2-shared-deck-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  padding: 0;
  margin: 0 auto 32px auto;
  max-width: 900px;
}
#fcpv2-deck-list li, .fcpv2-shared-deck-list li {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(25, 118, 210, 0.10);
  margin-bottom: 0;
  padding: 28px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 320px;
  max-width: 340px;
  width: 100%;
  position: relative;
}

/* Card List */
.fcpv2-card-list {
  margin: 18px 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fcpv2-card-list li {
  background: #f7fafd;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  box-shadow: 0 1px 4px rgba(25, 118, 210, 0.06);
}

/* Buttons */
.fcpv2-main-card button,
.fcpv2-tab-btn,
.fcpv2-hub-card-btn {
  font-family: inherit;
  font-size: 1.1rem;
  border-radius: 8px;
  padding: 12px 0;
  min-width: 120px;
  margin: 0 6px 10px 6px;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
}
button:focus, .fcpv2-tab-btn:focus, .fcpv2-hub-card-btn:focus {
  box-shadow: 0 0 0 2px #90caf9, 0 2px 8px rgba(25, 118, 210, 0.08);
}

/* Horizontal Forms on Desktop */
#fcpv2-add-deck-form, .fcpv2-edit-deck-form, .fcpv2-add-card-form, .fcpv2-edit-card-form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin: 0 auto 24px auto;
  max-width: 900px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(25, 118, 210, 0.10);
  padding: 24px 32px 24px 32px;
  border: 1.5px solid #e3f2fd;
}
#fcpv2-add-deck-form input, .fcpv2-edit-deck-form input, .fcpv2-add-card-form input, .fcpv2-edit-card-form input {
  width: 180px;
  max-width: 220px;
  font-size: 1.1rem;
  padding: 10px 12px;
  border-radius: 7px;
  border: 1.5px solid #b3c6e0;
  background: #f7fafd;
  transition: border 0.2s, box-shadow 0.2s;
}
#fcpv2-add-deck-form input:focus, .fcpv2-edit-deck-form input:focus, .fcpv2-add-card-form input:focus, .fcpv2-edit-card-form input:focus {
  border-color: #1976d2;
  box-shadow: 0 0 0 2px #90caf9;
  background: #fff;
}
#fcpv2-add-deck-form label, .fcpv2-edit-deck-form label, .fcpv2-add-card-form label, .fcpv2-edit-card-form label {
  font-size: 1rem;
  color: #1976d2;
  font-weight: 500;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
#fcpv2-add-deck-form button, .fcpv2-edit-deck-form button, .fcpv2-add-card-form button, .fcpv2-edit-card-form button {
  min-width: 120px;
  max-width: 180px;
  font-size: 1.1rem;
  padding: 12px 0;
  border-radius: 8px;
  margin: 0 0 0 12px;
  background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
  transition: background 0.2s, box-shadow 0.2s;
}
#fcpv2-add-deck-form button:hover, .fcpv2-edit-deck-form button:hover, .fcpv2-add-card-form button:hover, .fcpv2-edit-card-form button:hover {
  background: linear-gradient(90deg, #1565c0 60%, #1976d2 100%);
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.16);
}

/* Modal/Card Look for Edit Forms */
.fcpv2-edit-deck-form, .fcpv2-edit-card-form {
  border: 2px solid #90caf9;
  box-shadow: 0 6px 32px rgba(25, 118, 210, 0.13);
  background: #fafdff;
  z-index: 10;
}

/* Quiz/Flashcard UI (already present, but tweak for mobile) */
.fcpv2-flashcard-container {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 16px auto;
}
.fcpv2-flashcard {
  width: 100%;
  min-width: 0;
}

/* Feedback/Toasts */
.fcpv2-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #1976d2;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(25, 118, 210, 0.18);
  font-size: 1.1rem;
  z-index: 9999;
  opacity: 0.98;
  animation: fcpv2-toast-in 0.3s;
}
@keyframes fcpv2-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(30px); }
  to { opacity: 0.98; transform: translateX(-50%) translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
  .fcpv2-tabs {
    flex-direction: column;
    gap: 0;
  }
  #fcpv2-deck-list li, .fcpv2-shared-deck-list li {
    padding: 14px 8px 8px 8px;
  }
  .fcpv2-flashcard-container {
    max-width: 98vw;
  }
  .fcpv2-flashcard {
    font-size: 1rem;
    padding: 0;
  }
  #fcpv2-add-deck-form, .fcpv2-add-card-form, .fcpv2-edit-deck-form, .fcpv2-edit-card-form {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Hub Home Large Card Buttons - Horizontal on Desktop */
.fcpv2-hub-cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
  margin-bottom: 36px;
}
.fcpv2-hub-card-btn {
  background: #fff;
  border: none;
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(25, 118, 210, 0.10);
  width: 220px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1976d2;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s;
  margin-bottom: 0;
  outline: none;
  text-align: center;
  border: 2px solid #e3f2fd;
  box-sizing: border-box;
}
.fcpv2-hub-card-btn:hover, .fcpv2-hub-card-btn:focus {
  box-shadow: 0 8px 32px rgba(25, 118, 210, 0.18);
  background: #e3f2fd;
  color: #0d47a1;
  border-color: #90caf9;
}
.fcpv2-hub-card-btn .fcpv2-hub-icon {
  font-size: 2.5rem;
  margin-bottom: 18px;
  display: block;
}

/* Centered Home Button (Pill Style) */
.fcpv2-home-btn-center {
  display: flex;
  justify-content: center;
  margin: 0 auto 24px auto;
}
.fcpv2-home-btn-center .fcpv2-hub-card-btn {
  width: 180px;
  height: 48px;
  font-size: 1.1rem;
  border-radius: 24px;
  margin-bottom: 0;
  margin-top: 0;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
}

/* Action Buttons (Edit, Delete, Manage) */
.fcpv2-action-btn {
  background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px 28px;
  font-size: 1.08rem;
  font-weight: 500;
  margin: 0 10px 0 0;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  outline: none;
  display: inline-block;
}
.fcpv2-action-btn:last-child {
  margin-right: 0;
}
.fcpv2-action-btn:hover, .fcpv2-action-btn:focus {
  background: linear-gradient(90deg, #1565c0 60%, #1976d2 100%);
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.16);
}

/* Responsive: Stack hub cards vertically on mobile */
@media (max-width: 900px) {
  .fcpv2-hub-cards {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 18px;
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
  }
  .fcpv2-hub-card-btn {
    width: 100%;
    max-width: none;
    height: 120px;
    font-size: 1.1rem;
    margin-bottom: 24px;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
    overflow-wrap: anywhere;
  }
  .fcpv2-hub-card-btn:last-child {
    margin-bottom: 0 !important;
  }
  .fcpv2-home-btn-center .fcpv2-hub-card-btn {
    width: 100%;
    max-width: none;
    height: 48px;
    font-size: 1.1rem;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Headings and Section Spacing */
h2, h3, h4 {
  text-align: center;
  margin-top: 36px;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Add Deck Form: vertical, centered, card style */
#fcpv2-add-deck-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(25, 118, 210, 0.10);
  padding: 32px 24px 24px 24px;
  max-width: 420px;
  margin: 0 auto 32px auto;
}
#fcpv2-add-deck-form input[type="text"],
#fcpv2-add-deck-form input[type="color"] {
  font-size: 1.1rem;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #b3c6e0;
  margin-bottom: 0;
  margin-right: 0;
  margin-left: 0;
  margin-top: 0;
}
#fcpv2-add-deck-form label {
  font-size: 1.05rem;
  color: #1976d2;
  margin-bottom: 0;
  margin-right: 0;
  margin-left: 0;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
#fcpv2-add-deck-form button[type="submit"] {
  margin-top: 10px;
  width: 100%;
}

/* Quiz Answer Buttons: large, rounded, colored, centered */
.fcpv2-quiz-controls {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  margin-bottom: 32px;
}
.fcpv2-quiz-correct, .fcpv2-quiz-wrong {
  min-width: 120px;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  padding: 16px 32px;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  outline: none;
}
.fcpv2-quiz-correct {
  background: linear-gradient(90deg, #43a047 60%, #66bb6a 100%);
  color: #fff;
}
.fcpv2-quiz-correct:hover, .fcpv2-quiz-correct:focus {
  background: linear-gradient(90deg, #388e3c 60%, #43a047 100%);
  box-shadow: 0 4px 16px rgba(67, 160, 71, 0.18);
}
.fcpv2-quiz-wrong {
  background: linear-gradient(90deg, #e53935 60%, #ff7043 100%);
  color: #fff;
}
.fcpv2-quiz-wrong:hover, .fcpv2-quiz-wrong:focus {
  background: linear-gradient(90deg, #b71c1c 60%, #e53935 100%);
  box-shadow: 0 4px 16px rgba(229, 57, 53, 0.18);
}

/* Responsive: Add Deck form full width on mobile */
@media (max-width: 700px) {
  #fcpv2-add-deck-form {
    max-width: 98vw;
    padding: 18px 4vw 18px 4vw;
  }
  .fcpv2-quiz-controls {
    gap: 14px;
  }
  .fcpv2-quiz-correct, .fcpv2-quiz-wrong {
    min-width: 90px;
    padding: 12px 10px;
    font-size: 1rem;
  }
}

/* Category dropdown for Add Deck */
#fcpv2-add-deck-form select#fcpv2-deck-category,
.fcpv2-category-filter {
  width: 100%;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 12px;
  background: #f8fafc;
  color: #1976d2;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 12px 18px;
  height: 48px;
  line-height: 1.3;
  border-radius: 8px;
  border: 1px solid #b3c6e0;
  box-sizing: border-box;
  vertical-align: middle;
}

#fcpv2-add-deck-form select#fcpv2-deck-category option,
.fcpv2-category-filter option {
  white-space: normal;
  font-size: 1.1rem;
  padding: 8px 12px;
}

#fcpv2-add-deck-form input[type="color"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Add Card Form - larger inputs */
.fcpv2-add-card-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}
.fcpv2-add-card-form input[type="text"] {
  font-size: 1.15rem;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #b3c6e0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  .fcpv2-add-card-form input[type="text"] {
    max-width: 98vw;
    font-size: 1rem;
    padding: 10px 8px;
  }
}

.fcpv2-main-card {
  max-width: 800px;
  margin: 40px auto 48px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(25, 118, 210, 0.10);
  padding: 36px 24px 32px 24px;
  position: relative;
}
.fcpv2-greeting {
  text-align: center;
  margin-bottom: 32px;
  background: linear-gradient(90deg, #e3f2fd 60%, #fff 100%);
  border-radius: 12px;
  padding: 24px 18px 18px 18px;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.06);
}
.fcpv2-greeting h2 {
  margin-top: 0;
  color: #1976d2;
  font-size: 2rem;
  font-weight: 700;
}
.fcpv2-greeting p {
  font-size: 1.15rem;
  color: #333;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .fcpv2-main-card {
    max-width: 98vw;
    padding: 12vw 2vw 8vw 2vw;
  }
  .fcpv2-greeting {
    padding: 6vw 2vw 4vw 2vw;
    font-size: 1rem;
  }
  .fcpv2-greeting h2 {
    font-size: 1.3rem;
  }
}

.fcpv2-homepage-btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.fcpv2-homepage-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  border: none;
  border-radius: 28px;
  padding: 14px 36px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
  transition: background 0.2s, box-shadow 0.2s;
  margin-bottom: 0;
}
.fcpv2-homepage-btn:hover, .fcpv2-homepage-btn:focus {
  background: linear-gradient(90deg, #1565c0 60%, #1976d2 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.16);
  text-decoration: none;
}

@media (max-width: 700px) {
  .fcpv2-homepage-btn {
    font-size: 1rem;
    padding: 10px 10vw;
  }
} 