@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea, #764ba2); 
    padding: 20px;
}

.wrapper {
    background: #fff;
    max-width: 450px;
    width: 100%;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

header h2 {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.input-area {
    display: flex;
    height: 45px;
    margin-bottom: 20px;
    gap: 10px;
}

.input-area input {
    width: 100%;
    height: 100%;
    border: 1px solid #ccc;
    padding: 0 15px;
    font-size: 16px;
    border-radius: 5px;
    outline: none;
    transition: 0.3s;
}

.input-area input:focus {
    border-color: #764ba2;
}

.input-area button {
    width: 80px;
    height: 100%;
    border: none;
    color: #fff;
    background: #764ba2;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: 0.3s;
}

.input-area button:hover {
    background: #5a367f;
}

#quoteList {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

#quoteList li {
    background: #f2f2f2;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    font-size: 15px;
    word-break: break-all;
}

#quoteList li button {
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    font-size: 12px;
    margin-left: 5px;
    transition: 0.2s;
}

#quoteList li button:nth-child(1) { 
    background: #3498db;
    margin-right: 5px;
}

#quoteList li button:nth-child(2) {
    background: #e74c3c;
}

#quoteList li button:hover {
    opacity: 0.8;
}

ul li {
    background: #f9f9f9;
    border-left: 5px solid #764ba2;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

ul li span {
    flex-grow: 1;
    font-size: 16px;
    color: #333;
    margin-right: 10px;
    word-break: break-all;
}

ul li button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    color: white;
    margin-left: 5px;
    transition: 0.3s;
}

.edit-btn {
    background-color: #3498db;
}
.edit-btn:hover {
    background-color: #2980b9;
}

.delete-btn {
    background-color: #e74c3c; 
}
.delete-btn:hover {
    background-color: #c0392b;
}