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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Index Page Styles */
.index-page body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.index-page .container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin: 0 auto;
}

.index-page .landing-section {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.index-page .landing-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.index-page .landing-section p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
}

.index-page .features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.index-page .feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.index-page .feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.index-page .feature p {
    margin: 0;
    font-size: 16px;
}

.index-page .auth-section {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.index-page .form-container {
    display: flex;
    flex-direction: column;
}

.index-page .tabs {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    border-bottom: 2px solid #e0e0e0;
}

.index-page .tab-button {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.index-page .tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.index-page .tab-button:hover {
    color: #667eea;
}

.index-page .form-group {
    margin-bottom: 20px;
}

.index-page label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.index-page input[type="text"],
.index-page input[type="email"],
.index-page input[type="password"],
.index-page input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.index-page input[type="text"]:focus,
.index-page input[type="email"]:focus,
.index-page input[type="password"]:focus,
.index-page input[type="tel"]:focus {
    outline: none;
    border-color: #667eea;
}

.index-page .form-content {
    display: none;
}

.index-page .form-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.index-page .checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.index-page .checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.index-page .forgot-password {
    font-size: 14px;
    margin-top: 10px;
}

.index-page .forgot-password a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.index-page .forgot-password a:hover {
    text-decoration: underline;
}

.index-page .submit-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.index-page .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.index-page .submit-button:active {
    transform: translateY(0);
}

.index-page .divider {
    text-align: center;
    margin: 25px 0;
    color: #999;
    font-size: 14px;
}

.index-page .social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.index-page .social-button {
    padding: 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.index-page .social-button:hover {
    border-color: #667eea;
    color: #667eea;
}

/* Tasks Page Styles */
.tasks-page body {
    padding: 20px;
}

.tasks-page .container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Header */
.tasks-page .header {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tasks-page .header h1 {
    font-size: 32px;
    color: #333;
}

.tasks-page .header-subtitle {
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

.tasks-page .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tasks-page .avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.tasks-page .logout-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.tasks-page .logout-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* Statistics */
.tasks-page .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tasks-page .stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.tasks-page .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.tasks-page .stat-label {
    color: #999;
    font-size: 14px;
}

/* Main Content */
.tasks-page .main-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Add Task Section */
.tasks-page .add-task-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.tasks-page .add-task-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tasks-page .new-task-input {
    flex: 1;
    min-width: 250px;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.tasks-page .new-task-input:focus {
    outline: none;
    border-color: #667eea;
}

.tasks-page .priority-select {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.tasks-page .priority-select:focus {
    outline: none;
    border-color: #667eea;
}

.tasks-page .add-task-btn {
    padding: 14px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tasks-page .add-task-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Filters */
.tasks-page .filters {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tasks-page .filter-btn {
    padding: 10px 18px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tasks-page .filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.tasks-page .filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

/* Tasks List */
.tasks-page .tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tasks-page .tasks-header h2 {
    font-size: 20px;
    color: #333;
}

.tasks-page .search-box {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    width: 250px;
    transition: border-color 0.3s ease;
}

.tasks-page .search-box:focus {
    outline: none;
    border-color: #667eea;
}

.tasks-page .tasks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tasks-page .task-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #e0e0e0;
    transition: all 0.3s ease;
}

.tasks-page .task-item:hover {
    background: #f0f0f0;
    border-left-color: #667eea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tasks-page .task-item.completed {
    opacity: 0.6;
}

.tasks-page .task-item.completed .task-title {
    text-decoration: line-through;
    color: #999;
}

.tasks-page .task-item.high-priority {
    border-left-color: #ff6b6b;
}

.tasks-page .task-item.medium-priority {
    border-left-color: #ffa940;
}

.tasks-page .task-item.low-priority {
    border-left-color: #52c41a;
}

.tasks-page .task-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.tasks-page .task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tasks-page .task-title {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.tasks-page .task-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.tasks-page .priority-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tasks-page .priority-high {
    background: #ffe7e7;
    color: #ff6b6b;
}

.tasks-page .priority-medium {
    background: #fff7e6;
    color: #ffa940;
}

.tasks-page .priority-low {
    background: #f6ffed;
    color: #52c41a;
}

.tasks-page .task-actions {
    display: flex;
    gap: 8px;
}

.tasks-page .action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tasks-page .edit-btn {
    background: #e6f4ff;
    color: #1890ff;
}

.tasks-page .edit-btn:hover {
    background: #bae7ff;
}

.tasks-page .delete-btn {
    background: #fff1f0;
    color: #ff6b6b;
}

.tasks-page .delete-btn:hover {
    background: #ffccc7;
}

/* Empty State */
.tasks-page .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.tasks-page .empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.tasks-page .empty-state h3 {
    font-size: 20px;
    color: #666;
    margin-bottom: 10px;
}

.tasks-page .empty-state p {
    font-size: 14px;
}

/* Modal */
.tasks-page .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.tasks-page .modal.active {
    display: flex;
}

.tasks-page .modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.tasks-page .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tasks-page .modal-header h2 {
    color: #333;
}

.tasks-page .close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.tasks-page .form-group {
    margin-bottom: 18px;
}

.tasks-page .form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.tasks-page .form-group input,
.tasks-page .form-group select,
.tasks-page .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.tasks-page .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.tasks-page .form-group input:focus,
.tasks-page .form-group select:focus,
.tasks-page .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.tasks-page .modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.tasks-page .modal-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tasks-page .save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tasks-page .save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.tasks-page .cancel-btn {
    background: #f0f0f0;
    color: #666;
}

.tasks-page .cancel-btn:hover {
    background: #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .index-page .container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .index-page .landing-section {
        display: none;
    }

    .index-page .auth-section {
        padding: 40px 30px;
    }

    .index-page .landing-section h1 {
        font-size: 36px;
    }

    .tasks-page .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .tasks-page .user-info {
        width: 100%;
        justify-content: center;
    }

    .tasks-page .add-task-form {
        flex-direction: column;
    }

    .tasks-page .new-task-input,
    .tasks-page .priority-select {
        width: 100%;
    }

    .tasks-page .search-box {
        width: 100%;
    }

    .tasks-page .task-item {
        flex-wrap: wrap;
    }

    .tasks-page .task-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .tasks-page .modal-content {
        width: 95%;
    }
}
