/* ==========================================
   WEEKLY PLANNER - STYLE.CSS
   Dark theme SaaS dashboard
   ========================================== */

/* === RESET & BASE === */
/* *,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
} */

/* === APP WRAPPER (replaces body) === */
.planner-app {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: row;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
}

/* === DARK MODE (default) === */
.planner-app.dark-mode {
    background: #0f172a;
    color: #e2e8f0;
}

/* === LIGHT MODE === */
.planner-app.light-mode {
    background: #f1f5f9;
    color: #1e293b;
}

/* ==========================================
   SIDEBAR
   ========================================== */

.sidebar {
    width: 248px;
    min-width: 248px;
    height: auto;
    min-height: 100%;
    position: sticky;
    top: 0;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 200;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}

.circular-progress-container svg{
	width:96px !important;
}

.planner-app.dark-mode .sidebar {
    background: #111827;
    border-right: 1px solid #1f2937;
}

.planner-app.light-mode .sidebar {
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.06);
}

.sidebar-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-header {
    padding: 20px 20px 16px !important;
    border-bottom: 1px solid transparent !important;
}

.planner-app.dark-mode .sidebar-header {
    border-color: #1f2937;
}

.planner-app.light-mode .sidebar-header {
    border-color: #f1f5f9;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-logo{
    width:42px;
    height:42px;
    object-fit:contain;
    border-radius:10px;
}

.brand-name{
    font-size:20px;
    font-weight:700;
    color:#fff;
}

.logo-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #7c3aed22, #6d28d922) !important;
    border: 1px solid #7c3aed33 !important;
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.planner-app.dark-mode .logo-text {
    color: #f1f5f9;
}

.planner-app.light-mode .logo-text {
    color: #1e293b;
}

/* === SIDEBAR NAV === */
.sidebar-nav {
    padding: 12px 12px 8px;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px !important;
    border-radius: 10px !important;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
    user-select: none;
}

.planner-app.dark-mode .nav-item {
    color: #94a3b8;
}

.planner-app.light-mode .nav-item {
    color: #64748b;
}

.planner-app.dark-mode .nav-item:hover {
    background: #1f2937;
    color: #e2e8f0;
}

.planner-app.light-mode .nav-item:hover {
    background: #f8fafc;
    color: #1e293b;
}

.planner-app.dark-mode .nav-item.active {
    background: linear-gradient(135deg, #7c3aed1a, #6d28d91a);
    color: #a78bfa;
    border: 1px solid #7c3aed22;
}

.planner-app.light-mode .nav-item.active {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ede9fe;
}

.nav-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* === SIDEBAR SECTION === */
.sidebar-section {
    padding: 16px 12px 12px !important;
    border-top: 1px solid transparent !important;
}

.planner-app.dark-mode .sidebar-section {
    border-color: #1f2937;
}

.planner-app.light-mode .sidebar-section {
    border-color: #f1f5f9;
}

.section-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 4px 10px;
}

.planner-app.dark-mode .section-title {
    color: #475569;
}

.planner-app.light-mode .section-title {
    color: #94a3b8;
}

/* === PROJECT LIST === */
.project-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: background 0.2s ease;
}

.planner-app.dark-mode .project-item:hover {
    background: #1f2937;
}

.planner-app.light-mode .project-item:hover {
    background: #f8fafc;
}

.project-dot {
    width: 8px;
    height: 8px;
    border-radius: 50% !important;
    flex-shrink: 0;
}

.dot-work {
    background: #a78bfa !important;
}

.dot-study {
    background: #60a5fa !important;
}

.dot-personal {
    background: #34d399 !important;
}

.dot-health {
    background: #fb923c;
}

.dot-other {
    background: #94a3b8;
}

.project-name {
    font-size: 0.84rem;
    font-weight: 500;
    flex: 1;
}

.planner-app.dark-mode .project-name {
    color: #94a3b8;
}

.planner-app.light-mode .project-name {
    color: #64748b;
}

.project-count {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
}

.planner-app.dark-mode .project-count {
    background: #1f2937;
    color: #64748b;
}

.planner-app.light-mode .project-count {
    background: #f1f5f9;
    color: #94a3b8;
}

/* === CIRCULAR PROGRESS === */
.progress-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.circular-progress-container {
    position: relative !important;
    width: 96px !important;
    height: 96px !important;
}

.circular-progress {
    transform: rotate(-90deg) !important;
}

.progress-track {
    fill: none !important;
    stroke-width: 8;
}

.planner-app.dark-mode .progress-track {
    stroke: #1f2937 !important;
}

