/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    min-height: 100vh; 
    background: linear-gradient(135deg, #6a11cb, #2575fc); 
    overflow-y: auto;
}

#home_container {
    width: 90%;
    max-width: 600px;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px; 
}

/* Header Section */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
}

.header h1 {
    margin: 0;
    font-size: 2rem;
}

/* Content Section */
.content {
    padding: 20px;
    flex-shrink: 0; 
}

.note-input-container {
    padding: 20px;
    background: rgba(106, 17, 203, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.note-input-container h2 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #333;
}

.note-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    resize: none;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
}

/* Note List Section */
.note-list-container {
    width: 90%;
    max-width: 600px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; 
    margin-top: 20px; 
}

.note-list-container h2 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #333;
}

.note-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column; 
    gap: 10px;
}

.note-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #ffffff;
    background: rgba(106, 17, 203, 0.1);
    transition: transform 0.3s;
    word-wrap: break-word;
    overflow-wrap: break-word; 
    word-break: break-word; 
}

.note-box:hover {
    transform: translateY(-5px);
}

.note-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    white-space: normal; 
    word-wrap: break-word; 
    overflow-wrap: break-word; 
}

.note-text {
    margin-right: 1rem;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.note-time {
    font-size: 0.8rem;
    color: #666;
}

.note-actions {
    display: flex;
    gap: 10px;
}

.btn-group {
    display: flex;
    gap: 10px;
}

/* Buttons for Edit and Delete */
.btn-edit, .btn-delete {
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: white;
    transition: transform 0.2s;
    height: 40px; 
    width: 80px; 
}

.btn-edit {
    background: linear-gradient(135deg, #4caf50, #388e3c);
}

.btn-edit:hover {
    transform: scale(1.1);
}

.btn-delete {
    background: linear-gradient(135deg, #f44336, #e53935);
}

.btn-delete:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    #home_container {
        margin: 10px;
    }

    .btn-submit, .btn-edit, .btn-delete {
        font-size: 0.8rem;
    }
    .btn-edit, .btn-delete {
        height: 30px;
        width: 70px;
        padding: 5px;
    }
}
