main {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    padding-top: calc(
        4rem + 1.5rem
    ); /* Add padding to account for fixed header height */
}
body {
    font-family:
        system-ui,
        -apple-system,
        sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
    min-height: 100vh;
}

header {
    position: fixed; /* Fix the header position */
    top: 0;
    left: 0;
    right: 0;
    background-color: #bbb;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000; /* Ensure header stays on top */
}

.header-content {
    /* max-width: 800px; */
    padding-left: 2em;
    padding-right: 2em;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-link {
    color: #222;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.header-link:hover {
    background-color: #eee;
    color: #333;
}

.reader-link {
    border: 1px solid #444;
}

form {
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1.5rem; /* Add padding at bottom */
    border-bottom: 2px solid #e0e0e0; /* Add border */
}

#items {
    margin-top: 1.5rem; /* Add margin above the items list */
}

input[type="text"] {
    flex: 1; /* This allows the input to take up remaining space */
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input[type="text"]:disabled {
    background-color: #f9f9f9;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

button[type="submit"] {
    padding: 0.75rem 1.5rem;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
}

button[type="submit"]:hover {
    background-color: #333;
}

button[type="submit"]:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

button[type="submit"]:disabled:hover {
    background-color: #ccc;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
    padding: 0.8rem;
    border-bottom: 1px solid #e0e0e0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.item-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    flex-grow: 1;
}

.custom-radio {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #666;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    background-color: white;
}

input[type="radio"] {
    display: none;
}

input[type="radio"]:checked + .custom-radio::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #444;
    border-radius: 50%;
}

.title {
    font-size: 1rem;
    color: #444;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.url-actions {
    position: relative;
}

.chain-icon {
    width: 20px;
    height: 20px;
    color: #666;
    cursor: pointer;
}

.url-options {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    z-index: 1;
}

.url-actions:hover .url-options,
.url-options:hover {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.url-options button,
.url-options a {
    background: none;
    border: none;
    padding: 0.3rem 0.8rem;
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.url-options button:hover,
.url-options a:hover {
    background: #f5f5f5;
}

.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.trash-icon {
    width: 20px;
    height: 20px;
    color: #666;
}

.trash-icon:hover {
    color: #d32f2f;
}

.copied-message {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: #444;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.copied-message.visible {
    opacity: 1;
}

a.title {
    text-decoration: none !important;
}