.planner-app.light-mode .progress-track {
    stroke: #e2e8f0 !important;
}

.progress-fill {
    fill: none;
    stroke: #7c3aed !important;
    stroke-width: 8;
    stroke-linecap: round !important;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 6px #7c3aed66);
}

.progress-label {
    position: absolute !important;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-pct {
    font-size: 1.05rem;
    font-weight: 700;
}

.planner-app.dark-mode .progress-pct {
    color: #e2e8f0;
}

.planner-app.light-mode .progress-pct {
    color: #1e293b;
}

.progress-stats {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.stat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stat-dot-done {
    background: #34d399;
}

.stat-dot-pending {
    background: #fbbf24;
}

.stat-dot-total {
    background: #60a5fa;
}

.stat-label {
    flex: 1;
}

.planner-app.dark-mode .stat-label {
    color: #64748b;
}

.planner-app.light-mode .stat-label {
    color: #94a3b8;
}

.stat-val {
    font-weight: 600;
}

.planner-app.dark-mode .stat-val {
    color: #e2e8f0;
}

.planner-app.light-mode .stat-val {
    color: #1e293b;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

.main-content {
    flex: 1;
    min-width: 0;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ==========================================
   TOP BAR
   ========================================== */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.planner-app.dark-mode .topbar {
    background: #111827cc;
    border-bottom: 1px solid #1f2937;
    backdrop-filter: blur(12px);
}

.planner-app.light-mode .topbar {
    background: #ffffffcc;
    border-bottom: 1px solid #e2e8f0;
    backdrop-filter: blur(12px);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    padding: 7px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.planner-app.dark-mode .hamburger-btn {
    color: #94a3b8;
}

.planner-app.light-mode .hamburger-btn {
    color: #64748b;
}

.planner-app.dark-mode .hamburger-btn:hover {
    background: #1f2937;
    color: #e2e8f0;
}

.planner-app.light-mode .hamburger-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.week-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.week-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px !important;
    border: none;
    background: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0 !important;
}

.planner-app.dark-mode .week-btn {
    color: #94a3b8;
}

.planner-app.light-mode .week-btn {
    color: #64748b;
}

.planner-app.dark-mode .week-btn:hover {
    background: #1f2937;
    color: #e2e8f0;
}

.planner-app.light-mode .week-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.week-range {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 6px;
    white-space: nowrap;
}

.planner-app.dark-mode .week-range {
    color: #e2e8f0;
}

.planner-app.light-mode .week-range {
    color: #1e293b;
}

.today-btn {
    padding: 6px 14px !important;
    border-radius: 8px;
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.planner-app.dark-mode .today-btn {
    background: #1f2937;
    color: #94a3b8;
    border: 1px solid #374151;
}

.planner-app.light-mode .today-btn {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.planner-app.dark-mode .today-btn:hover {
    background: #374151;
    color: #e2e8f0;
}

.planner-app.light-mode .today-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    background: none !important;
    padding: 0 !important;
    position: relative;
}

.planner-app.dark-mode .icon-btn {
    color: #94a3b8;
}

.planner-app.light-mode .icon-btn {
    color: #64748b;
}

.planner-app.dark-mode .icon-btn:hover {
    background: #1f2937;
    color: #e2e8f0;
}

.planner-app.light-mode .icon-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Search */
.search-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    overflow: hidden;
    max-width: 0;
    transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.search-input-wrap.open {
    max-width: 220px;
    opacity: 1;
}

.search-input {
    background: none;
    border: none;
    outline: none;
    font-size: 0.875rem;
    font-family: inherit;
    width: 180px;
    padding: 4px 6px 4px 0;
}

.planner-app.dark-mode .search-input {
    color: #e2e8f0;
}

.planner-app.light-mode .search-input {
    color: #1e293b;
}

.planner-app.dark-mode .search-input::placeholder {
    color: #475569;
}

.planner-app.light-mode .search-input::placeholder {
    color: #94a3b8;
}

.search-clear-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.planner-app.dark-mode .search-clear-btn {
    color: #94a3b8;
}

.planner-app.light-mode .search-clear-btn {
    color: #64748b;
}

.search-clear-btn:hover {
    opacity: 1;
}

.add-task-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px !important;
    border-radius: 10px;
    border: none;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    box-shadow: 0 2px 12px #7c3aed44;
    white-space: nowrap;
}

.add-task-btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 18px #7c3aed55;
    transform: translateY(-1px);
}

.add-task-btn:active {
    transform: translateY(0);
}

/* ==========================================
   FILTER BAR
   ========================================== */

.filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    flex-wrap: wrap;
    border-bottom: 1px solid transparent;
}

.planner-app.dark-mode .filter-bar {
    border-color: #1f2937;
}

.planner-app.light-mode .filter-bar {
    border-color: #f1f5f9;
}

.filter-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-right: 4px;
}

.planner-app.dark-mode .filter-label {
    color: #475569;
}

.planner-app.light-mode .filter-label {
    color: #94a3b8;
}

.filter-btn {
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.planner-app.dark-mode .filter-btn {
    background: #1f2937;
    color: #64748b;
    border: 1px solid #374151;
}

.planner-app.light-mode .filter-btn {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.planner-app.dark-mode .filter-btn:hover {
    background: #374151;
    color: #e2e8f0;
}

.planner-app.light-mode .filter-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.filter-btn.active {
    background: linear-gradient(135deg, #7c3aed22, #6d28d922) !important;
    color: #a78bfa !important;
    border-color: #7c3aed44 !important;
}

.planner-app.light-mode .filter-btn.active {
    background: #f5f3ff !important;
    color: #7c3aed !important;
    border-color: #ede9fe !important;
}

/* ==========================================
   VIEWS
   ========================================== */

.view {
    display: none;
    flex: 1;
    padding: 20px 24px 24px;
    overflow-y: auto;
}

.view.active {
    display: block;
}

/* ==========================================
   WEEKLY BOARD
   ========================================== */

.weekly-board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    min-width: 0;
}

.day-column {
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 320px;
    padding: 12px 8px 12px;
    transition: all 0.2s ease;
}

.planner-app.dark-mode .day-column {
    background: #111827;
    border: 1px solid #1f2937;
}

.planner-app.light-mode .day-column {
    background: #ffffff;
    border: 1px solid #e9eef5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.day-column.drag-over {
    border-color: #7c3aed88 !important;
    background: #7c3aed08 !important;
    box-shadow: 0 0 0 2px #7c3aed22, inset 0 0 20px #7c3aed06 !important;
}

.day-column-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid transparent;
}

.planner-app.dark-mode .day-column-header {
    border-color: #1f2937;
}

.planner-app.light-mode .day-column-header {
    border-color: #f1f5f9;
}

.day-name {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.planner-app.dark-mode .day-name {
    color: #4b5563;
}

.planner-app.light-mode .day-name {
    color: #9ca3af;
}

.day-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.planner-app.dark-mode .day-number {
    color: #e2e8f0;
}

.planner-app.light-mode .day-number {
    color: #1e293b;
}

.day-number.today {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff !important;
    box-shadow: 0 2px 8px #7c3aed55;
}

.day-column.today-col .day-name {
    color: #a78bfa !important;
}

.add-task-mini-btn {
    width: 100%;
    padding: 5px 6px;
    border-radius: 7px;
    border: 1px dashed transparent;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    margin-top: 2px;
}

.planner-app.dark-mode .add-task-mini-btn {
    color: #374151;
    border-color: #374151;
}

.planner-app.light-mode .add-task-mini-btn {
    color: #cbd5e1;
    border-color: #e2e8f0;
}

.planner-app.dark-mode .add-task-mini-btn:hover {
    background: #1f2937;
    border-color: #7c3aed66;
    color: #a78bfa;
}

.planner-app.light-mode .add-task-mini-btn:hover {
    background: #f5f3ff;
    border-color: #c4b5fd;
    color: #7c3aed;
}

.day-tasks {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.empty-day {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    height: 60px;
    border-radius: 8px;
    border: 1px dashed transparent;
    transition: all 0.2s ease;
}

.planner-app.dark-mode .empty-day {
    color: #374151;
    border-color: #1f2937;
}

.planner-app.light-mode .empty-day {
    color: #d1d5db;
    border-color: #f1f5f9;
}

/* ==========================================
   TASK CARD
   ========================================== */

.task-card {
    border-radius: 10px;
    padding: 9px 10px 9px 14px;
    cursor: grab;
    border-left: 3px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
	    margin-top: 5px;
}

.planner-app.dark-mode .task-card {
    background: #1f2937;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.planner-app.light-mode .task-card {
    background: #f8fafc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid #f1f5f9;
}

.task-card:hover {
    transform: translateY(-2px);
}

.planner-app.dark-mode .task-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: #263040;
}

.planner-app.light-mode .task-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.task-card:active {
    cursor: grabbing;
    transform: scale(0.97);
}

.task-card.dragging {
    opacity: 0.8;
    transform: rotate(2deg);
    cursor: grabbing;
}

/* Category border colors */
.task-card.cat-work {
    border-left-color: #a78bfa;
}

.task-card.cat-study {
    border-left-color: #60a5fa;
}

.task-card.cat-personal {
    border-left-color: #34d399;
}

.task-card.cat-health {
    border-left-color: #fb923c;
}

.task-card.cat-other {
    border-left-color: #94a3b8;
}

.task-card.completed .task-title-text {
    color: #64748b;
    text-decoration: line-through;
}

.task-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.task-title-text {
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.35;
    transition: opacity 0.2s ease;
    word-break: break-word;
}

.planner-app.dark-mode .task-title-text {
    color: #e2e8f0;
}

.planner-app.light-mode .task-title-text {
    color: #1e293b;
}

.task-card-actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.task-card:hover .task-card-actions {
    opacity: 1;
}

.card-action-btn {
    width: 22px;
    height: 22px;
    border-radius: 5px !important;
    border: none !important;
    background: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px !important;
    transition: background 0.15s ease;
}

.planner-app.dark-mode .card-action-btn {
    color: #64748b !important;
}

.planner-app.light-mode .card-action-btn {
    color: #94a3b8 !important;
}

.planner-app.dark-mode .card-action-btn:hover {
    background: #374151 !important;
    color: #e2e8f0 !important;
}

.planner-app.light-mode .card-action-btn:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

.card-action-btn.delete-btn-card:hover {
    color: #f87171 !important;
    background: #f8717122 !important;
}

.card-action-btn.complete-btn-card.is-done {
    color: #34d399 !important;
}

.task-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.task-time-text {
    font-size: 0.7rem;
}

.planner-app.dark-mode .task-time-text {
    color: #4b5563;
}

.planner-app.light-mode .task-time-text {
    color: #9ca3af;
}

/* Priority badges */
.priority-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.priority-high {
    background: #ef444420;
    color: #f87171;
    border: 1px solid #ef444430;
}

.priority-medium {
    background: #f59e0b20;
    color: #fbbf24;
    border: 1px solid #f59e0b30;
}

.priority-low {
    background: #10b98120;
    color: #34d399;
    border: 1px solid #10b98130;
}

/* ==========================================
   BOTTOM SECTION (Upcoming + Summary)
   ========================================== */

.bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.bottom-card {
    border-radius: 16px;
    padding: 20px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.planner-app.dark-mode .bottom-card {
    background: #111827;
    border: 1px solid #1f2937;
}

.planner-app.light-mode .bottom-card {
    background: #ffffff;
    border: 1px solid #e9eef5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.bottom-card-header {
    margin-bottom: 16px;
}

.bottom-card-title {
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.planner-app.dark-mode .bottom-card-title {
    color: #e2e8f0;
}

.planner-app.light-mode .bottom-card-title {
    color: #1e293b;
}

.planner-app.dark-mode .bottom-card-title svg {
    color: #a78bfa;
}

.planner-app.light-mode .bottom-card-title svg {
    color: #7c3aed;
}

/* Upcoming list */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.upcoming-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.planner-app.dark-mode .upcoming-item {
    background: #1a2333;
    border: 1px solid #1f2937;
}

.planner-app.light-mode .upcoming-item {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.planner-app.dark-mode .upcoming-item:hover {
    background: #1f2937;
}

.planner-app.light-mode .upcoming-item:hover {
    background: #f1f5f9;
}

.upcoming-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.upcoming-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.upcoming-info {
    min-width: 0;
}

.upcoming-task-title {
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.planner-app.dark-mode .upcoming-task-title {
    color: #cbd5e1;
}

.planner-app.light-mode .upcoming-task-title {
    color: #334155;
}

.upcoming-task-date {
    font-size: 0.72rem;
    margin-top: 1px;
}

.planner-app.dark-mode .upcoming-task-date {
    color: #4b5563;
}

.planner-app.light-mode .upcoming-task-date {
    color: #94a3b8;
}

.empty-state-text {
    font-size: 0.82rem;
    text-align: center;
    padding: 20px 0;
}

.planner-app.dark-mode .empty-state-text {
    color: #374151;
}

.planner-app.light-mode .empty-state-text {
    color: #cbd5e1;
}

/* Progress summary grid */
.progress-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.planner-app.dark-mode .summary-card {
    background: #1a2333;
    border: 1px solid #1f2937;
}

.planner-app.light-mode .summary-card {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.summary-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-card-done .summary-icon {
    background: #10b98120;
    color: #34d399;
}

.summary-card-pending .summary-icon {
    background: #f59e0b20;
    color: #fbbf24;
}

.summary-card-total .summary-icon {
    background: #3b82f620;
    color: #60a5fa;
}

.summary-card-rate .summary-icon {
    background: #a78bfa20;
    color: #a78bfa;
}

.summary-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}

.planner-app.dark-mode .summary-num {
    color: #e2e8f0;
}

.planner-app.light-mode .summary-num {
    color: #1e293b;
}

.summary-lbl {
    display: block;
    font-size: 0.72rem;
    margin-top: 3px;
}

.planner-app.dark-mode .summary-lbl {
    color: #4b5563;
}

.planner-app.light-mode .summary-lbl {
    color: #94a3b8;
}

/* ==========================================
   VIEW HEADERS
   ========================================== */

.view-header {
    margin-bottom: 20px;
}

.view-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.planner-app.dark-mode .view-title {
    color: #f1f5f9;
}

.planner-app.light-mode .view-title {
    color: #0f172a;
}

/* ==========================================
   ALL TASKS VIEW
   ========================================== */

.all-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.planner-app.dark-mode .task-list-item {
    background: #111827;
    border-top: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
    border-right: 1px solid #1f2937;
}

.planner-app.light-mode .task-list-item {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.task-list-item:hover {
    transform: translateX(2px);
}

.planner-app.dark-mode .task-list-item:hover {
    background: #1a2333;
}

.planner-app.light-mode .task-list-item:hover {
    background: #fafbff;
}

.task-list-item.cat-work {
    border-left-color: #a78bfa;
}

.task-list-item.cat-study {
    border-left-color: #60a5fa;
}

.task-list-item.cat-personal {
    border-left-color: #34d399;
}

.task-list-item.cat-health {
    border-left-color: #fb923c;
}

.task-list-item.cat-other {
    border-left-color: #94a3b8;
}

.task-list-item.completed .tli-title {
    text-decoration: line-through;
    opacity: 0.45;
}

.tli-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.planner-app.dark-mode .tli-check {
    border-color: #374151;
}

.planner-app.light-mode .tli-check {
    border-color: #d1d5db;
}

.tli-check:hover {
    border-color: #a78bfa !important;
}

.tli-check.done {
    background: #10b981;
    border-color: #10b981 !important;
    color: #fff;
}

.tli-info {
    flex: 1;
    min-width: 0;
}

.tli-title {
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.planner-app.dark-mode .tli-title {
    color: #e2e8f0;
}

.planner-app.light-mode .tli-title {
    color: #1e293b;
}

.tli-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    flex-wrap: wrap;
}

.tli-day,
.tli-time {
    font-size: 0.73rem;
}

.planner-app.dark-mode .tli-day,
.planner-app.dark-mode .tli-time {
    color: #4b5563;
}

.planner-app.light-mode .tli-day,
.planner-app.light-mode .tli-time {
    color: #94a3b8;
}

.tli-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #4b5563;
    flex-shrink: 0;
}

.tli-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.task-list-item:hover .tli-actions {
    opacity: 1;
}

.tli-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s ease;
}

.planner-app.dark-mode .tli-action-btn {
    color: #4b5563;
}

.planner-app.light-mode .tli-action-btn {
    color: #94a3b8;
}

.planner-app.dark-mode .tli-action-btn:hover {
    background: #1f2937;
    color: #e2e8f0;
}

.planner-app.light-mode .tli-action-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.tli-action-btn.del:hover {
    color: #f87171 !important;
    background: #f8717122 !important;
}

/* ==========================================
   PROJECTS VIEW
   ========================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.project-card {
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s ease;
}

.planner-app.dark-mode .project-card {
    background: #111827;
    border: 1px solid #1f2937;
}

.planner-app.light-mode .project-card {
    background: #ffffff;
    border: 1px solid #e9eef5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.planner-app.dark-mode .project-card:hover {
    background: #1a2333;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.planner-app.light-mode .project-card:hover {
    background: #fafbff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.project-card-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.project-card-name {
    font-size: 1rem;
    font-weight: 600;
}

.planner-app.dark-mode .project-card-name {
    color: #e2e8f0;
}

.planner-app.light-mode .project-card-name {
    color: #1e293b;
}

.project-card-count {
    margin-left: auto;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.planner-app.dark-mode .project-card-count {
    color: #f1f5f9;
}

.planner-app.light-mode .project-card-count {
    color: #0f172a;
}

.project-card-label {
    font-size: 0.75rem;
    margin-bottom: 10px;
}

.planner-app.dark-mode .project-card-label {
    color: #4b5563;
}

.planner-app.light-mode .project-card-label {
    color: #9ca3af;
}

.project-progress-bar {
    height: 4px;
    border-radius: 4px;
    overflow: hidden;
}

.planner-app.dark-mode .project-progress-bar {
    background: #1f2937;
}

.planner-app.light-mode .project-progress-bar {
    background: #e2e8f0;
}

.project-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   CALENDAR VIEW
   ========================================== */

.calendar-wrapper {
    border-radius: 16px;
    overflow: hidden;
}

.planner-app.dark-mode .calendar-wrapper {
    background: #111827;
    border: 1px solid #1f2937;
}

.planner-app.light-mode .calendar-wrapper {
    background: #ffffff;
    border: 1px solid #e9eef5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid transparent;
}

.planner-app.dark-mode .cal-header {
    border-color: #1f2937;
}

.planner-app.light-mode .cal-header {
    border-color: #f1f5f9;
}

.cal-title {
    font-size: 1rem;
    font-weight: 600;
}

.planner-app.dark-mode .cal-title {
    color: #e2e8f0;
}

.planner-app.light-mode .cal-title {
    color: #1e293b;
}

.cal-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease;
}

.planner-app.dark-mode .cal-nav-btn {
    color: #94a3b8;
}

.planner-app.light-mode .cal-nav-btn {
    color: #64748b;
}

.planner-app.dark-mode .cal-nav-btn:hover {
    background: #1f2937;
    color: #e2e8f0;
}

.planner-app.light-mode .cal-nav-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.cal-day-name {
    padding: 10px 0;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.planner-app.dark-mode .cal-day-name {
    color: #4b5563;
    border-bottom: 1px solid #1f2937;
}

.planner-app.light-mode .cal-day-name {
    color: #9ca3af;
    border-bottom: 1px solid #f1f5f9;
}

.cal-cell {
    min-height: 80px;
    padding: 8px;
    position: relative;
    transition: background 0.15s ease;
}

.planner-app.dark-mode .cal-cell {
    border-right: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
}

.planner-app.light-mode .cal-cell {
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.cal-cell:nth-child(7n) {
    border-right: none;
}

.planner-app.dark-mode .cal-cell:hover {
    background: #1a2333;
}

.planner-app.light-mode .cal-cell:hover {
    background: #f8fafc;
}

.cal-cell.other-month {
    opacity: 0.35;
}

.cal-date-num {
    font-size: 0.82rem;
    font-weight: 500;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}



/* ==========================
   TASK CARD
   ========================== */
/* .task-card {
    background: #1f2937;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
    cursor: grab;
    transition: 0.2s ease;
} */

.task-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.weekly-board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .weekly-board {
        grid-template-columns: repeat(2, 1fr);
    }
}


.planner-app.dark-mode .cal-date-num {
    color: #94a3b8;
}

.planner-app.light-mode .cal-date-num {
    color: #64748b;
}

.cal-date-num.today {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff !important;
    box-shadow: 0 2px 8px #7c3aed55;
}

.cal-task-dot {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 5px;
    border-radius: 4px;
    margin-bottom: 2px;
    font-size: 0.66rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.cal-task-dot:hover {
    opacity: 0.8;
}

/* ==========================================
   SETTINGS VIEW
   ========================================== */

.settings-card {
    border-radius: 16px;
    padding: 8px 0;
    max-width: 540px;
}

.planner-app.dark-mode .settings-card {
    background: #111827;
    border: 1px solid #1f2937;
}

.planner-app.light-mode .settings-card {
    background: #ffffff;
    border: 1px solid #e9eef5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    gap: 16px;
}

.settings-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.planner-app.dark-mode .settings-label {
    color: #e2e8f0;
}

.planner-app.light-mode .settings-label {
    color: #1e293b;
}

.settings-hint {
    font-size: 0.78rem;
    margin-top: 3px;
}

.planner-app.dark-mode .settings-hint {
    color: #4b5563;
}

.planner-app.light-mode .settings-hint {
    color: #94a3b8;
}

.settings-divider {
    height: 1px;
    margin: 0 22px;
}

.planner-app.dark-mode .settings-divider {
    background: #1f2937;
}

.planner-app.light-mode .settings-divider {
    background: #f1f5f9;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 46px;
    height: 25px;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.planner-app.dark-mode .toggle-slider {
    background: #374151;
}

.planner-app.light-mode .toggle-slider {
    background: #d1d5db;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked+.toggle-slider {
    background: #7c3aed;
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(21px);
}

.danger-btn {
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid #ef4444;
    background: transparent;
    color: #f87171;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.danger-btn:hover {
    background: #ef4444;
    color: #fff;
}

/* ==========================================
   MODAL
   ========================================== */


.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    border-radius: 18px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open .modal-box {
    transform: scale(1) translateY(0);
}

.planner-app.dark-mode .modal-box {
    background: #1a2333;
    border: 1px solid #2d3748;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px #2d374866;
}

.planner-app.light-mode .modal-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
}

.confirm-modal {
    max-width: 380px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 16px;
    border-bottom: 1px solid transparent;
}

.planner-app.dark-mode .modal-header {
    border-color: #2d3748;
}

.planner-app.light-mode .modal-header {
    border-color: #f1f5f9;
}

.modal-title {
    font-size: 1rem;
    font-weight: 700;
}

.planner-app.dark-mode .modal-title {
    color: #f1f5f9;
}

.planner-app.light-mode .modal-title {
    color: #0f172a;
}

.modal-close-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease;
}

.planner-app.dark-mode .modal-close-btn {
    color: #64748b !important;
}

.planner-app.light-mode .modal-close-btn {
    color: #94a3b8 !important;
}

.planner-app.dark-mode .modal-close-btn:hover {
    background: #374151 !important;
    color: #e2e8f0 !important;
}

.planner-app.light-mode .modal-close-btn:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
}

.modal-body {
    padding: 18px 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-label {
    font-size: 0.78rem;
    font-weight: 600;
}

.planner-app.dark-mode .form-label {
    color: #94a3b8;
}

.planner-app.light-mode .form-label {
    color: #64748b;
}

.required-star {
    color: #f87171;
    margin-left: 2px;
}

.form-input {
    width: 100%;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
    border: 1px solid transparent;
}

.planner-app.dark-mode .form-input {
    background: #111827 !important;
    color: #e2e8f0 !important;
    border-color: #374151 !important;
}

.planner-app.light-mode .form-input {
    background: #f8fafc !important;
    color: #1e293b !important;
    border-color: #e2e8f0 !important;
}

.planner-app.dark-mode .form-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px #7c3aed22;
}

.planner-app.light-mode .form-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px #7c3aed18;
}

.planner-app.dark-mode .form-input::placeholder {
    color: #374151;
}

.planner-app.light-mode .form-input::placeholder {
    color: #cbd5e1;
}

.form-select {
    appearance: none;
    cursor: pointer;
}

.planner-app.dark-mode .form-select {
    color: #e2e8f0;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px 20px;
    border-top: 1px solid transparent;
}

.planner-app.dark-mode .modal-footer {
    border-color: #2d3748;
}

.planner-app.light-mode .modal-footer {
    border-color: #f1f5f9;
}

.modal-cancel-btn {
    padding: 8px 18px;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.planner-app.dark-mode .modal-cancel-btn {
    background: #374151;
    color: #94a3b8;
    border: 1px solid #4b5563;
}

.planner-app.light-mode .modal-cancel-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.planner-app.dark-mode .modal-cancel-btn:hover {
    background: #4b5563;
    color: #e2e8f0;
}

.planner-app.light-mode .modal-cancel-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-save-btn {
    padding: 8px 20px;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    box-shadow: 0 2px 10px #7c3aed44;
}

.modal-save-btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 16px #7c3aed55;
    transform: translateY(-1px);
}

.delete-confirm-btn {
    padding: 8px 20px;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: #ef4444;
    color: #fff;
    box-shadow: 0 2px 10px #ef444433;
}

.delete-confirm-btn:hover {
    background: #dc2626;
    box-shadow: 0 4px 16px #ef444444;
    transform: translateY(-1px);
}

.confirm-text {
    font-size: 0.88rem;
    line-height: 1.6;
}

.planner-app.dark-mode .confirm-text {
    color: #94a3b8;
}

.planner-app.light-mode .confirm-text {
    color: #64748b;
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 500;
    min-width: 240px;
    max-width: 320px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    border: 1px solid transparent;
}

.planner-app.dark-mode .toast {
    background: #1f2937;
    color: #e2e8f0;
    border-color: #374151;
}

.planner-app.light-mode .toast {
    background: #ffffff;
    color: #1e293b;
    border-color: #e2e8f0;
}

.toast.toast-success {
    border-left: 3px solid #34d399 !important;
}

.toast.toast-error {
    border-left: 3px solid #f87171 !important;
}

.toast.toast-info {
    border-left: 3px solid #60a5fa !important;
}

.toast-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.toast-msg {
    flex: 1;
}

.toast.toast-out {
    animation: toastOut 0.25s ease forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* ==========================================
   MOBILE BOTTOM NAV BAR
   ========================================== */

.mobile-nav-bar {
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 12px;
    flex-shrink: 0;
    width: 100%;
    z-index: 300;
}

.planner-app.dark-mode .mobile-nav-bar {
    background: #111827;
    border-top: 1px solid #1f2937;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.planner-app.light-mode .mobile-nav-bar {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

/* Force buttons to be clickable — override any WP theme resets */
.mobile-nav-bar .mobile-nav-item {
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(124, 58, 237, 0.15);
    user-select: none;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none !important;
    border: none;
    cursor: pointer;
    padding: 4px 12px !important;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.planner-app.dark-mode .mobile-nav-item {
    color: #4b5563;
}

.planner-app.light-mode .mobile-nav-item {
    color: #94a3b8;
}

.planner-app.dark-mode .mobile-nav-item.active {
    color: #a78bfa;
}

.planner-app.light-mode .mobile-nav-item.active {
    color: #7c3aed;
}

.mobile-nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
}

/* ==========================================
   SCROLLBAR STYLING
   ========================================== */

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.planner-app.dark-mode ::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 4px;
}

.planner-app.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #374151;
}

.planner-app.light-mode ::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}

.planner-app.light-mode ::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1200px) {
    .weekly-board {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .planner-app {
        position: relative;
    }

    .sidebar {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        z-index: 200;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .hamburger-btn {
        display: flex !important;
    }

    .weekly-board {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
        overflow-x: auto;
    }

    .bottom-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .mobile-nav-bar {
        display: flex !important;
    }

    /* On mobile the planner fills the viewport height */
    .planner-app {
        height: 100svh;       /* svh = safe viewport height (avoids mobile browser chrome) */
        height: 100vh;        /* fallback */
        flex-direction: column;
        overflow: hidden;
    }

    /* Make main-content a flex column so the nav bar sits at the bottom */
    .main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-height: 0;
    }

    /* The active view fills remaining space and scrolls */
    .view.active {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
    }

    .topbar {
        padding: 12px 14px;
        flex-shrink: 0;
    }

    .filter-bar {
        padding: 8px 14px;
        flex-shrink: 0;
    }

    .weekly-board {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .add-task-btn span {
        display: none;
    }

    .add-task-btn {
        width: 34px;
        height: 34px;
        padding: 0 !important;
        border-radius: 10px !important;
        justify-content: center;
    }

    .toast-container {
        bottom: 16px;
        left: 16px;
        right: 16px;
    }

    .toast {
        min-width: unset;
        width: 100%;
    }

    .progress-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .weekly-board {
        grid-template-columns: repeat(1, 1fr);
    }
}

.day-column.drag-over {
    background: rgba(124, 58, 237, 0.05) !important;
    border: 1px dashed rgba(124, 58, 237, 0.4) !important;
    border-radius: 12px !important;
}

/* ==========================================
   CALENDAR VIEW
   ========================================== */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #1f2937;
    border: 1px solid #1f2937;
    border-radius: 12px;
    overflow: scroll;
}
.planner-app.light-mode .calendar-grid {
    background: #e2e8f0;
    border-color: #e2e8f0;
}

.calendar-day-header {
    background: #111827;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: #94a3b8;
}
.planner-app.light-mode .calendar-day-header {
    background: #f8fafc;
    color: #64748b;
}

.calendar-cell {
    background: #1a2333;
    min-height: 100px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.2s;
}
.planner-app.light-mode .calendar-cell {
    background: #ffffff;
}

.calendar-cell.other-month {
    opacity: 0.5;
}

.calendar-cell.current-week {
    background: rgba(124, 58, 237, 0.05);
}
.planner-app.light-mode .calendar-cell.current-week {
    background: rgba(124, 58, 237, 0.03);
}

.calendar-date-num {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    align-self: flex-end;
}

.calendar-task-dot {
    font-size: 0.7rem;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #2d3748;
    color: #e2e8f0;
    border-left-width: 3px;
    border-left-style: solid;
}
.planner-app.light-mode .calendar-task-dot {
    background: #f1f5f9;
    color: #1e293b;
}

.calendar-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cal-nav-btn {
    background: none;
    border: 1px solid #374151;
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
}
#toastContainer{
	display:none;
}
.planner-app.light-mode .cal-nav-btn {
    border-color: #e2e8f0;
    color: #1e293b;

}
