/* ==========================================================================
   Workspace CSS Design System (Premium Glassmorphism Dark Mode)
   ========================================================================== */

/* 1. 디자인 시스템 토큰 정의 */
:root {
    /* 색상 테마 (Sleek Slate & Cyan/Indigo Glow) */
    --bg-gradient-start: #0a0e17;
    --bg-gradient-end: #161f32;
    --card-bg: rgba(30, 41, 59, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-glow: rgba(56, 189, 248, 0.03);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-cyan: #38bdf8;
    --accent-indigo: #818cf8;
    --accent-danger: #f87171;
    --accent-success: #34d399;
    
    /* 폰트 및 라운딩 설정 */
    --font-sans: 'Outfit', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    /* 화면 애니메이션 효과 */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. 전역 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

/* 3. 대시보드 컨테이너 레이아웃 */
.dashboard-container {
    width: 100%;
    max-width: 1400px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 4. 헤더 디자인 */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-logo .badge {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.header-info {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(4px);
}

/* 5. 메인 그리드 레이아웃 (반응형 바둑판 배정) */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
    flex: 1;
}

/* 특정 위젯 크기 확장 옵션 */
@media (min-width: 1024px) {
    /* 그리드가 더 쾌적하게 보이기 위해 열 크기 조정 */
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 6. 글래스모피즘 위젯 카드 공통 스타일 */
.widget-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.widget-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--card-glow), transparent 60%);
    pointer-events: none;
}

/* 마우스 호버 효과 */
.widget-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.35);
}

/* 위젯 카드 내부 요소들 */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 빈 상태 표시를 위한 스타일 */
.empty-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* 7. 푸터 스타일 */
.dashboard-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 모바일 디바이스 지원 */
@media (max-width: 480px) {
    .dashboard-container {
        padding: 1.5rem 1rem;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Memo Widget Custom Styles (Retro-Modern Aesthetic)
   ========================================================================== */

/* 기본 테마 컬러 (피드백 이미지 기준 파스텔 테마) */
#widget-memo.memo-theme-pink {
    --memo-accent: #f472b6;
    --memo-card-bg: rgba(244, 114, 182, 0.08);
    --memo-border: rgba(244, 114, 182, 0.25);
    --memo-item-bg: rgba(244, 114, 182, 0.06);
}
#widget-memo.memo-theme-yellow {
    --memo-accent: #f59e0b;
    --memo-card-bg: rgba(245, 158, 11, 0.08);
    --memo-border: rgba(245, 158, 11, 0.25);
    --memo-item-bg: rgba(245, 158, 11, 0.06);
}
#widget-memo.memo-theme-green {
    --memo-accent: #10b981;
    --memo-card-bg: rgba(16, 185, 129, 0.08);
    --memo-border: rgba(16, 185, 129, 0.25);
    --memo-item-bg: rgba(16, 185, 129, 0.06);
}
#widget-memo.memo-theme-blue {
    --memo-accent: #3b82f6;
    --memo-card-bg: rgba(59, 130, 246, 0.08);
    --memo-border: rgba(59, 130, 246, 0.25);
    --memo-item-bg: rgba(59, 130, 246, 0.06);
}
#widget-memo.memo-theme-purple {
    --memo-accent: #a855f7;
    --memo-card-bg: rgba(168, 85, 247, 0.08);
    --memo-border: rgba(168, 85, 247, 0.25);
    --memo-item-bg: rgba(168, 85, 247, 0.06);
}

#widget-memo {
    background: var(--memo-card-bg);
    border-color: var(--memo-border);
}

/* 메모장 헤더 */
.memo-header-styled {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--memo-accent);
    padding-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.memo-title-tag {
    background-color: var(--memo-accent);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition-smooth);
}

.memo-header-indicators {
    display: flex;
    gap: 4px;
}

.memo-header-indicators .dot-ind {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
}

/* 메모 본문 리스트 */
.memo-body-styled {
    max-height: 240px;
    overflow-y: auto;
    margin-top: 0.5rem;
    padding-right: 0.25rem;
}

/* 스크롤바 커스텀 */
.memo-body-styled::-webkit-scrollbar {
    width: 4px;
}
.memo-body-styled::-webkit-scrollbar-thumb {
    background: var(--memo-accent);
    border-radius: 10px;
}

.memo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.memo-item {
    background: var(--memo-item-bg);
    border: 1px solid var(--memo-border);
    color: var(--text-primary);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    animation: fadeIn 0.2s ease-out;
    transition: var(--transition-smooth);
}

.memo-item span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 0.5rem;
}

.memo-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0 0.25rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.memo-delete-btn:hover {
    color: var(--accent-danger);
    transform: scale(1.1);
}

/* 메모장 푸터 및 조작계 */
.memo-footer-styled {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.memo-input-container {
    display: flex;
    gap: 0.5rem;
}

#memo-input-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--memo-border);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

#memo-input-field:focus {
    border-color: var(--memo-accent);
    background: rgba(255, 255, 255, 0.08);
}

