/**
 * Mobile responsive overrides
 * Loads AFTER main.css — only targets the custom block appended at the
 * bottom of main.css (chat widget + tutor dashboard). The theme's own
 * components (tu-* classes) already have full responsive support built
 * into main.css and are intentionally left untouched here.
 */

/* ---------- Chat widget ---------- */
@media (max-width: 767px) {
  #check:checked ~ .wrapper {
    width: calc(100% - 20px);
    right: 10px;
    left: 10px;
    bottom: 90px;
    height: 70vh;
    max-height: 500px;
  }

  .chat-btn {
    right: 10px;
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  #check:checked ~ .wrapper {
    height: 75vh;
  }

  .chat-header {
    padding: 10px;
  }

  .chat-form {
    padding: 10px;
  }
}

/* ---------- Tutor dashboard: profile summary ---------- */
@media (max-width: 767px) {
  .profile-summary {
    flex-direction: column;
    text-align: center;
  }

  .profile-summary img {
    width: 80px;
    height: 80px;
    margin: 0 0 10px 0;
  }

  .profile-summary .user-summary {
    width: 100%;
    align-items: center;
  }
}

/* ---------- Tutor dashboard: counter cards ---------- */
@media (max-width: 767px) {
  .card-counter {
    height: auto;
    min-height: 100px;
    margin: 8px 0;
  }

  .count-section {
    float: none;
    align-items: flex-start;
    width: 100%;
  }

  .card-counter i {
    font-size: 3em;
  }
}

@media (max-width: 480px) {
  .card-counter .count-numbers {
    font-size: 24px;
  }

  .card-counter .count-name {
    font-size: 14px;
  }
}

/* ---------- Tutor dashboard: drawer / list sections ---------- */
@media (max-width: 480px) {
  .drawer-options {
    margin: 10px 0;
  }

  .list-section h4,
  .gray-header {
    padding: 8px;
  }
}