body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#linkInput {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#addLinkBtn {
    background-color: #007bff;
    color: white;
}

#addLinkBtn:hover {
    background-color: #0056b3;
}

#randomLinkBtn {
    width: 100%;
    background-color: #28a745;
    color: white;
    font-size: 18px;
    padding: 15px;
    margin-bottom: 30px;
}

#randomLinkBtn:hover:not(:disabled) {
    background-color: #1e7e34;
}

#randomLinkBtn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.link-list-section h2 {
    color: #555;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#linkList {
    list-style: none;
    padding: 0;
}

#linkList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

#linkList li:last-child {
    border-bottom: none;
}

#linkList li a {
    color: #007bff;
    text-decoration: none;
    word-break: break-all;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    margin-left: 10px;
}

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

.empty-message {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
    border: 1px dashed #ccc;
    border-radius: 5px;
}
