@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #28A745 0%, #20923A 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    color: #FFFFFF;
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-profile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFFFFF 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-profile:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-btn, .header-menu {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    color: white;
    font-size: 16px;
}

.back-btn:hover, .header-menu:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.header-title {
    color: #FFFFFF;
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Main Content */
.main-content {
    padding: 20px 15px;
    max-width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

/* Greeting */
.greeting {
    margin-bottom: 25px;
    animation: fadeInUp 0.6s ease-out;
}

.greeting-text {
    font-size: clamp(22px, 6vw, 26px);
    font-weight: 700;
    background: linear-gradient(135deg, #28A745, #1E90FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.greeting-sub {
    color: #666;
    font-size: clamp(14px, 3.5vw, 15px);
    font-weight: 400;
}

/* Section */
.section {
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    color: #333;
    font-size: clamp(18px, 5vw, 20px);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-count {
    background: linear-gradient(135deg, #1E90FF, #1C7ED6);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    min-width: 22px;
    text-align: center;
}

.view-all {
    color: #1E90FF;
    font-size: clamp(12px, 3.5vw, 13px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: #1C7ED6;
    transform: translateX(-2px);
}

/* Task Cards */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-card {
    background: #FFFFFF;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #28A745, #20923A);
    border-radius: 0 2px 2px 0;
}

.task-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.task-card.dragging {
    opacity: 0.6;
    transform: rotate(3deg) scale(1.05);
    z-index: 10;
}

.task-list.drag-over {
    background: rgba(40, 167, 69, 0.05);
    border-radius: 12px;
    padding: 8px;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.task-content {
    flex: 1;
    margin-right: 12px;
}

.task-title {
    font-weight: 600;
    font-size: clamp(15px, 4vw, 16px);
    color: #333;
    line-height: 1.4;
    margin-bottom: 4px;
}

.task-time {
    color: #666;
    font-size: clamp(12px, 3.5vw, 13px);
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #28A745;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.task-checkbox:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.task-checkbox.completed {
    background: linear-gradient(135deg, #28A745, #20923A);
    border-color: #28A745;
}

.task-checkbox.completed::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Routine Cards */
.routine-card {
    background: #FFFFFF;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(30, 144, 255, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.routine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #1E90FF, #1C7ED6);
    border-radius: 0 2px 2px 0;
}

.routine-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.routine-title {
    font-weight: 600;
    font-size: clamp(18px, 5vw, 20px);
    color: #333;
    margin-bottom: 6px;
}

.routine-frequency {
    color: #666;
    font-size: clamp(12px, 3.5vw, 13px);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.routine-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.total-tasks {
    background: linear-gradient(135deg, #1E90FF, #1C7ED6);
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: clamp(12px, 3.5vw, 13px);
    font-weight: 600;
}

.routine-progress {
    color: #666;
    font-size: clamp(12px, 3.5vw, 13px);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tasks Section */
.tasks-section {
    margin-top: 15px;
}

.tasks-container {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.task-item:last-child {
    border-bottom: none;
}

.task-item:hover {
    background: rgba(30, 144, 255, 0.02);
    border-radius: 10px;
    padding-left: 6px;
    padding-right: 6px;
    margin-left: -6px;
    margin-right: -6px;
}

.task-name {
    font-weight: 600;
    font-size: clamp(14px, 4vw, 15px);
    color: #333;
    line-height: 1.4;
    margin-bottom: 3px;
    transition: all 0.3s ease;
}

.task-item.completed .task-name,
.task-card.completed .task-title {
    text-decoration: line-through;
    opacity: 0.7;
}

.task-priority {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.task-priority.high {
    background: #FF6B6B;
}

.task-priority.medium {
    background: #FFB74D;
}

.task-priority.low {
    background: #4ECDC4;
}

/* Profile Card */
.profile-card {
    background: #FFFFFF;
    padding: 25px 15px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(135deg, #28A745 0%, #20923A 100%);
    border-radius: 16px 16px 0 0;
}

.profile-avatar {
    position: relative;
    z-index: 2;
    margin-top: 8px;
    margin-bottom: 15px;
}

.avatar-container {
    width: clamp(90px, 25vw, 100px);
    height: clamp(90px, 25vw, 100px);
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.avatar-container:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-name {
    font-size: clamp(20px, 5vw, 22px);
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.profile-email {
    color: #666;
    font-size: clamp(14px, 3.5vw, 15px);
    margin-bottom: 15px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(20px, 5vw, 22px);
    font-weight: 700;
    background: linear-gradient(135deg, #28A745, #1E90FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: clamp(10px, 3vw, 11px);
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Menu Items */
.menu-section {
    margin-bottom: 20px;
}

.menu-item {
    background: #FFFFFF;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    transition: all 0.3s ease;
}

.menu-icon.settings {
    background: linear-gradient(135deg, #6C63FF, #5A52FF);
}

.menu-icon.notifications {
    background: linear-gradient(135deg, #FF6B6B, #FF5252);
}

.menu-icon.privacy {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
}

.menu-icon.help {
    background: linear-gradient(135deg, #FFB74D, #FF9800);
}

.menu-icon.about {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
}

.menu-icon.logout {
    background: linear-gradient(135deg, #F44336, #D32F2F);
}

.menu-title {
    font-weight: 600;
    font-size: clamp(14px, 4vw, 15px);
    color: #333;
    margin-bottom: 2px;
}

.menu-subtitle {
    font-size: clamp(11px, 3.5vw, 12px);
    color: #666;
}

.menu-arrow {
    color: #ccc;
    font-size: 14px;
    transition: all 0.3s ease;
}

.menu-item:hover .menu-arrow {
    color: #666;
    transform: translateX(3px);
}

/* Switch Toggle */
.toggle-switch {
    position: relative;
    width: 46px;
    height: 22px;
    background: #ddd;
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch.active {
    background: linear-gradient(135deg, #28A745, #20923A);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(24px);
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 25px 0;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    padding: 10px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 200;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px 10px;
    border-radius: 10px;
    position: relative;
}

.nav-item:hover {
    background: rgba(40, 167, 69, 0.05);
}

.nav-item.active {
    background: rgba(40, 167, 69, 0.1);
}

.nav-icon {
    width: 22px;
    height: 22px;
    transition: all 0.3s ease;
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-label {
    font-size: clamp(9px, 2.5vw, 10px);
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.nav-item.active .nav-label {
    color: #28A745;
    font-weight: 600;
}

/* Add Button */
.add-button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E90FF 0%, #1C7ED6 100%);
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: translateY(-6px);
}

.add-button:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 12px 30px rgba(30, 144, 255, 0.5);
}

.add-button:active {
    transform: translateY(-6px) scale(0.95);
    animation: pulse 0.3s ease;
}

.add-button.rotate {
    transform: translateY(-6px) rotate(45deg);
}

/* Drop-up Menu */
.dropup-menu {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 150;
}

.dropup-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropup-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    padding: 12px 20px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(13px, 3.5vw, 14px);
    font-weight: 600;
    color: #333;
    min-width: 140px;
}

.dropup-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dropup-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.dropup-item:nth-child(1) .dropup-icon {
    background: linear-gradient(135deg, #28A745, #20923A);
}

.dropup-item:nth-child(2) .dropup-icon {
    background: linear-gradient(135deg, #1E90FF, #1C7ED6);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 50;
    backdrop-filter: blur(2px);
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 15px;
    color: #666;
    animation: fadeInUp 0.8s ease-out;
}

.empty-icon {
    font-size: clamp(48px, 12vw, 56px);
    margin-bottom: 15px;
    opacity: 0.6;
}

.empty-text {
    font-size: clamp(16px, 4.5vw, 17px);
    font-weight: 600;
    margin-bottom: 6px;
}

.empty-subtext {
    font-size: clamp(12px, 3.5vw, 13px);
    opacity: 0.7;
    line-height: 1.5;
}

/* Login Container */
.login-container {
    background: #FFFFFF;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    margin: 0 auto;
    max-width: 360px;
    margin-top: 50px;
    transform: translateY(0);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #28A745;
    font-size: 16px;
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 14px 14px 14px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: clamp(14px, 4vw, 15px);
    color: #333333;
    background: #f9f9f9;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #28A745;
    background: #FFFFFF;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
}

.form-input::placeholder {
    color: #999;
    font-weight: 400;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: color 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #28A745;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1E90FF 0%, #1C7ED6 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: clamp(16px, 4vw, 17px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px 0 20px 0;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.3);
}

.login-btn:active {
    transform: translateY(0);
    animation: pulse 0.3s ease;
}

.login-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.form-links {
    text-align: center;
    margin-top: 15px;
}

.form-link {
    display: block;
    margin: 10px 0;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(13px, 3.5vw, 14px);
    transition: all 0.3s ease;
    position: relative;
}

.forgot-password {
    color: #FF9800;
}

.forgot-password:hover {
    color: #F57C00;
    transform: translateY(-1px);
}

.create-account {
    color: #E91E63;
}

.create-account:hover {
    color: #C2185B;
    transform: translateY(-1px);
}

.form-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.form-link:hover::after {
    width: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Media Queries for Responsiveness */

/* Mobile Devices (≤576px) */
@media (max-width: 576px) {
    body {
        padding-bottom: 70px;
    }

    .header {
        padding: 12px 15px;
    }

    .logo {
        font-size: clamp(18px, 5vw, 20px);
    }

    .header-title {
        font-size: clamp(14px, 4vw, 16px);
    }

    .header-profile, .back-btn, .header-menu {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .main-content {
        padding: 15px 10px;
    }

    .greeting-text {
        font-size: clamp(18px, 6vw, 22px);
    }

    .greeting-sub {
        font-size: clamp(12px, 3.5vw, 13px);
    }

    .section-title {
        font-size: clamp(16px, 5vw, 18px);
    }

    .section-count {
        font-size: 10px;
        padding: 3px 6px;
        min-width: 20px;
    }

    .view-all {
        font-size: clamp(11px, 3.5vw, 12px);
    }

    .task-card, .routine-card {
        padding: 12px;
        border-radius: 12px;
    }

    .task-title, .routine-title {
        font-size: clamp(14px, 4vw, 15px);
    }

    .task-time, .routine-frequency {
        font-size: clamp(11px, 3.5vw, 12px);
    }

    .task-checkbox {
        width: 18px;
        height: 18px;
    }

    .task-checkbox.completed::after {
        top: 2px;
        left: 5px;
        width: 4px;
        height: 8px;
    }

    .routine-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .tasks-container {
        padding: 12px;
    }

    .task-item {
        padding: 10px 0;
        gap: 10px;
    }

    .task-name {
        font-size: clamp(13px, 4vw, 14px);
    }

    .profile-card {
        padding: 20px 12px;
    }

    .avatar-container {
        width: clamp(80px, 20vw, 90px);
        height: clamp(80px, 20vw, 90px);
    }

    .profile-name {
        font-size: clamp(18px, 5vw, 20px);
    }

    .profile-email {
        font-size: clamp(12px, 3.5vw, 13px);
    }

    .profile-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-number {
        font-size: clamp(18px, 5vw, 20px);
    }

    .stat-label {
        font-size: clamp(9px, 3vw, 10px);
    }

    .menu-item {
        padding: 12px;
    }

    .menu-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .menu-title {
        font-size: clamp(13px, 4vw, 14px);
    }

    .menu-subtitle {
        font-size: clamp(10px, 3.5vw, 11px);
    }

    .bottom-nav {
        padding: 8px 0;
    }

    .nav-item {
        padding: 6px 8px;
    }

    .nav-icon {
        width: 20px;
        height: 20px;
    }

    .nav-label {
        font-size: clamp(8px, 2.5vw, 9px);
    }

    .add-button {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .dropup-menu {
        bottom: 70px;
        gap: 10px;
    }

    .dropup-item {
        padding: 10px 16px;
        font-size: clamp(12px, 3.5vw, 13px);
        min-width: 120px;
    }

    .dropup-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .empty-state {
        padding: 40px 10px;
    }

    .empty-icon {
        font-size: clamp(40px, 12vw, 48px);
    }

    .empty-text {
        font-size: clamp(14px, 4.5vw, 16px);
    }

    .empty-subtext {
        font-size: clamp(11px, 3.5vw, 12px);
    }

    .login-container {
        padding: 25px 15px;
        max-width: 320px;
        margin-top: 40px;
    }

    .form-input {
        padding: 12px 12px 12px 36px;
        font-size: clamp(13px, 4vw, 14px);
    }

    .input-icon {
        left: 10px;
        font-size: 14px;
    }

    .password-toggle {
        right: 10px;
        font-size: 14px;
    }

    .login-btn {
        padding: 14px;
        font-size: clamp(14px, 4vw, 15px);
    }

    .form-link {
        font-size: clamp(12px, 3.5vw, 13px);
    }
}

/* Tablets (577px - 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .logo {
        font-size: clamp(20px, 5vw, 22px);
    }

    .header-title {
        font-size: clamp(15px, 4vw, 17px);
    }

    .main-content {
        padding: 20px 15px;
    }

    .greeting-text {
        font-size: clamp(20px, 6vw, 24px);
    }

    .greeting-sub {
        font-size: clamp(13px, 3.5vw, 14px);
    }

    .section-title {
        font-size: clamp(17px, 5vw, 19px);
    }

    .task-card, .routine-card {
        padding: 14px;
    }

    .task-title, .routine-title {
        font-size: clamp(15px, 4vw, 16px);
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .bottom-nav {
        padding: 10px 0;
    }

    .add-button {
        width: 44px;
        height: 44px;
    }

    .dropup-menu {
        bottom: 75px;
    }

    .login-container {
        max-width: 340px;
    }
}

/* Large Desktops (≥1200px) */
@media (min-width: 1200px) {
    .main-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px 20px;
    }

    .task-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }

    .task-card, .routine-card {
        padding: 20px;
    }

    .profile-card {
        max-width: 600px;
        margin: 0 auto 30px;
    }

    .profile-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .login-container {
        max-width: 400px;
    }
}