#memo-add-btn {
    background: var(--memo-accent);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

#memo-add-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.memo-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.25rem;
}

.memo-color-dots {
    display: flex;
    gap: 8px;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.color-dot.pink { background-color: #f472b6; }
.color-dot.yellow { background-color: #f59e0b; }
.color-dot.green { background-color: #10b981; }
.color-dot.blue { background-color: #3b82f6; }
.color-dot.purple { background-color: #a855f7; }

.color-dot:hover {
    transform: scale(1.2);
}

.color-dot.active {
    border-color: #ffffff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

.memo-pagination {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Links Widget Custom Styles (Retro-Modern Bookmark Cards)
   ========================================================================== */

/* 건강 링크 테마 (초록색) */
#widget-health-links.link-theme-green {
    --link-accent: #10b981;
    --link-card-bg: rgba(16, 185, 129, 0.08);
    --link-border: rgba(16, 185, 129, 0.25);
    --link-item-bg: rgba(16, 185, 129, 0.06);
    --link-hover-glow: rgba(16, 185, 129, 0.2);
}

/* 경제 링크 테마 (파란색/인디고) */
#widget-economy-links.link-theme-blue {
    --link-accent: #3b82f6;
    --link-card-bg: rgba(59, 130, 246, 0.08);
    --link-border: rgba(59, 130, 246, 0.25);
    --link-item-bg: rgba(59, 130, 246, 0.06);
    --link-hover-glow: rgba(59, 130, 246, 0.2);
}

.widget-card.link-theme-green {
    background: var(--link-card-bg);
    border-color: var(--link-border);
}

.widget-card.link-theme-blue {
    background: var(--link-card-bg);
    border-color: var(--link-border);
}

/* 링크 위젯 헤더 */
.link-header-styled {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--link-accent);
    padding-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.link-title-tag {
    background-color: var(--link-accent);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition-smooth);
}

.link-header-indicators {
    display: flex;
    gap: 4px;
}

.link-header-indicators .dot-ind {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
}

/* 링크 리스트 영역 */
.link-body-styled {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 0.5rem;
    padding-right: 0.25rem;
}

.link-body-styled::-webkit-scrollbar {
    width: 4px;
}
.link-body-styled::-webkit-scrollbar-thumb {
    background: var(--link-accent);
    border-radius: 10px;
}

.link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.link-item {
    background: var(--link-item-bg);
    border: 1px solid var(--link-border);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    animation: fadeIn 0.2s ease-out;
    transition: var(--transition-smooth);
}

.link-item:hover {
    border-color: var(--link-accent);
    background: rgba(255, 255, 255, 0.03);
}

.link-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.link-item a:hover {
    color: var(--link-accent);
}

/* 링크 아이콘 데코레이션 */
.link-item a::before {
    content: '🔗';
    font-size: 0.8rem;
}

.link-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0 0.25rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-delete-btn:hover {
    color: var(--accent-danger);
    transform: scale(1.1);
}

/* 링크 위젯 푸터 양식 */
.link-footer-styled {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.link-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.link-input-group input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--link-border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
}

.link-input-group input:focus {
    border-color: var(--link-accent);
    background: rgba(255, 255, 255, 0.08);
}

.link-add-btn {
    background: var(--link-accent);
    color: #ffffff;
    border: none;
    padding: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
}

.link-add-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ==========================================================================
   1. Calendar Widget Styles (Violet Accent)
   ========================================================================== */
#widget-calendar.cal-theme {
    --cal-accent: #a855f7;
    --cal-card-bg: rgba(168, 85, 247, 0.08);
    --cal-border: rgba(168, 85, 247, 0.25);
    background: var(--cal-card-bg);
    border-color: var(--cal-border);
}

.cal-header-styled {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--cal-accent);
    padding-bottom: 0.75rem;
}

.cal-title-tag {
    background-color: var(--cal-accent);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
}

.cal-header-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cal-header-nav button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--cal-border);
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.cal-header-nav button:hover {
    background: var(--cal-accent);
    border-color: var(--cal-accent);
}

#cal-month-year {
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    min-width: 80px;
    text-align: center;
}

.cal-body-styled {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.25rem;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.day-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    transition: var(--transition-smooth);
}

.day-cell:hover {
    background: rgba(255, 255, 255, 0.08);
}

.day-cell.other-month {
    color: var(--text-muted);
    opacity: 0.4;
}

.day-cell.today {
    border: 1px solid var(--cal-accent);
}

.day-cell.selected {
    background: var(--cal-accent) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

/* 일정이 있는 날짜 아래에 표시될 작은 점 */
.day-cell.has-todos::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
}

.day-cell.selected.has-todos::after {
    background-color: #ffffff;
}

/* ==========================================================================
   2. Info & Apps Tabbed Link Widget Styles (Yellow Accent)
   ========================================================================== */
#widget-info-links.info-theme {
    --info-accent: #f59e0b;
    --info-card-bg: rgba(245, 158, 11, 0.08);
    --info-border: rgba(245, 158, 11, 0.25);
    background: var(--info-card-bg);
    border-color: var(--info-border);
}

