/*
Theme Name: PlanMyExam UPSC
Theme URI: https://planmyexam.com/
Author: Team PlanMyExam
Author URI: https://planmyexam.com/
Description: Classic WordPress theme for UPSC preparation website.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: planmyexam-upsc
Tags: education, exam, upsc, classic-theme
*/
.toggle-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}



/* ===============================
   Smooth Progress Dial Animation
   =============================== */
#progressArc {
  transition: stroke-dashoffset 0.8s ease-in-out, stroke 0.3s ease;
}

#progressPercent {
  transition: color 0.4s ease, transform 0.3s ease;
}

#progressPercent.updating {
  transform: scale(1.1);
  color: #10b981; /* green highlight during update */
}





.timer-section {
    text-align: center;
    margin-top: 30px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timer-dial {
    position: relative;
    display: inline-block;
}

.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.timer-controls button {
    margin: 10px 5px;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    background-color: #4caf50;
    color: #fff;
    cursor: pointer;
}

.timer-controls button:hover {
    background-color: #43a047;
}






.calendar-section::-webkit-scrollbar {
  height: 6px;
}

.calendar-section::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

#calendarDays button.active {
  background-color: #007bff;
  color: white;
  border-radius: 8px;
}

#calendarDays button {
  transition: background 0.2s;
}

#calendarGrid .hour-row {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #f1f1f1;
  padding: 8px 0;
  font-size: 0.9rem;
  color: #444;
}






#calendarGrid {
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

#calendarGrid::-webkit-scrollbar {
  width: 6px;
}

#calendarGrid::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 10px;
}

#calendarGrid .hour-row {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #f2f2f2;
  padding: 6px 0;
  height: 36px; /* each row roughly same height */
  font-size: 0.9rem;
  color: #555;
}





.calendar-grid-container {
  height: 200px;              /* 👈 shows only ~5 slots */
  max-height: 200px;
  overflow-y: auto;           /* enables vertical scroll */
  position: relative;
}

#calendarGrid .hour-row {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #f2f2f2;
  padding: 8px 0;
  height: 40px;               /* 👈 fixed height per slot */
  font-size: 0.9rem;
  color: #555;
}

#calendarGrid::-webkit-scrollbar {
  width: 6px;
}

#calendarGrid::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}






/* 🔴 Current time indicator line */
.current-time-line {
  position: absolute;
  left: 70px; /* adjust based on your time label width */
  right: 10px;
  height: 2px;
  background-color: #ef4444; /* red line */
  z-index: 10;
}



#calendarGrid {
  position: relative; /* ensure the line positions inside */
}



.current-time-line::before {
  content: "";
  position: absolute;
  left: -6px;
  top: -3px;
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
}




.rotate-180 {
  transform: rotate(180deg);
}



body.page-id-XXX #pmeCalendar { 
  height: 90vh !important;
}
.fc { 
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}



#dashboardPomodoro {
  max-width: 300px;
  margin: 20px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
#pomodoroPreview {
  font-family: "Inter", sans-serif;
}


#openActivitiesBtn span:first-child {
  font-size: 1.25rem;
  line-height: 1;
}


.activity-reading {
  background: #fed7aa; /* orange-200 like */
  color: #7c2d12;      /* orange-800 like */
  display: flex;
  align-items: center;
  justify-content: center;
}
.activity-reading:hover { background: #fdba74; }

.activity-planning {
  background: #bae6fd; /* sky-200 like */
  color: #075985;      /* sky-800 like */
  display: flex;
  align-items: center;
  justify-content: center;
}
.activity-planning:hover { background: #7dd3fc; }

















/* ===========================
   MOBILE LAYOUT FIX (up to 768px)
=========================== */
@media only screen and (max-width: 768px) {

  /* Collapse sidebar by default */
  .dashboard-container .sidebar {
    display: none !important;
    width: 100%;
  }

  /* Show when toggle button clicked */
  .dashboard-container .sidebar.show {
    display: block !important;
    background: #fff;
    position: relative;
    z-index: 999;
  }

  /* Make layout vertical */
  .dashboard-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
  }

  /* Main content takes full width */
  .dashboard-container .main-content {
    width: 100% !important;
    padding: 10px !important;
  }

  /* Stack dashboard cards vertically */
  .dashboard-card {
    width: 100% !important;
    margin-bottom: 15px !important;
  }

  /* Allow vertical scrolling */
  html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  /* Header responsiveness */
  header, .top-bar {
    flex-wrap: wrap !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .top-bar button,
  .top-bar a {
    font-size: 14px !important;
    padding: 6px 10px !important;
  }

  /* Show the Menu button only on mobile */
  .sidebar-toggle {
    display: block !important;
    width: 100%;
    background: #007bff;
    color: #fff;
    padding: 12px;
    border: none;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
  }
}

/* Hide the menu button on larger screens */
@media only screen and (min-width: 769px) {
  .sidebar-toggle {
    display: none !important;
  }
}
