.lm-links-wrapper {
    max-width: 700px;
    margin: 30px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1f2d4a;
}

.lm-category h2 {
    border-left: 4px solid #0057d9;
    padding-left: 10px;
    color: #003a8c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.lm-link-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    background: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 87, 217, 0.15);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.lm-link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 87, 217, 0.3);
}

.lm-link-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #0057d9;
    margin-right: 15px;
    border-radius: 0;
    flex-shrink: 0;
}

.lm-link-item a {
    font-weight: 700;
    font-size: 1.1rem;
    color: #0057d9;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lm-link-item a:hover {
    color: #012c8a;
    text-decoration: underline;
}

.lm-link-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #405880;
    max-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
}

#lm_add_link_form {
    max-width: 500px;
    background: #f8fbff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 87, 217, 0.15);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 40px auto;
}

#lm_add_link_form p {
    margin-bottom: 15px;
}

#lm_add_link_form label {
    font-weight: 600;
    color: #003a8c;
    display: block;
    margin-bottom: 6px;
}

#lm_add_link_form input[type="text"],
#lm_add_link_form input[type="url"],
#lm_add_link_form select,
#lm_add_link_form textarea {
    width: 100%;
    padding: 7px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

#lm_add_link_form input[type="text"]:focus,
#lm_add_link_form input[type="url"]:focus,
#lm_add_link_form select:focus,
#lm_add_link_form textarea:focus {
    border-color: #0057d9;
    outline: none;
}

#lm_add_link_form button[type="submit"] {
    background: #0057d9;
    color: white;
    border: none;
    padding: 11px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#lm_add_link_form button[type="submit"]:hover {
    background: #003a8c;
}

#lm_link_form_message {
    font-weight: 600;
    margin-top: 12px;
}

@media (max-width: 600px) {
    .lm-link-item {
        padding: 6px 10px;
    }

    .lm-link-item img {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }

    .lm-link-item a {
        font-size: 1rem;
    }

    .lm-link-item p {
        font-size: 0.85rem;
    }

    #lm_add_link_form {
        padding: 15px;
        max-width: 100%;
        margin: 20px 10px;
    }

    #lm_add_link_form button[type="submit"] {
        width: 100%;
    }
}