/* ================= GENERAL================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1a0033 0%, #0d001a 100%);
}

/* ================= LOGIN FORM ================= */

.login-form-container {
  width: 60%;
  height: 70vh;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 30px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.header-login-form {
  width: 100%;
  height: 15vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header-login-form h1 {
  font-size: 40px;
}

.header-login-form p {
  font-size: 18px;
}

.login-form-container .login-form {
  width: 100%;
  height: 30vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 10px;
}

.login-form .login-name-wrapper,
.login-form .login-password-group {
  width: 100%;
  height: 15vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  padding: 0 18px;
}

.login-form .login-password-wrapper {
  width: 100%;
  display: flex;
  flex-direction: row;
}

.login-name-wrapper .login-name-text,
.login-password-group .login-password-text {
  font-size: 24px;
  font-weight: bold;
  margin-left: 30px;
}

.login-name-wrapper .login-name-input {
  width: 90%;
  height: 40px;
  color: #fff;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 5px;
  padding: 0 18px;
  font-size: 18px;
  font-weight: bold;
  margin-left: 30px;
}

.login-name-wrapper .login-name-input::placeholder {
  color: #fff;
}

.login-password-wrapper .login-password-input {
  width: 90%;
  height: 40px;
  color: #fff;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 5px;
  padding: 0 18px;
  font-size: 18px;
  font-weight: bold;
  margin-left: 30px;
}

.footer-login-form {
  width: 100%;
  height: 25vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 10px;
}

.footer-login-form a {
  color: #ffffff;
  border-radius: 10px;
  border: 2px solid #9d4edd;
  padding: 10px 18px;
  text-decoration: none;
  transition: all 0.5s ease;
}

.footer-login-form button {
  width: 400px;
  height: 50px;

  color: #fff;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 10px;

  font-size: 24px;
  font-weight: bold;

  cursor: pointer;
  display: inline;
  z-index: 10;
  transition: all 0.5s ease;
}

.footer-login-form p {
  font-size: 24px;
}

@media (max-width: 768px) {
  .login-form-container {
    width: 100%;
    height: 100vh;
  }

  .footer-login-form {
    padding: 10px 18px;
  }

  .footer-login-form a {
    font-size: 12px;
    padding: 5px 9px;
  }

  .footer-login-form button {
    width: 60%;
    font-size: 18px;
  }

  .footer-login-form p {
    font-size: 14px;
    text-align: center;
  }
}

/* ================= SIGN UP ================= */

.signup-form-container {
  width: 60%;
  height: 100vh;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 30px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: #fff;
}

.header-signup-form {
  width: 100%;
  height: 15vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header-signup-form h1 {
  font-size: 40px;
}

.header-signup-form p {
  font-size: 18px;
}

.signup-form-container .signup-form {
  width: 100%;
  height: 60vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.signup-form .signup-name-wrapper,
.signup-form .signup-password-group,
.signup-form .signup-confirm-password-group {
  width: 100%;
  height: 20vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  padding: 0 18px;
}

.signup-name-wrapper .signup-name-text,
.signup-password-group .signup-password-text,
.signup-confirm-password-group .signup-confirm-password-text {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
}

.signup-name-wrapper .signup-name-input {
  width: 100%;
  height: 40px;
  color: #fff;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 5px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: bold;
}

.signup-password-group .signup-password-wrapper,
.signup-confirm-password-group .signup-confirm-password-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.signup-password-wrapper .signup-password-input,
.signup-confirm-password-wrapper .signup-confirm-password-input {
  flex: 1;
  height: 40px;
  color: #fff;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 5px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: bold;
}

.show-pass-icon {
  font-size: 20px;
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.signup-form-container .footer-signup-form {
  width: 100%;
  height: 25vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 10px;
}

.footer-signup-form a {
  color: #ffffff;
  border-radius: 10px;
  border: 2px solid #9d4edd;
  padding: 10px 18px;
  text-decoration: none;
  transition: all 0.5s ease;
}

.footer-signup-form button {
  width: 400px;
  height: 50px;

  color: #fff;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 10px;

  font-size: 18px;
  font-weight: bold;

  cursor: pointer;
  transition: all 0.5s ease;
}

.footer-signup-form p {
  font-size: 24px;
  color: #fff;
}

@media (max-width: 768px) {
  .signup-form-container {
    width: 100%;
  }

  .footer-signup-form {
    padding: 10px 18px;
  }

  .footer-signup-form a {
    font-size: 12px;
    padding: 5px 9px;
  }

  .footer-signup-form button {
    width: 60%;
    font-size: 18px;
  }

  .footer-signup-form p {
    font-size: 14px;
    text-align: center;
  }
}

/* ================= DASHBOARD ================= */

.dashboard-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
}

.dashboard-sidebar-section {
  height: 100vh;
  width: 15%;
  background: rgba(0, 0, 0, 0.25);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  position: sticky;
  top: 0;
  left: 0;
}

.dashboard-sidebar-section .username-display {
  width: 100%;
  height: 10vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-sidebar-section .username-display a {
  text-align: center;
  font-size: 20px;
  color: #ffffff;
  border-radius: 10px;
  border: 2px solid #9d4edd;
  background: rgba(157, 78, 221, 0.15);
  padding: 10px 18px;
  cursor: pointer;
}

.dashboard-sidebar-section .dashboard-sidebar-wrapper {
  width: 100%;
  height: 30vh;

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  gap: 10px;
}

.dashboard-sidebar-wrapper .sphere {
  width: 10px;
  height: 60px;
  background: rgb(214, 101, 255);
  border-radius: 20px;
}

.dashboard-sidebar-wrapper .dashboard-decks-div {
  width: 100%;
  height: 80px;
  background: rgba(157, 78, 221, 0.15);
  padding: 10px;
  border-radius: 8px;
  border: 2px solid #9d4edd;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.dashboard-sidebar-section .dashboard-signout-btn {
  background: rgba(157, 78, 221, 0.15);
  color: #fff;
  border: 2px solid #9d4edd;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(157, 78, 221, 0.2);
  padding: 12px 36px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.dashboard-main-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dashboard-header h1 {
  font-size: 40px;
  justify-content: center;
  color: #ffffff;
}

.dashboard-subtitle {
  font-size: 20px;
  opacity: 0.8;
  justify-content: center;
  color: #ffffff;
}

.dashboard-header-right {
  font-weight: 400;
  font-size: 35px;
  color: #ffffff;
}

.dashboard-search-bar {
  width: 50vw;
  display: flex;
  margin: 32px 0;
  justify-content: start;
  height: 50px;
  position: relative;
}

.dashboard-search-bar .search-input {
  width: 50vw;
  padding: 10px 16px;
  border-radius: 20px;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  color: #fff;
  font-weight: bold;
}

.dashboard-search-bar .search-input:focus {
  border: 2px solid #9d4edd;
}

.dashboard-search-bar .search-input::-webkit-input-placeholder {
  color: #fff;
}

.dashboard-search-bar .clear-search {
  position: absolute;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: none;
  cursor: pointer;
}

.dashboard-decks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.dashboard-decks-grid .dashboard-create-deck-card {
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 10px;
  padding: 16px;
  position: relative;
  min-height: 170px;

  display: flex;
  justify-content: center;
  align-items: center;

  position: relative;
  cursor: pointer;
  z-index: 1;
  transition: all 0.5s ease;
}

.dashboard-create-deck-card i,
.dashboard-create-deck-card p {
  color: #fff;
  font-size: 35px;
  transition: all 0.5s ease;
}

.dashboard-created-deck-card {
  height: 250px;

  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 10px;

  display: flex;
  flex-direction: column;

  position: relative;
  cursor: pointer;
  z-index: 1;
  transition: all 0.5s ease;
}

.dashboard-created-deck-card .created-deck-header {
  height: 20%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 10px;
}

.created-deck-header p {
  color: #fff;
  font-size: 24px;
}

.created-deck-header .deck-options-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.deck-options-wrapper .deck-options-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.deck-options-wrapper .deck-options-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.deck-options-wrapper .deck-options-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.deck-options-menu .option-item {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.delete-deck-option {
  color: #ff6b6b !important;
}

.option-item i {
  font-size: 14px;
}

.dashboard-created-deck-card .created-deck-content {
  height: 80%;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.created-deck-content p {
  color: #fff;
}

.created-deck-content .created-deck-category-wrapper {
  height: 20%;

  display: flex;
  align-items: flex-start;
  font-size: 16px;

  padding: 0 12px;
}

.created-deck-content .created-deck-stats-wrapper {
  height: 20%;

  display: flex;
  align-items: center;
  font-size: 16px;

  padding: 0 12px;
  gap: 5px;
}

.created-deck-content .created-deck-percent-wrapper {
  height: 20%;

  display: flex;
  align-items: center;
  font: 16px;

  padding: 0 12px;
}

.created-deck-percent-wrapper .deck-percentage {
  width: 100%;
  height: 4vh;
}

.created-deck-content .created-deck-last-studied-wrapper {
  height: 20%;

  display: flex;
  align-items: center;
  font: 16px;

  padding: 0 12px;
}

.dashboard-menu-bar-mobile {
  display: none;
}

.dashboard-header-right button {
  display: none;
}

@media (max-width: 768px) {
  .dashboard-sidebar-section {
    display: none;
  }

  .dashboard-main-content {
    width: 100%;
    padding: 10px 0;
  }

  .dashboard-header {
    width: 100%;
    flex-direction: column-reverse;
    text-align: center;

    position: relative;
    gap: 20px;
  }

  .dashboard-header .dashboard-menu-bar-mobile {
    width: 100%;
    height: 50vh;
    background: #1a0033;
    border: 2px solid #9d4edd;
    border-radius: 0 0 30px 30px;

    display: none;

    position: absolute;
    top: -410px;
    left: 0;
    z-index: 10;

    transition: top 0.5s ease;
  }

  .dashboard-header-right button {
    width: 20%;
    color: #fff;
    background: #1a0033;
    border: solid 2px #9d4edd;
    border-radius: 5px;

    display: block;
  }

  .dashboard-header-right p {
    font-size: 30px;
  }

  .dashboard-menu-bar-mobile .dashboard-mobile-header {
    width: 100%;
    height: 20%;

    display: flex;
    justify-content: right;

    padding: 5px 10px;
  }

  .dashboard-mobile-header button {
    width: 10%;
    height: 80%;

    color: #fff;
    background: #780000;
    border: 2px solid #9d4edd;
    border-radius: 5px;

    display: inline;
  }

  .dashboard-menu-bar-mobile .dashboard-mobile-content {
    width: 100vw;
    height: 80%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 20px;
  }

  .dashboard-mobile-content .dashboard-mobile-decks-inner {
    width: 40%;
    height: 30%;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .dashboard-mobile-decks-inner .dashboard-mobile-sphere {
    width: 5%;
    height: 60%;
    background: rgb(214, 101, 255);

    border-radius: 45%;
  }

  .dashboard-mobile-decks-inner .dashboard-mobile-div {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: #fff;
    background: #1a0033;
    border: 2px solid #9d4edd;
    border-radius: 5px;
    text-align: center;
  }

  .dashboard-mobile-content a {
    color: #fff;
    font-size: 20px;
    padding: 5px 9px;
    background: #1a0033;
    border: 2px solid #9d4edd;
    border-radius: 10px;
  }

  .dashboard-mobile-content button {
    width: 40%;
    height: 15%;

    color: #fff;
    background: #1a0033;
    border: 2px solid #9d4edd;
    border-radius: 5px;
  }

  .dashboard-header .dashboard-header-right {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .dashboard-header-left h1 {
    font-size: 35px;
  }

  .dashboard-header-left p {
    font-size: 16px;
  }

  .dashboard-search-bar {
    width: 100%;

    display: flex;
    justify-content: center;
  }

  .dashboard-search-bar .search-input {
    width: 80vw;
  }

  .dashboard-search-bar .clear-search {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    display: none;
    cursor: pointer;
  }

  .dashboard-decks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .dashboard-create-deck-card i {
    font-size: 16px;
  }

  .dashboard-create-deck-card p {
    font-size: 20px;
  }

  .created-deck-header p {
    font-size: 20px;
  }

  .created-deck-stats-wrapper p {
    text-align: center;
    font-size: 14px;
  }
}

/* ================= CREATE AND EDIT DECK ================= */

.create-deck-main-page {
  width: 100%;
  height: 100vh;

  display: flex;
  flex-direction: column;
}

.create-deck-main-page .create-deck-header {
  width: 100%;
  height: 10vh;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 18px;
}

.create-deck-header a {
  color: #fff;
  font-size: 20px;
  padding: 10px 18px;
  text-decoration: none;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 10px;
  transition: all 0.5s ease;
}

.create-deck-header p {
  color: #fff;
  font-size: 35px;
}

.create-deck-container {
  height: 90vh;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.create-deck-container .create-deck-content-header,
.create-deck-container .edit-deck-content-header {
  width: 100%;
  height: 20vh;

  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 18px;

  border-bottom: solid 1px #fff;
}

.create-deck-content-header p {
  font-size: 45px;
  font-weight: bold;
  color: #fff;
}

.edit-deck-content-header h1 {
  font-size: 45px;
  font-weight: bold;
  color: #fff;
}

.edit-deck-content-header p {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}

.create-deck-container .create-deck-content {
  width: 100%;
  height: 65vh;

  padding: 10px 18px;
}

.create-deck-content p {
  color: #fff;
  font-size: 35px;
  font-weight: bold;
}

.create-deck-content .create-deck-form {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  gap: 20px;
}

.create-deck-form label {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
}

.create-deck-form input {
  width: 80%;
  height: 60px;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 0 18px;
  transition: all 0.3s ease;
}

.create-deck-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.create-deck-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: #d665ff;
  box-shadow: 0 0 0 3px rgba(214, 101, 255, 0.2);
}

.create-deck-container .create-deck-footer {
  width: 100%;
  height: 10vh;

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 20px;
  margin-top: 40px;
  padding: 20px;
}

.create-deck-footer button {
  width: 200px;
  height: 60px;
  color: #fff;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  font-size: 20px;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;

  border-radius: 15px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.create-deck-cancel-btn {
  background: transparent !important;
}

@media (max-width: 768px) {
  .create-deck-header a {
    padding: 5px 9px;
    font-size: 12px;
  }

  .create-deck-header p {
    font-size: 25px;
  }

  .create-deck-content-header p {
    font-size: 28px;
  }

  .create-deck-content p {
    font-size: 24px;
  }

  .create-deck-footer button {
    width: 150px;
  }
}

/* ================= FLASHCARD ================= */

.flashcard-header {
  width: 100%;
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  gap: 15px;
}

.flashcard-back-button {
  min-width: 180px;
  height: 40px;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 30px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  padding: 0 20px;
}

.flashcard-back-button:hover {
  background: #5a0078;
  transform: translateX(-3px);
}

.flashcard-back-button i {
  margin-right: 8px;
}

.flashcard-header .logo {
  font-size: 35px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 1px;
}

.flashboard-container {
  width: 100%;
  min-height: 100vh;
}

.flashboard-section {
  width: 100%;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.flashboard-section-header {
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
}

.subject-title {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.card-info {
  font-size: 16px;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.8);
}

.flashboard-button-container {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.flashboard-button-container button {
  min-width: 150px;
  height: 35px;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0 15px;
}

.flashboard-button-container button:hover {
  background: #5a0078;
  transform: translateY(-2px);
}

.category-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.category-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #480060;
  border: 2px solid #9d4edd;
  border-radius: 10px;
  min-width: 180px;
  max-height: 250px;
  overflow-y: auto;
  display: none;
  z-index: 3000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.category-dropdown.show {
  display: block;
}

.category-item {
  padding: 12px 16px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.category-item:last-child {
  border-bottom: none;
}

.category-item:hover {
  background: #5a0078;
}

.category-item.active {
  background: #7e22ce;
  font-weight: bold;
}

.flashcard-index {
  font-size: 18px;
  margin-bottom: 20px;
  opacity: 0.9;
  color: #fff;
  position: relative;
  z-index: 5;
}

.flashcard-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 10;
}

.flashcard-nav-btn {
  flex-shrink: 0;
}

.flashcard-nav-btn button {
  width: 50px;
  height: 50px;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 10px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flashcard-nav-btn button:hover:not(:disabled) {
  background: #5a0078;
  transform: scale(1.1);
}

.flashcard-nav-btn button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.flashcard-mobile-nav {
  display: none;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
  width: 100%;
  max-width: 700px;
}

.mobile-nav-btn {
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 10px;
  color: #fff;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
}

.mobile-nav-btn:hover:not(:disabled) {
  background: #5a0078;
  transform: translateY(-2px);
}

.mobile-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.flashcard-wrapper {
  flex: 1;
  max-width: 700px;
  height: 500px;
  perspective: 1000px;
  position: relative;
  z-index: 10;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flashcard-wrapper.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 30px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.flashcard-front {
  z-index: 20;
}

.flashcard-back {
  transform: rotateY(180deg);
  z-index: 10;
}

.flashcard-wrapper.flipped .flashcard-front {
  z-index: 10;
  pointer-events: none;
}

.flashcard-wrapper.flipped .flashcard-back {
  z-index: 20;
  pointer-events: auto;
}

.flashcard-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 20px 0 80px 0;
  position: relative;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.flashcard-input,
.flashcard-submit-btn {
  pointer-events: auto;
}

.flashcard-question {
  color: #fff;
  font-size: 32px;
  text-align: center;
  font-weight: 500;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
  line-height: 1.4;

  max-height: 280px;
  overflow-y: auto;
  padding: 0 10px;

  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(157, 78, 221, 0.5) transparent;
}

.flashcard-question::-webkit-scrollbar {
  width: 6px;
}

.flashcard-question::-webkit-scrollbar-track {
  background: transparent;
}

.flashcard-question::-webkit-scrollbar-thumb {
  background: rgba(157, 78, 221, 0.5);
  border-radius: 3px;
}

.flashcard-question::-webkit-scrollbar-thumb:hover {
  background: rgba(157, 78, 221, 0.8);
}
.flashcard-input {
  width: 100%;
  max-width: 500px;
  height: 60px;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  padding: 0 20px;
  transition: all 0.3s ease;
}

.flashcard-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.flashcard-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: #d665ff;
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.3);
}

.flashcard-submit-btn {
  width: 200px;
  height: 50px;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.flashcard-submit-btn:hover {
  background: #5a0078;
  transform: translateY(-2px);
}

.answer-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  margin-bottom: -10px;
}

.flashcard-answer {
  color: #fff;
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
  line-height: 1.3;

  max-height: 320px;
  overflow-y: auto;
  padding: 0 10px;

  pointer-events: auto;

  scrollbar-width: thin;
  scrollbar-color: rgba(157, 78, 221, 0.5) transparent;
}

.flashcard-answer::-webkit-scrollbar {
  width: 8px;
}

.flashcard-answer::-webkit-scrollbar-track {
  background: transparent;
}

.flashcard-answer::-webkit-scrollbar-thumb {
  background: rgba(157, 78, 221, 0.5);
  border-radius: 4px;
}

.flashcard-answer::-webkit-scrollbar-thumb:hover {
  background: rgba(157, 78, 221, 0.8);
}

.flashcard-options-wrapper {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.flashcard-options-btn {
  width: 40px;
  height: 40px;
  background: rgba(72, 0, 96, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flashcard-options-btn:hover {
  background: rgba(90, 0, 120, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(157, 78, 221, 0.4);
}

.flashcard-options-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  background: #480060;
  border: 2px solid #9d4edd;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  z-index: 5000;

  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.flashcard-options-menu.show {
  display: flex !important;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.option-item {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-item:last-child {
  border-bottom: none;
}

.option-item:hover {
  background: rgba(90, 0, 120, 0.6);
}

.edit-option:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.delete-option {
  color: #ff6b6b;
}

.delete-option:hover {
  background: rgba(239, 68, 68, 0.2);
}

.option-item i {
  font-size: 14px;
  width: 16px;
}

.reveal-btn,
.back-btn {
  position: absolute;
  bottom: 30px;
  right: 30px;

  width: 160px;
  height: 45px;

  background: rgba(157, 78, 221, 0.3);
  border: 2px solid #9d4edd;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;

  z-index: 150;
  pointer-events: auto;

  display: flex;
  align-items: center;
  justify-content: center;
}

.reveal-btn:hover,
.back-btn:hover {
  background: #5a0078;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(157, 78, 221, 0.5);
  border-color: #d665ff;
}

.reveal-btn:active,
.back-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(157, 78, 221, 0.4);
}
.empty-state {
  flex: 1;
  max-width: 700px;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 30px;
  padding: 60px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.empty-state i {
  color: #fff;
  font-size: 80px;
  opacity: 0.3;
  margin-bottom: 20px;
}

.empty-state h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #fff;
}

.empty-state p {
  font-size: 18px;
  opacity: 0.8;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }

  .flashcard-mobile-nav {
    display: flex;
  }

  .flashcard-header {
    padding: 15px;
    min-height: 70px;
  }

  .flashcard-back-button {
    min-width: 150px;
    font-size: 13px;
    height: 38px;
  }

  .flashcard-header .logo {
    font-size: 28px;
  }

  .flashboard-section {
    padding: 15px 10px;
  }

  .subject-title {
    font-size: 28px;
  }

  .card-info {
    font-size: 14px;
  }

  .flashboard-button-container {
    gap: 10px;
  }

  .flashboard-button-container button {
    min-width: 120px;
    height: 32px;
    font-size: 11px;
  }

  .flashcard-index {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .flashcard-container {
    flex-direction: column;
    gap: 0;
  }

  .flashcard-wrapper {
    width: 100%;
    max-width: 100%;
    height: 500px;
    min-height: 500px;
  }

  .flashcard-inner {
    height: 100%;
  }

  .flashcard-front,
  .flashcard-back {
    padding: 60px 25px 70px 25px;
    height: 100%;
    min-height: 500px;
  }

  .flashcard-front {
    z-index: 50 !important;
    pointer-events: auto !important;
  }

  .flashcard-back {
    z-index: 10 !important;
    pointer-events: none !important;
  }

  .flashcard-wrapper.flipped .flashcard-front {
    z-index: 10 !important;
    pointer-events: none !important;
  }

  .flashcard-wrapper.flipped .flashcard-back {
    z-index: 50 !important;
    pointer-events: auto !important;
  }

  .flashcard-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 20px 0 100px 0 !important;
    height: auto !important;
    min-height: 300px !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
    pointer-events: none !important;
    overflow: hidden !important;
  }

  .flashcard-wrapper.flipped .flashcard-back .flashcard-content {
    padding-bottom: 110px !important;
  }

  .flashcard-question {
    display: block !important;
    font-size: 22px !important;
    line-height: 1.4 !important;
    color: #fff !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    text-align: center !important;

    max-height: 220px !important;
    overflow-y: auto !important;
    padding: 0 10px !important;
    pointer-events: auto !important;
  }

  .flashcard-input {
    display: block !important;
    max-width: 100% !important;
    width: calc(100% - 30px) !important;
    height: 50px !important;
    font-size: 16px !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
    pointer-events: auto !important;
  }

  .flashcard-submit-btn {
    display: block !important;
    width: calc(100% - 60px) !important;
    max-width: 250px !important;
    height: 45px !important;
    font-size: 15px !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
    pointer-events: auto !important;
  }

  .answer-label {
    font-size: 16px !important;
  }

  .flashcard-answer {
    display: block !important;
    font-size: 32px !important;
    line-height: 1.3 !important;
    color: #fff !important;
    visibility: visible !important;
    opacity: 1 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;

    max-height: 250px !important;
    overflow-y: auto !important;
    padding: 0 10px !important;
    pointer-events: auto !important;
  }

  .flashcard-options-wrapper {
    top: 15px;
    right: 15px;
    z-index: 200;
  }

  .flashcard-options-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .flashcard-front .reveal-btn {
    position: absolute !important;
    bottom: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 180px !important;
    height: 48px !important;
    font-size: 15px !important;
    z-index: 500 !important;
    pointer-events: auto !important;
    background: rgba(157, 78, 221, 0.4) !important;
    border: 2px solid #9d4edd !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(157, 78, 221, 0.3) !important;
  }

  .flashcard-back .back-btn {
    position: absolute !important;
    bottom: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 180px !important;
    height: 48px !important;
    font-size: 15px !important;
    z-index: 500 !important;
    pointer-events: auto !important;
    background: rgba(157, 78, 221, 0.4) !important;
    border: 2px solid #9d4edd !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(157, 78, 221, 0.3) !important;
  }

  .flashcard-wrapper.flipped .back-btn {
    z-index: 600 !important;
    pointer-events: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .reveal-btn:hover,
  .back-btn:hover {
    background: #5a0078 !important;
  }

  .reveal-btn:active,
  .back-btn:active {
    transform: translateX(-50%) scale(0.95) !important;
  }

  .empty-state {
    height: 500px;
    padding: 40px 20px;
  }

  .empty-state i {
    font-size: 60px;
  }

  .empty-state h2 {
    font-size: 24px;
  }

  .empty-state p {
    font-size: 16px;
  }

  .mobile-nav-btn {
    padding: 12px 18px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .flashcard-header {
    padding: 12px;
  }

  .flashcard-wrapper {
    height: 450px;
    min-height: 450px;
  }

  .flashcard-front,
  .flashcard-back {
    padding: 50px 20px 65px 20px;
    min-height: 450px;
  }

  .flashcard-content {
    min-height: 280px !important;
  }

  .flashcard-question {
    font-size: 20px !important;
    max-height: 200px !important;
  }

  .flashcard-answer {
    font-size: 28px !important;
    max-height: 220px !important;
  }

  .mobile-nav-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .reveal-btn,
  .back-btn {
    width: 170px !important;
    height: 46px !important;
    font-size: 14px !important;
  }
}

/* ================= CREATE AND EDIT FLASHCARD ================= */

.create-flashcard-main-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.create-flashcard-main-page .create-flashcard-header {
  width: 100%;
  height: 10vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
}

.create-flashcard-header a {
  color: #fff;
  font-size: 20px;
  padding: 10px 18px;
  text-decoration: none;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.create-flashcard-header a:hover {
  background: #5a0078;
  transform: translateY(-2px);
}

.create-flashcard-header a i {
  margin-right: 8px;
}

.create-flashcard-header p {
  color: #fff;
  font-size: 35px;
  font-weight: 400;
}

.create-flashcard-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.create-flashcard-container .create-flashcard-content-header {
  width: 100%;
  min-height: 20vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 18px;
  border-bottom: solid 1px #fff;
}

.create-flashcard-content-header h1 {
  font-size: 45px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}

.create-flashcard-content-header p {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}

.create-flashcard-content-header span {
  color: #fff;
}

.create-flashcard-container .create-flashcard-content {
  width: 100%;
  flex: 1;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
}

.create-flashcard-content > p {
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  margin-bottom: 20px;
}

.create-flashcard-content .create-flashcard-form,
.create-flashcard-content .edit-flashcard-form {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  gap: 20px;
}

.create-flashcard-form label,
.edit-flashcard-form label {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
}

.create-flashcard-form input,
.edit-flashcard-form input {
  width: 80%;
  height: 60px;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 0 18px;
  transition: all 0.3s ease;
}

.create-flashcard-form input::placeholder,
.edit-flashcard-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.create-flashcard-form input:focus,
.edit-flashcard-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: #d665ff;
  box-shadow: 0 0 0 3px rgba(214, 101, 255, 0.2);
}

.create-flashcard-footer {
  width: 100%;
  min-height: 10vh;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding: 20px;
}

.create-flashcard-footer button {
  width: 200px;
  height: 60px;
  color: #fff;
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  font-size: 20px;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  border: 2px solid #fff;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.create-flashcard-cancel-btn {
  background: transparent !important;
}

@media (max-width: 768px) {
  .create-flashcard-header a {
    padding: 5px 9px;
    font-size: 12px;
  }

  .create-flashcard-header p {
    font-size: 25px;
  }

  .create-flashcard-content-header h1 {
    font-size: 28px;
  }

  .create-flashcard-content p {
    font-size: 24px;
  }

  .create-flashcard-footer button {
    width: 150px;
  }
}

/* ================= PROFILE ================= */
.profile-main-page {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a0033 0%, #0d001a 100%);
  padding: 40px 20px;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.profile-back-button {
  background: transparent;
  border: 2px solid #9d4edd;
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-back-button:hover {
  background: #9d4edd;
  transform: translateX(-5px);
  box-shadow: 0 5px 15px rgba(157, 78, 221, 0.3);
}

.logo {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
}

.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.profile-section {
  background: rgba(157, 78, 221, 0.15);
  border: 2px solid #9d4edd;
  border-radius: 16px;
  padding: 40px 50px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(157, 78, 221, 0.2);
}

.profile-section h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.user-info-content {
  display: flex;
  justify-content: space-around;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.user-info-content p {
  color: #fff;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  text-align: center;
}

.user-info-content span {
  color: #c77dff;
  font-weight: 700;
  font-size: 20px;
}

.stats-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(199, 125, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(199, 125, 255, 0.2);
  transform: translateY(-5px);
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 500;
}

.stat-value {
  color: #c77dff;
  font-size: 48px;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(199, 125, 255, 0.5);
}

.most-studied-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.studied-deck-item {
  background: rgba(199, 125, 255, 0.1);
  border: 2px solid rgba(199, 125, 255, 0.3);
  border-radius: 12px;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.studied-deck-item:hover {
  background: rgba(199, 125, 255, 0.25);
  border-color: #9d4edd;
  transform: translateX(10px);
  box-shadow: 0 5px 20px rgba(157, 78, 221, 0.3);
}

.studied-deck-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.deck-rank {
  color: #9d4edd;
  font-size: 32px;
  font-weight: 700;
  min-width: 40px;
}

.deck-name {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.deck-cards {
  color: rgba(199, 125, 255, 0.8);
  font-size: 14px;
}

.deck-study-btn {
  background: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%);
  border: none;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.deck-study-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(157, 78, 221, 0.4);
}

.no-data {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-style: italic;
  padding: 40px;
  font-size: 18px;
}

.profile-logout-btn {
  background: linear-gradient(135deg, #c1121f 0%, #780000 100%);
  border: none;
  color: #fff;
  padding: 18px 40px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 30px auto 0;
  min-width: 250px;
  letter-spacing: 1px;
}

.profile-logout-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(193, 18, 31, 0.5);
}

.profile-logout-btn:active {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .profile-main-page {
    padding: 20px 15px;
  }

  .profile-header {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }

  .logo {
    font-size: 24px;
  }

  .profile-section {
    padding: 25px 20px;
  }

  .profile-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .user-info-content {
    flex-direction: column;
    gap: 20px;
  }

  .user-info-content p {
    font-size: 16px;
  }

  .stats-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-value {
    font-size: 36px;
  }

  .studied-deck-item {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .studied-deck-info {
    flex-direction: column;
    gap: 10px;
  }

  .deck-rank {
    font-size: 28px;
  }

  .profile-logout-btn {
    min-width: 200px;
    padding: 16px 32px;
  }
}

@media (max-width: 480px) {
  .profile-back-button {
    padding: 12px 20px;
    font-size: 14px;
  }

  .stat-value {
    font-size: 28px;
  }
}