.info-header-styled {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-bottom: 2px solid var(--info-accent);
    padding-bottom: 0.75rem;
}

.info-title-tag {
    background-color: var(--info-accent);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
    align-self: flex-start;
}

.info-tabs {
    display: flex;
    gap: 4px;
    width: 100%;
}

.info-tab-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--info-border);
    color: var(--text-secondary);
    padding: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.info-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.info-tab-btn.active {
    background: var(--info-accent);
    color: #ffffff;
    border-color: var(--info-accent);
}

.info-body-styled {
    max-height: 180px;
    overflow-y: auto;
    margin-top: 0.5rem;
    padding-right: 0.25rem;
}

.info-body-styled::-webkit-scrollbar {
    width: 4px;
}
.info-body-styled::-webkit-scrollbar-thumb {
    background: var(--info-accent);
    border-radius: 10px;
}

.info-link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-link-item {
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid var(--info-border);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    animation: fadeIn 0.2s ease-out;
    transition: var(--transition-smooth);
}

.info-link-item:hover {
    border-color: var(--info-accent);
    background: rgba(255, 255, 255, 0.03);
}

.info-link-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.info-link-item a:hover {
    color: var(--info-accent);
}

.info-link-item a::before {
    content: '📱';
    font-size: 0.8rem;
}

/* 카테고리별 데코레이션 다르게 */
#widget-info-links.info-tab-edu .info-link-item a::before {
    content: '🎓';
}
#widget-info-links.info-tab-event .info-link-item a::before {
    content: '🎪';
}

.info-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.info-delete-btn:hover {
    color: var(--accent-danger);
    transform: scale(1.1);
}

.info-footer-styled {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.info-input-group {
    display: flex;
    gap: 0.4rem;
}

.info-input-group input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--info-border);
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
    color: var(--text-primary);
    font-size: 0.8rem;
    outline: none;
    transition: var(--transition-smooth);
}

#info-name-input {
    flex: 4;
}

#info-url-input {
    flex: 6;
}

.info-input-group input:focus {
    border-color: var(--info-accent);
    background: rgba(255, 255, 255, 0.08);
}

.info-add-btn {
    background: var(--info-accent);
    color: #ffffff;
    border: none;
    padding: 0.45rem;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.info-add-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ==========================================================================
   3. Date-based To-Do List Widget Styles (Cyan Accent)
   ========================================================================== */
#widget-todo-list.todo-theme {
    --todo-accent: #06b6d4;
    --todo-card-bg: rgba(6, 182, 212, 0.08);
    --todo-border: rgba(6, 182, 212, 0.25);
    background: var(--todo-card-bg);
    border-color: var(--todo-border);
}

.todo-header-styled {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-bottom: 2px solid var(--todo-accent);
    padding-bottom: 0.75rem;
}

.todo-title-tag {
    background-color: var(--todo-accent);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    font-family: var(--font-sans);
    align-self: flex-start;
}

.todo-progress-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.todo-progress-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    min-width: 55px;
}

.todo-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.todo-progress-fill {
    height: 100%;
    background: var(--todo-accent);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

.todo-body-styled {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 0.5rem;
    padding-right: 0.25rem;
}

.todo-body-styled::-webkit-scrollbar {
    width: 4px;
}
.todo-body-styled::-webkit-scrollbar-thumb {
    background: var(--todo-accent);
    border-radius: 10px;
}

.todo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.todo-item {
    background: rgba(6, 182, 212, 0.04);
    border: 1px solid var(--todo-border);
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    animation: fadeIn 0.2s ease-out;
    transition: var(--transition-smooth);
}

.todo-item.completed {
    border-color: rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.01);
}

.todo-item.completed span {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.6;
}

.todo-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--todo-accent);
    cursor: pointer;
    border-radius: 4px;
}

.todo-item span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.todo-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.todo-delete-btn:hover {
    color: var(--accent-danger);
    transform: scale(1.1);
}

.todo-footer-styled {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.todo-input-container {
    display: flex;
    gap: 0.5rem;
}

#todo-input-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--todo-border);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
}

#todo-input-field:focus {
    border-color: var(--todo-accent);
    background: rgba(255, 255, 255, 0.08);
}

#todo-add-btn {
    background: var(--todo-accent);
    color: #ffffff;
    border: none;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

#todo-add-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ==========================================================================
   Pagination CSS Rules (Common style for all widgets)
   ========================================================================== */
.info-control-bar, .todo-control-bar, .link-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.memo-pagination, .todo-pagination, .info-pagination, .link-pagination {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.page-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.page-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.page-num {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}



