:root {
    --primary-color: #3498db;
    --danger-color: #e74c3c;
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    color: var(--dark-gray);
    -webkit-user-select: none; /* 유저 선택 방지 */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 10px;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
}

#add-bookmark-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s;
}

#add-bookmark-btn:hover {
    background-color: #2980b9;
}

#bookmark-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bookmark-item {
    background-color: white;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.bookmark-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.bookmark-item a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: inherit;
}

.bookmark-item .name {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 5px;
    word-break: break-all;
}

.bookmark-item .url {
    font-size: 0.9em;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 모달 스타일 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-size: 1em;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1em;
}

#cancel-btn {
    background-color: #ccc;
}

#submit-btn {
    background-color: var(--primary-color);
    color: white;
}

/* 컨텍스트 메뉴 */
#context-menu {
    position: absolute;
    z-index: 1001;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 5px;
}

#context-menu button {
    display: block;
    width: 100%;
    padding: 8px 15px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
}

#context-menu button:hover {
    background-color: var(--light-gray);
}

#context-menu #delete-btn {
    color: var(--danger-color);
}