/* Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.main {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Login Page */
.page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.app-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.app-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.login-google {
    margin: 20px 0;
}

.btn-google {
    background: white;
    border: 1px solid #dadce0;
    color: #3c4043;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #3c4043;
    text-decoration: none;
}

.feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
    color: #666;
}

.feature-list li {
    padding: 8px 0;
    font-size: 0.95rem;
}

/* Tasks Page */
.tasks-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    color: white;
    flex-wrap: wrap;
    gap: 20px;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-picture {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.profile-picture-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.welcome-text h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.welcome-text .subtitle {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.tasks-header h1 {
    margin: 0;
    font-size: 2rem;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.task-card.completed {
    opacity: 0.6;
}

.task-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.task-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.task-info {
    flex: 1;
}

.task-title {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #333;
}

.task-card.completed .task-title {
    text-decoration: line-through;
}

.task-description {
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.task-due {
    color: #764ba2;
    font-size: 0.85rem;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: white;
}

.empty-state p {
    font-size: 1.2rem;
    margin: 10px 0;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    width: 90%;
    max-width: 500px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h5 {
    margin: 0;
    font-size: 1.25rem;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

.btn-close:before {
    content: "×";
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .tasks-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .header-actions {
        flex-direction: column;
    }

    .task-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
