* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #1a1a1a;
    line-height: 1.6;
}

.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}

.nav-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-btn:hover:not(.active) {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
    color: #667eea;
    font-weight: 500;
}

.logout-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 420px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-card h1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.auth-card p {
    color: #666;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.auth-form input {
    padding: 1.2rem;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-form button {
    padding: 1.2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.auth-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.auth-form a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.auth-form a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.section {
    display: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section.active {
    display: block;
}

h2 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
}

.planner-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.planner-controls input, .planner-controls select {
    padding: 0.8rem 1.2rem;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.planner-controls input:focus, .planner-controls select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.task-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.category {
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category.academic {
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.9), rgba(254, 207, 239, 0.9));
}

.category.family {
    background: linear-gradient(135deg, rgba(168, 237, 234, 0.9), rgba(254, 214, 227, 0.9));
}

.category.personal {
    background: linear-gradient(135deg, rgba(255, 236, 210, 0.9), rgba(252, 182, 159, 0.9));
}

.category h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.add-task {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.add-task input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.add-task input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.add-task button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.add-task button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.task-list {
    list-style: none;
}

.task-item {
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.8rem;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.task-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.task-time {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

.task-actions button {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.complete-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.delete-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.task-actions button:hover {
    transform: translateY(-1px);
}

.timer-container {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.timer-display {
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2.5rem;
    text-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.timer-controls {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.timer-controls button {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#startBtn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

#pauseBtn {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

#resetBtn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

.timer-controls button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.timer-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.timer-settings {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.timer-settings label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    color: #666;
}

.timer-settings input {
    width: 70px;
    padding: 0.5rem;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.timer-status {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.goal-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.goal-input input, .goal-input select {
    padding: 0.8rem 1.2rem;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    flex: 1;
    min-width: 180px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.goal-input input:focus, .goal-input select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.goal-input button {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.goal-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.goals-list {
    display: grid;
    gap: 1.5rem;
}

.goal-item {
    background: rgba(102, 126, 234, 0.08);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid #667eea;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.goal-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.goal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.goal-category {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.goal-deadline {
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.goal-progress {
    background: #f0f0f0;
    border-radius: 12px;
    height: 24px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.goal-progress-bar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 12px;
}

.goal-actions {
    display: flex;
    gap: 1rem;
}

.goal-actions button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.delete-goal-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.goal-actions button:hover {
    transform: translateY(-2px);
}

/* Enhanced Planner Styles */
.planner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.quick-dates {
    display: flex;
    gap: 0.5rem;
}

.quick-dates button {
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-dates button:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.planner-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.quick-add {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.quick-add h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.quick-add-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
}

.quick-add-form input, .quick-add-form select {
    padding: 0.8rem;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.quick-add-form button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-add-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.task-timeline {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.task-timeline h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.2rem;
}

.timeline {
    max-height: 300px;
    overflow-y: auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    background: rgba(102, 126, 234, 0.05);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(4px);
}

.timeline-item.completed {
    opacity: 0.6;
    border-left-color: #4CAF50;
}

.timeline-item.academic {
    border-left-color: #ff9a9e;
}

.timeline-item.family {
    border-left-color: #a8edea;
}

.timeline-item.personal {
    border-left-color: #ffecd2;
}

.timeline-time {
    font-weight: 600;
    color: #667eea;
    min-width: 80px;
    font-size: 0.9rem;
}

.timeline-content {
    flex: 1;
    margin-left: 1rem;
}

.timeline-text {
    display: block;
    font-weight: 500;
    color: #333;
}

.timeline-category {
    font-size: 0.8rem;
    color: #666;
    text-transform: capitalize;
}

.no-schedule {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.task-count {
    background: rgba(255, 255, 255, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

.task-content {
    flex: 1;
}

.task-main {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.3rem;
}

.task-text {
    flex: 1;
    font-weight: 500;
}

.priority-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.high {
    background: #ffebee;
    color: #c62828;
}

.priority-badge.medium {
    background: #fff3e0;
    color: #ef6c00;
}

.priority-badge.low {
    background: #e8f5e8;
    color: #2e7d32;
}

.task-item.priority-high {
    border-left: 3px solid #f44336;
}

.task-item.priority-medium {
    border-left: 3px solid #ff9800;
}

.task-item.priority-low {
    border-left: 3px solid #4CAF50;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.view-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #667eea;
    border-radius: 25px;
    background: transparent;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.view-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.view-btn:hover:not(.active) {
    background: rgba(102, 126, 234, 0.1);
}

/* All Tasks View */
.all-tasks-view {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.all-tasks-view h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.2rem;
}

.all-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

.all-task-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.2rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.all-task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.all-task-item.overdue {
    border-left-color: #f44336;
    background: rgba(244, 67, 54, 0.05);
}

.all-task-item.today {
    border-left-color: #ff9800;
    background: rgba(255, 152, 0, 0.05);
}

.all-task-item.tomorrow {
    border-left-color: #2196F3;
    background: rgba(33, 150, 243, 0.05);
}

.all-task-item.academic {
    border-right: 3px solid #ff9a9e;
}

.all-task-item.family {
    border-right: 3px solid #a8edea;
}

.all-task-item.personal {
    border-right: 3px solid #ffecd2;
}

.all-task-item.completed {
    opacity: 0.6;
}

.task-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.category-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
}

.category-badge.academic {
    background: rgba(255, 154, 158, 0.3);
    color: #d81b60;
}

.category-badge.family {
    background: rgba(168, 237, 234, 0.3);
    color: #00695c;
}

.category-badge.personal {
    background: rgba(255, 236, 210, 0.3);
    color: #ef6c00;
}

.task-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.deadline-info {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
}

.deadline-info.overdue {
    background: rgba(244, 67, 54, 0.1);
    color: #d32f2f;
}

.deadline-info.today {
    background: rgba(255, 152, 0, 0.1);
    color: #f57c00;
}

.deadline-info.tomorrow {
    background: rgba(33, 150, 243, 0.1);
    color: #1976d2;
}

.deadline-info.future {
    background: rgba(76, 175, 80, 0.1);
    color: #388e3c;
}

.deadline-badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.deadline-badge.overdue {
    background: rgba(244, 67, 54, 0.1);
    color: #d32f2f;
}

.deadline-badge.today {
    background: rgba(255, 152, 0, 0.1);
    color: #f57c00;
}

.deadline-badge.tomorrow {
    background: rgba(33, 150, 243, 0.1);
    color: #1976d2;
}

.no-tasks {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 3rem;
    font-size: 1.1rem;
}

/* Goal Task Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.task-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.task-input input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 1rem;
}

.task-input input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.task-input button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.task-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.goal-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.goal-task-item {
    background: rgba(102, 126, 234, 0.05);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
}

.goal-task-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(4px);
}

.goal-task-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
    border-left-color: #4CAF50;
}

.goal-task-item .task-content {
    flex: 1;
}

.goal-task-item .task-text {
    font-weight: 500;
    color: #333;
}

.goal-task-item .task-actions {
    display: flex;
    gap: 0.5rem;
}

.goal-task-item .task-actions button {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.goal-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-text {
    font-weight: 600;
    color: #333;
}

.task-count {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.tasks-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-info {
        margin-left: 0;
    }
    
    .planner-header {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-add-form {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .planner-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .task-categories {
        grid-template-columns: 1fr;
    }
    
    .timer-display {
        font-size: 3.5rem;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .timer-settings {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .goal-input {
        flex-direction: column;
    }
    
    .auth-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .timeline-content {
        margin-left: 0;
    }
}