* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding: 20px;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.error-message {
    color: #e74c3c;
    margin-top: 10px;
    min-height: 20px;
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.projects-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.projects-list {
    margin-top: 20px;
}

.project {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.project:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.project-content-preview {
    white-space: pre-wrap;
    margin-bottom: 10px;
    cursor: pointer;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-date-preview {
    font-size: 12px;
    color: #95a5a6;
}

.delete-project-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.delete-project-btn:hover {
    background-color: #c0392b;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.plus-btn {
    background-color: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-btn {
    background-color: #2ecc71;
    color: white;
}

.cancel-btn {
    background-color: #e74c3c;
    color: white;
    margin-left: 10px;
}

.new-project-form {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.new-project-form textarea {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    margin-bottom: 15px;
    resize: vertical;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal:not(.hidden) {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.close-btn:hover {
    color: #333;
}

.project-content-view {
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: normal;
    text-align: left;
    padding: 20px 0;
    line-height: 1.6;
    width: 100%;
    font-size: 16px;
    font-family: inherit;
}

.project-date-view {
    color: #777;
    font-size: 14px;
    text-align: right;
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .login-container, .projects-container {
        margin: 20px;
        padding: 20px;
    }
    
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .plus-btn {
        margin-top: 15px;
    }
    
    .modal-content {
        width: 90%;
        padding: 20px;
    }
}