body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #e4e2d9;
    color: #202124;
}


.navbar-brand {
    font-weight: 700;
    cursor: pointer;
}

.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.card-body {
    text-align: left;
}

.muted {
    color: #5f6368;
}

/* sidebar */

.sidebar {
    background: #333333;
    min-height: 100vh;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255, 255, 255, 0.3);
    color: #237bff;
}

/* bottom-nav */

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #333333;
}

.bottom-nav a {
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    font-size: .8rem;
}

.bottom-nav a i {
    display: block !important
}

.bottom-nav a.active {
    color: #237bff;
}

/* others */

.login-card {
    max-width: 420px;
}

.contents-item-medicine {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: move;
    transition: all 0.3s;
    position: relative;
}

.contents-item-medicine:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.contents-item-medicine.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.contents-item-medicine.drag-over {
    border-top: 3px solid #007bff;
    margin-top: 30px;
}

.contents-item {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: move;
    transition: all 0.3s;
    position: relative;
}

.drag-handle {
    font-size: 24px;
    color: #999;
    margin-right: 15px;
    cursor: grab;
    user-select: none;
}

.drag-handle:active {
    cursor: grabbing;
}

.contents-info {
    flex: 1;
    cursor: default;
}

.contents-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.contents-info p {
    margin: 5px 0 0 0;
    color: #666;
}

/* メニューボタンのスタイル */
.menu-container {
    position: relative;
    cursor: default;
}

.menu-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-btn:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
    overflow: hidden;
}

.menu-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

.menu-item:hover {
    background: #f8f9fa;
}

.menu-item-button {
    font-family: inherit;
}

.menu-item-danger {
    color: #dc3545;
}

.menu-item-danger:hover {
    background: #fff5f5;
}

.menu-icon {
    margin-right: 10px;
    font-size: 16px;
}

.menu-divider {
    height: 1px;
    background: #e9ecef;
    margin: 4px 0;
}

#saveNotification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
}

#saveNotification.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}
